Vulkan Help with DXC lib_ and spirv

Recommended Posts

Hi,

I am trying out Vulkan ray tracing extensions and I am at the point where I need to compile shaders.

I usually use DXC to compile my shaders to Spir-V but I am having trouble understanding how to create a lib_6_3 shader.

This is the shader I am trying to compile:

struct Payload
{
float4 color;
};

{
payload.color = float4(0, 0, 0, 1);
}

I was trying to use the following command to compile it but it simply does not produce any output:

dxc.exe -spirv -T lib_6_3 -fspv-target-env=vulkan1.1 miss_rt.hlsl -Fo miss.spv

I a clearly missing some key detail here...

Well, 3 mins after writing this post, I updated my version of DXC and now it works... False alarm!

Cheers!

Create an account

Register a new account

• 9
• 12
• 15
• 12
• 24