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

Refactor type lowering for local RWStructuredBuffers #5457

Closed
wants to merge 2 commits into from

Conversation

s-perron
Copy link
Collaborator

To handle a local RWStructuredBuffers, we treat the local varible like a
pointer to the global variable. This is needed to properly represent the
semantics of these local variables. The difficulty is that this spread
out in a number of places creating special cases are not always
intuiative. It is also causing problems for arrays of
RWStructuredBuffers.

This change will modify the type of the local variable generated by the
spirv emitter to be a pointer instead of waiting for type lowering to
handle it.

To handle a local RWStructuredBuffers, we treat the local varible like a
pointer to the global variable. This is needed to properly represent the
semantics of these local variables. The difficulty is that this spread
out in a number of places creating special cases are not always
intuiative. It is also causing problems for arrays of
RWStructuredBuffers.

This change will modify the type of the local variable generated by the
spirv emitter to be a pointer instead of waiting for type lowering to
handle it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant