Skip to main content
Log in

Mojo function

buffer_store

buffer_store[type: DType, width: Int](src_resource: SIMD[uint32, 4], gds_offset: SIMD[int32, 1], val: SIMD[type, width])

Stores a register variable to global memory.

Writes to global memory from a register.

Parameters:

  • type (DType): The data type.
  • width (Int): The SIMD vector width.

Args:

  • src_resource (SIMD[uint32, 4]): Buffer resource descriptor.
  • gds_offset (SIMD[int32, 1]): Global memory offset.
  • val (SIMD[type, width]): Value to write.