[llvm] [SPIRV] Implement handle_fromBinding intrinsic. (PR #111052)

Vyacheslav Levytskyy via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 7 12:41:23 PDT 2024


================
@@ -381,6 +381,13 @@ SPIR-V backend, along with their descriptions and argument details.
      - Pointer
      - `[8-bit Integer]`
      - Creates a resource handle for graphics or compute resources. Facilitates the management and use of resources in shaders.
+   * - `int_spv_handle_fromBinding`
+     - spirv.Image
+     - `[32-bit Integer set, 32-bit Integer binding, 32-bit Integer arraySize, 32-bit Integer index, bool isUniformIndex]`
+     - Returns the handle for the resource at the given set and binding.\
+       If `arraySize > 1`, then the binding represents and array of resources\
----------------
VyacheslavLevytskyy wrote:

`an` array of resources?

https://github.com/llvm/llvm-project/pull/111052


More information about the llvm-commits mailing list