Vulkan 1.4 and New Extensions (#93)
- Add descriptor_indexing, VIDS, provoking_vertex - Fix up EDS - Implement VK 1.4 Co-authored-by: JPikachu <jpikachu.eden@gmail.com> Reviewed-on: #93 Co-authored-by: swurl <swurl@swurl.xyz> Co-committed-by: swurl <swurl@swurl.xyz>
This commit is contained in:
parent
d75dc79f26
commit
aa333e6fb1
13 changed files with 264 additions and 159 deletions
|
@ -33,6 +33,9 @@ void ConfigureGraphicsExtensions::SetConfiguration() {}
|
|||
void ConfigureGraphicsExtensions::Setup(const ConfigurationShared::Builder& builder) {
|
||||
auto& layout = *ui->populate_target->layout();
|
||||
std::map<u32, QWidget*> hold{}; // A map will sort the data for us
|
||||
|
||||
QSlider *dyna_state = nullptr;
|
||||
QCheckBox *dyna_state3 = nullptr;
|
||||
for (auto setting :
|
||||
Settings::values.linkage.by_category[Settings::Category::RendererExtensions]) {
|
||||
ConfigurationShared::Widget* widget = builder.BuildWidget(setting, apply_funcs);
|
||||
|
@ -50,12 +53,22 @@ void ConfigureGraphicsExtensions::Setup(const ConfigurationShared::Builder& buil
|
|||
if (setting->Id() == Settings::values.dyna_state.Id()) {
|
||||
widget->slider->setTickInterval(1);
|
||||
widget->slider->setTickPosition(QSlider::TicksAbove);
|
||||
dyna_state = widget->slider;
|
||||
} else if (setting->Id() == Settings::values.dyna_state3.Id()) {
|
||||
dyna_state3 = widget->checkbox;
|
||||
}
|
||||
}
|
||||
|
||||
for (const auto& [id, widget] : hold) {
|
||||
layout.addWidget(widget);
|
||||
}
|
||||
|
||||
connect(dyna_state, &QSlider::sliderMoved, this, [dyna_state3](int value) {
|
||||
dyna_state3->setEnabled(value == 2);
|
||||
if (value < 2) {
|
||||
dyna_state3->setChecked(false);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void ConfigureGraphicsExtensions::ApplyConfiguration() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue