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

[naga spv-out] Delete BlockContext::is_intermediate; use types. #6389

Merged

Conversation

jimblandy
Copy link
Member

Delete the function BlockContext::is_intermediate. Instead, have Access and AccessIndex instructions decide whether to defer code generation based on the type of the base expression: indexing operations on pointers are deferred; anything else is not.

Delete the function `BlockContext::is_intermediate`. Instead, have
`Access` and `AccessIndex` instructions decide whether to defer code
generation based on the type of the base expression: indexing
operations on pointers are deferred; anything else is not.
@jimblandy jimblandy added area: naga back-end Outputs of naga shader conversion naga Shader Translator kind: refactor Making existing function faster or nicer lang: SPIR-V Vulkan's Shading Language labels Oct 9, 2024
@jimblandy jimblandy requested a review from a team as a code owner October 9, 2024 23:39
@jimblandy jimblandy merged commit ae52e5d into gfx-rs:trunk Oct 10, 2024
27 checks passed
@jimblandy jimblandy deleted the naga-spv-out-pointers-are-intermediates branch October 10, 2024 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: naga back-end Outputs of naga shader conversion kind: refactor Making existing function faster or nicer lang: SPIR-V Vulkan's Shading Language naga Shader Translator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants