Skip to content

Refactor type lowering for local RWStructuredBuffers#5457

Closed
s-perron wants to merge 2 commits intomicrosoft:mainfrom
s-perron:i3281-e
Closed

Refactor type lowering for local RWStructuredBuffers#5457
s-perron wants to merge 2 commits intomicrosoft:mainfrom
s-perron:i3281-e

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.

s-perron added 2 commits July 27, 2023 14:02
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

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant