Skip to content
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

Allow UserSemantic decoration for variables in storage classes other than Input and Output #110

Open
AlexeySotkin opened this issue May 22, 2019 · 1 comment

Comments

@AlexeySotkin
Copy link

AFAIK the UserSemantics decoration came from graphics domain (SPV_GOOGLE_hlsl_functionality1). Currently the spec says that the variable must be in Input or Output storage classes.
But one might want to use the decoration for OpenCL kernels as well. Is it possible to relax this restriction to allow to apply UserSemantics decoration to variables in other storage classes, i.e. at least in UniformConstant, Workgroup, CrossWorkgroup, Function and Generic ?

@johnkslang
Copy link
Member

I don't see any issue generalizing it. The practical issue will be if the tool chain (including validator) knows and agrees will all the uses. So, having the standard specify the set of uses is valuable. We can take this up with Khronos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants