Fix VK_Descriptor_Index test declaring too large array

* This was variably sized so in practice we didn't use it, but the spec still
  requires us to respect the max sizes that could be used for the upper bound
  and this lead to the wrong texture being sampled on NV.
This commit is contained in:
baldurk
2025-01-25 15:06:36 +00:00
parent 590f51151b
commit e38e2d4177
+2 -1
View File
@@ -372,7 +372,8 @@ void main()
{
4,
VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER,
UINT32_MAX,
1000000, // this must still be under the maxDescriptorSet* counts even though
// we'll trim this massively on allocation
VK_SHADER_STAGE_FRAGMENT_BIT | VK_SHADER_STAGE_COMPUTE_BIT,
},
})