GS::Metal::ComputeEncoder
Compute encoder for setting up kernel dispatch
Constructors
new(command_buffer : CommandBuffer)
SourceInstance methods
dispatch(grid_size : Tuple(Int32, Int32, Int32), threadgroup_size : Tuple(Int32, Int32, Int32)) : self
Dispatch with explicit grid/threadgroup sizes
dispatch_2d(width : Int32, height : Int32, threadgroup_size : Tuple(Int32, Int32) = {16, 16}) : self
Dispatch 2D workload (e.g., images)
dispatch_3d(width : Int32, height : Int32, depth : Int32, threadgroup_size : Tuple(Int32, Int32, Int32) = {8, 8, 8}) : self
Dispatch 3D workload
Bind Metal buffer at index
Bind raw bytes (for small constants)
set_pipeline(pipeline : ComputePipeline) : self
SourceSet threadgroup memory (for kernels using threadgroup storage)
Set float3 (as StaticArray(Float32, 3))
Set float4 (as StaticArray(Float32, 4))