no insanely oversized descriptor sets

This commit is contained in:
Janis 2025-01-01 21:37:44 +01:00
parent 409fd653c7
commit e67577d903

View file

@ -1865,12 +1865,7 @@ impl EguiState {
sizes: &[ sizes: &[
vk::DescriptorPoolSize { vk::DescriptorPoolSize {
ty: vk::DescriptorType::COMBINED_IMAGE_SAMPLER, ty: vk::DescriptorType::COMBINED_IMAGE_SAMPLER,
descriptor_count: device descriptor_count: 10,
.physical_device()
.properties
.base
.limits
.max_descriptor_set_sampled_images,
}, },
vk::DescriptorPoolSize { vk::DescriptorPoolSize {
ty: vk::DescriptorType::STORAGE_BUFFER, ty: vk::DescriptorType::STORAGE_BUFFER,
@ -1889,12 +1884,7 @@ impl EguiState {
bindings: &[ bindings: &[
pipeline::DescriptorSetLayoutBindingDesc { pipeline::DescriptorSetLayoutBindingDesc {
binding: Self::TEXTURE_BINDING, binding: Self::TEXTURE_BINDING,
count: device count: 10,
.physical_device()
.properties
.base
.limits
.max_descriptor_set_sampled_images,
kind: vk::DescriptorType::COMBINED_IMAGE_SAMPLER, kind: vk::DescriptorType::COMBINED_IMAGE_SAMPLER,
stage: vk::ShaderStageFlags::FRAGMENT, stage: vk::ShaderStageFlags::FRAGMENT,
flags: Some( flags: Some(