You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[SPIR-V] Invalid SPIR-V generated when using RW resource returned from function #4136
Compiled using latest release (v1.6.2112) with command line dxc.exe -E main -T cs_6_0 -Fo uav_indexing.comp.spv -spirv -fspv-target-env=vulkan1.1 uav_indexing.comp.hlsl
As commented in the code, using the returned value from the function and storing it in a resource variable works and has the intended effect.
Activity
kuhar commentedon Dec 9, 2021
Thanks for reporting, Thierry Laviron (@TLaviron).
Jaebaek Seo (@jaebaek), can you take a look?
jaebaek commentedon Dec 10, 2021
Sure. I will take a look.
s-perron commentedon Aug 22, 2024
For some reason we have two loads of the texture. The first is in GetTexture, and another after the function call.
I think we need to avoid the one after the function call.
[SPIR-V] Fix bad OpLoad on loaded texture
[SPIR-V] Fix bad OpLoad on loaded texture (microsoft#6985)
[SPIR-V] Fix bad OpLoad on loaded texture (microsoft#6985)