-
Notifications
You must be signed in to change notification settings - Fork 670
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
vk::ext_type_def fails to compile #5181
Comments
At a quick glance, I believe the wiki is incorrect and misleading. First the The wrong parts are first you cannot have a 12 bit integer. If I fix this up to be able to parse, you can see the error. Try
I get the error:
The second error is the assigment |
@forbiddencactus Thanks for bring this up. I have recently pointed a few people to this wiki and suggested they try it. I assumed it all worked. This will need to be fixed up. |
No worries! In general |
I have opened microsoft/hlsl-specs#59 to try to clean up the spec. The documentation will be updated once we have updated the HLSL spec. I don't want to update it multiple times. |
Now that we have finished updating the inline spir-v, could you update the wiki that is pointed to above? |
The following code, as detailed in the wiki, fails to compile:
[[vk::ext_type_def(/* Unique id for type */ 0, /* OpTypeInt */ 21)]] void createTypeInt([[vk::ext_literal]] int sizeInBits, [[vk::ext_literal]] int signedness); createTypeInt(/* sizeInBits */ 12, /* signedness */ 0); .. vk::ext_type</* Unique id for type */ 0> foo = 3;
The text was updated successfully, but these errors were encountered: