Bindless structured buffers & raw buffers #370
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
I figured this out, so I'm sharing the information here for anyone else in the same situation. The solution is to use the DXC compiler as follows: shaderCreateInfo.ShaderCompiler = Diligent::SHADER_COMPILER_DXC;You might also need to specify the DXC compiler's path when you create your render device: vkEngineCreateInfo.pDxCompilerPath = "<VulkanSDK>/Bin/dxcompiler.dll"; |
Beta Was this translation helpful? Give feedback.
-
|
You shader looks incorrect. This should be accessed as But you are missing the array index. I expect this was the reason for the crash, though I can't tell exactly; logs would have more information, but you did not provide them. |
Beta Was this translation helpful? Give feedback.
-
|
The reason was I was using the default HLSL compiler for Vulkan which does not support buffer arrays. I switched to the DXC compiler with SM6.0 and now everything works like a charm. Thanks for helping anyway :) |
Beta Was this translation helpful? Give feedback.

I figured this out, so I'm sharing the information here for anyone else in the same situation.
The solution is to use the DXC compiler as follows:
You might also need to specify the DXC compiler's path when you create your render device:
vkEngineCreateInfo.pDxCompilerPath = "<VulkanSDK>/Bin/dxcompiler.dll";