Mojo function
buffer_load
buffer_load[type: DType, width: Int](src_resource: SIMD[uint32, 4], gds_offset: SIMD[int32, 1]) -> SIMD[type, width]
Loads a register variable from global memory.
This function is used to copy from global memory to register.
Parameters:
- type (
DType
): The type of the data to be loaded. - width (
Int
): The width of the SIMD vector to load.
Args:
- src_resource (
SIMD[uint32, 4]
): The buffer resource descriptor from make_buffer_resource. - gds_offset (
SIMD[int32, 1]
): Global memory offset.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!