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 }}
This repository was archived by the owner on Oct 31, 2025. It is now read-only.
#[spirv(compute(threads(8,8)))]pubfnmain(#[spirv(descriptor_set = 0, binding = 0)]out:TexRgba32f){letmut value = vec3(0.1,0.2,0.3);letmut i = 0;loop{if i >= 32{break;}
i += 1;}unsafe{
out.write(uvec2(0,0), value.extend(1.0));}}
... will work, but adding a seemingly no-op value = value into that loop:
loop{
value = value;if i >= 32{break;}
i += 1;}
... will panic the compiler, saying:
error: malformed SPIR-V (in OpCompositeExtract: undefined ID %4547)