Bindless structured buffers & raw buffers #370
Answered by
dolphineye74
Apr 24, 2026
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"; |
0 replies
Answer selected by
dolphineye74
|
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. |
0 replies
|
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 :) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

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";