Advertisement

Help with DXC lib_ and spirv

Started by May 25, 2019 12:35 PM
0 comments, last by Shnoutz 5 years, 8 months ago

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

[shader("miss")]
void main(inout Payload payload : SV_RayPayload)
{
	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!

This topic is closed to new replies.

Advertisement