Fix descriptor pool allocation error on AMD cards

This commit is contained in:
Magnus Norddahl 2023-04-12 01:44:45 +02:00
parent c142f11248
commit 08be3607ce

View file

@ -814,7 +814,7 @@ void GPURaytracer::CreateRaytracePipeline()
raytrace.descriptorPool0 = DescriptorPoolBuilder()
.AddPoolSize(VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, 1)
.AddPoolSize(VK_DESCRIPTOR_TYPE_STORAGE_BUFFER, 3)
.AddPoolSize(VK_DESCRIPTOR_TYPE_STORAGE_BUFFER, 4)
.MaxSets(1)
.DebugName("raytrace.descriptorPool0")
.Create(device.get());