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
I was expecting that writing a let declaration and immediatly returning that as the output should retain the identifier name as a OpName when translating wgsl to spv with the following flags:
let mut flags = spv::WriterFlags::LABEL_VARYINGS;
flags.set(spv::WriterFlags::DEBUG, true);
Is this not the case? If so, why?
I am still getting acquainted with both naga and SPIR-V, excuse the silly question 🙏
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was expecting that writing a
let
declaration and immediatly returning that as the output should retain the identifier name as a OpName when translating wgsl to spv with the following flags:Is this not the case? If so, why?
I am still getting acquainted with both naga and SPIR-V, excuse the silly question 🙏
SPIR-V disassembly (includes WGSL source)
Now consider the same case, but replacing
let
withvar
...Notice that
OpName %outColor "outColor"
is indeed emitted.Actually, I was trying to obtain the following:
And instead got
Beta Was this translation helpful? Give feedback.
All reactions