-
Notifications
You must be signed in to change notification settings - Fork 253
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
Add datalayout for constant buffers. #5608
Conversation
552e00a
to
8d64ce3
Compare
Sorry if I'm misunderstanding, but I can't tell that the test changes are using the option to specify buffer layouts like in this commit description. |
Looks good, but AFAICT a test for the feature to add a type to the ConstantBuffer declaration is not here. |
Closes #5598.
Closes #5595.
This PR adds support for specifying data layout for constant buffers, and fixes the default layout of push constant buffer to be std430.
ConstantBuffer can now be specified with a buffer layout, similar to StructuredBuffer:
Also fixes a bug that incorrectly causes specialization constants to occupy space 0.