Instance Method

contents()

Gets the system address of the buffer’s storage allocation.

Required.

Declaration

func contents() -> UnsafeMutableRawPointer

Return Value

A pointer to the shared copy of the buffer data, or NULL for buffers allocated with a private resource storage mode (MTLStorageMode.private).

Discussion

Private resources are not CPU-accessible.