struct

ML::Metal::BufBinding

Inherits Struct / Value / Object

Shared types for ComputeGraph and GraphEncoder

Constructors

new(buffer : MetalBuffer, index : Int32, offset : Int64 = 0_i64, length : Int64 = -1_i64, access : BufferAccess = BufferAccess::Read, partition : Int32 = -1)

Instance methods

access
buffer
buffer_id
clone
conflicts?(other : BufBinding) : Bool

Two bindings conflict if same buffer AND overlapping access Block Integrity (LTP/WBA ยง3.3): different partition keys = no overlap guaranteed

copy_with(buffer _buffer = @buffer, index _index = @index, offset _offset = @offset, length _length = @length, access _access = @access, partition _partition = @partition)
index
length
offset
partition