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.

This function is used to write to global memory from a 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.
  • val (SIMD[type, width]): The value to write to memory.