-
Notifications
You must be signed in to change notification settings - Fork 565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HLSL: Add task(amplification) shader support #2124
Conversation
spirv_hlsl.cpp
Outdated
} | ||
else | ||
{ | ||
SPIRV_CROSS_THROW("Amplification shader in HLSL must have payload"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested with DXC: empty struct as payload compiles, yet produces invalid byte-code
bcf5408759f3.hlsl:17:5: error: For amplification shader with entry 'main', payload size 4 is greater than declared size of 0 bytes
https://shader-playground.timjones.io/8d8dbf3b63aa67aa3d000327b56915dd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you just make a dummy struct with one int?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't tested yet, but probably 'one-int' wont work, because task-payload should match mesh-payload in order to link.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments.
#1974