shader-slang / slang

Making it easier to work with shaders
MIT License
1.78k stars 159 forks source link

Metal: Implement fix for non vector4 texture Load/Sample #4417

Closed ArielG-NV closed 1 week ago

ArielG-NV commented 1 week ago

fixes: #4405

The change modifies stdlib to ensures all metal texture read/sample uses swizzle their vector<T,4> output into the same parent element type of __TextureImpl

  1. Added test cases to texture.slang to cover all types.