Issue 138910
Summary [HLSL] Implement `Load(int, uint)` overloads for buffer types
Labels HLSL
Assignees
Reporter bogner
    All of the HLSL buffer (and texture) types have overloads of Load like [RWBuffer::Load(int, uint)](https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/rwbuffer-load-float-uint-). We need to implement these in HLSLExternalSemaSource where we have the loads without the status bit.

These functions should call the appropriate buffer load intrinsic directly rather than emitting `getpointer` like the other loads do, since that's the only way we'll be able to map the status bit to the load of the right location. We also need to consider that for SPIR-V, [DXC will map these loads to OpImageSparseRead](https://github.com/microsoft/DirectXShaderCompiler/blob/main/docs/SPIR-V.rst#load-1) rather than `OpImageRead`

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to