Mojo function
make_buffer_resource
make_buffer_resource[type: DType](gds_ptr: UnsafePointer[SIMD[type, 1], address_space=address_space, alignment=alignment, mut=mut, origin=origin], num_records: Int = __init__[::Intable](SIMD(max_or_inf[::DType]()))) -> SIMD[uint32, 4]
Creates a 128-bit buffer constant for buffer IO.
This function is used to create a 128-bit buffer constant struct for buffer IO
Arg: gds_ptr: Global memory base address. num_records: Reads with gds_offset > num_records return 0. Defaults to the maximum number of elements UInt32.MAX.
Parameters:
- type (
DType
): The type of the data to be loaded.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!