Jump to content
  • Advertisement

Vulkan Help with DXC lib_ and spirv

Recommended Posts


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;

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!



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!