struct

ML::Metal::BlitEncoder

Inherits Struct / Value / Object

Blit encoder for memory operations (copy, fill)

Constructors

new(command_buffer : CommandBuffer)
Source

Instance methods

copy_buffer(src : MetalBuffer, src_offset : Int32, dst : MetalBuffer, dst_offset : Int32, size : Int32) : self

Copy between buffers

Source
end_encoding

End encoding

Source
fill_buffer(buffer : MetalBuffer, value : UInt8, offset : Int32, length : Int32) : self

Fill buffer with a byte value

Source