[llvm] [SPIRV] Implement handle_fromBinding intrinsic. (PR #111052)
Nathan Gauër via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 4 01:02:31 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 `ararySize > 1`, then the binding represents and array of resources\
----------------
Keenuts wrote:
```suggestion
If `arraySize > 1`, then the binding represents and array of resources\
```
https://github.com/llvm/llvm-project/pull/111052
More information about the llvm-commits
mailing list