MTLBuffer

Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.

Members

Functions

addDebugMarker
void addDebugMarker(NSString marker, NSRange range)

Adds a debug marker string to a specific buffer range.

contents
void* contents()

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

dealloc
void dealloc()
Undocumented in source.
didModifyRange
void didModifyRange(NSRange )

Informs the GPU that the CPU has modified a section of the buffer.

length
NSUInteger length()

The logical size of the buffer, in bytes.

newTextureWithDescriptor
MTLTexture newTextureWithDescriptor(MTLTextureDescriptor , NSUInteger offset, NSUInteger bytesPerRow)

Creates a texture that shares its storage with the buffer.

removeAllDebugMarkers
void removeAllDebugMarkers()

Removes all debug marker strings from the buffer.

Meta