Issue 143141
Summary [HLSL][SPIRV] Pass the resource name to the backend, and use it.
Labels HLSL, backend:SPIR-V
Assignees s-perron
Reporter s-perron
    The current implementation for HLSL resources does not pass the name of the resource to the SPIR-B backend. Instead the SPIR-V back will try to create a unique name for each resource. However, this can fail and cause collisions. The ideal solution is to pass the name of the resource to the backend, and use that name.

The DXIL backend recently started doing this (https://godbolt.org/z/Tc1Yx3j15). The name is part of the call to `@llvm.dx.resource.handlefrombinding`. We can do the same for SPIR-V.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to