shader-slang / slang

Making it easier to work with shaders
MIT License
1.79k stars 160 forks source link

Small SPIRV emit cleanup around vector element extract. #4309

Closed csyonghe closed 1 month ago

csyonghe commented 1 month ago

If we have GetElement(vector, index) where index is a GlobalValueRef(IntLit), we still want to generate OpCompositeExtract instead of OpVectorExtractDynamic.