我想在我的Vulkan渲染器中使用HLSL片段着色器。着色器读取缓冲区:在Vulkan中使用HLSL着色器时,Buffer <float4>的正确描述符类型是什么?
layout(set=0, binding=3) Buffer<float4> pointLightBufferCenterAndRadius : register(t1);
我不知道我应该使用哪种描述符来描述符槽。我试图用VK_DESCRIPTOR_TYPE_STORAGE_BUFFER
但验证层给了我以下错误:
Type mismatch on descriptor slot 0.3 (used as type ptr to const uniform image(dim=5, sampled=1)) but descriptor of type VK_DESCRIPTOR_TYPE_STORAGE_BUFFER
什么是Buffer<float4>
正确的描述符类型?