| Issue |
162891
|
| Summary |
[HLSL][SPIR-V] Use `OpTypeImageFetch` when loading from `Buffer` type resources
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
luciechoi
|
https://godbolt.org/z/KKWbanoWv
Currently, `OpImageRead` is used to read the values from `Buffer` arrays.
It should be [OpImageFetch](https://registry.khronos.org/SPIR-V/specs/unified1/SPIRV.html#OpImageFetch).
Otherwise, it might not pass the spirv validator.
Discovered while working on https://github.com/llvm/llvm-project/pull/162540
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs