d-metal-binding v1.0.4 (2023-03-15T23:34:54Z)
Dub
Repo
MTLDevice.newBuffer
metal
metal
MTLDevice
Creates a buffer the method clears with zero values, length is size in bytes.
MTLBuffer
newBuffer
(NSUInteger length, MTLResourceOptions options)
class
MTLDevice
@
selector
("newBufferWithLength:options:")
MTLBuffer
newBuffer
(
NSUInteger
length
,
MTLResourceOptions
options
)
MTLBuffer
newBuffer
(const(void)* pointer, NSUInteger length, MTLResourceOptions options)
Meta
Source
See Implementation
metal
metal
MTLDevice
functions
newBuffer
newCommandQueue
newDefaultLibrary
newIOCommandQueueWithDescriptor
newLibraryWithSource
newRenderPipelineStateWithDescriptor
newSamplerStateWithDescriptor
newTextureWithDescriptor
supportsTextureSampleCount
Creates a buffer the method clears with zero values, length is size in bytes.