Instance Method

contents

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

Required.

Declaration

- (void *)contents;

Return Value

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

Discussion

Private resources are not CPU-accessible.