One Logo Pool Ball
ComputeGraph · IOS API REFERENCE

ComputeNodeGraph.Assembly.BufferBinding

struct · iOS 27.0+ · SDK 27.1

struct BufferBinding

Describes how a Metal buffer is bound to a compute pipeline stage. A buffer binding pairs an ``Attachment`` (how the buffer is connected to the graph) with an optional ``ComputeNodeGraph/StateType`` describing the element layout of the buffer's contents.

Members (5)

init · iOS 27.0+

init

TypeScript
static init(attachment: ComputeNodeGraph_Assembly_Attachment, type?: (ComputeNodeGraph_StateType) | null): ComputeNodeGraph_Assembly_BufferBinding
Swift declaration
init(attachment: ComputeNodeGraph.Assembly.Attachment, type: ComputeNodeGraph.StateType? = nil)
get · iOS 27.0+

attachment

TypeScript
get attachment(): ComputeNodeGraph_Assembly_Attachment
Swift declaration
var attachment: ComputeNodeGraph.Assembly.Attachment

The attachment point that provides this buffer.

set · iOS 27.0+

attachment

TypeScript
set attachment(value: ComputeNodeGraph_Assembly_Attachment)
Swift declaration
var attachment: ComputeNodeGraph.Assembly.Attachment

The attachment point that provides this buffer.

get · iOS 27.0+

type

TypeScript
get type(): (ComputeNodeGraph_StateType) | null
Swift declaration
var type: ComputeNodeGraph.StateType?

The element type stored in the buffer, or `nil` if untyped.

set · iOS 27.0+

type

TypeScript
set type(value: (ComputeNodeGraph_StateType) | null)
Swift declaration
var type: ComputeNodeGraph.StateType?

The element type stored in the buffer, or `nil` if untyped.

Skipped declarations

No declarations were skipped in this snapshot.

All ComputeGraph types →