Skip to content

Commit a967997

Browse files
committed
Update SpirvUsage.rst.
1 parent e7960fc commit a967997

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

llvm/docs/SPIRVUsage.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,14 @@ SPIR-V backend, along with their descriptions and argument details.
392392
If `arraySize > 1`, then the binding represents an array of resources\
393393
of the given size, and the handle for the resource at the given index is returned.\
394394
If the index is possibly non-uniform, then `isUniformIndex` must get set to true.
395+
* - `int_spv_typeBufferLoad`
396+
- Scalar or vector
397+
- `[spirv.Image ImageBuffer, 32-bit Integer coordinate]`
398+
- Loads a value from a Vulkan image buffer at the given coordinate. The \
399+
image buffer data is assumed to be stored as a 4-element vector. If the \
400+
return type is a scalar, then the first element of the vector is \
401+
returned. If the return type is an n-element vector, then the first \
402+
n-elements of the 4-element vector are returned.
395403

396404
.. _spirv-builtin-functions:
397405

0 commit comments

Comments
 (0)