iOS Guides | Samples

MonoTouch.Metal.MTLDevice_Extensions Class

Extension methods to the IMTLDevice interface to support all the methods from the MTLDevice protocol.

See Also: MTLDevice_Extensions

Syntax

public static class MTLDevice_Extensions

Remarks

The extension methods for IMTLDevice allow developers to treat instances of the interface as having all the optional methods of the original MTLDevice protocol. Since the interface only contains the required members, these extension methods allow developers to call the optional members of the protocol.

Requirements

Namespace: MonoTouch.Metal
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.Metal.MTLDevice_Extensions are listed below.

See Also: Object

Public Methods

static
CreateBuffer<T>(this IMTLDevice, T[], MTLResourceOptions) : IMTLBuffer
Creates and returns a new buffer with a copy of the specified data.
static
CreateBufferNoCopy<T>(this IMTLDevice, T[], MTLResourceOptions, MTLDeallocator) : IMTLBuffer
Creates and returns a new buffer that is wrapped around the specified data, and runs an optional deallocator when the memory is deallocated.
static
CreateComputePipelineState(this IMTLDevice, IMTLFunction, Action<IMTLComputePipelineState, MonoTouch.Foundation.NSError>)
Creates a new pipeline state from the specified compute function and completion handler.
static
CreateComputePipelineState(this IMTLDevice, MTLComputePipelineDescriptor, MTLPipelineOption, MTLNewComputePipelineStateWithReflectionCompletionHandler)
Creates a new pipeline state from the specified compute pipeline descriptor, options, and completion handler.
static
CreateComputePipelineState(this IMTLDevice, IMTLFunction, MTLPipelineOption, out MTLComputePipelineReflection, out NSError) : IMTLComputePipelineState
Creates a new pipeline state from the specified compute function, options, and completion handler, and stores reflection information in the reflectionout parameter.
static
CreateComputePipelineState(this IMTLDevice, MTLComputePipelineDescriptor, MTLPipelineOption, out MTLComputePipelineReflection, out NSError) : IMTLComputePipelineState
Creates a new pipeline state from the specified compute pipeline descriptor, options, and completion handler, and stores reflection information in the reflectionout parameter.
static
CreateFence(this IMTLDevice) : IMTLFence
Creates and returns a new fence for tracking and managing dependencies between command encoders.
static
CreateHeap(this IMTLDevice, MTLHeapDescriptor) : IMTLHeap
Creates and returns a new heap.
static
CreateLibrary(this IMTLDevice, NSBundle, out NSError) : IMTLLibrary
Creates and returns a new library from the functions in the specified bundle.
static
CreateRenderPipelineState(this IMTLDevice, MTLRenderPipelineDescriptor, MTLPipelineOption, Action<IMTLRenderPipelineState, MTLRenderPipelineReflection, MonoTouch.Foundation.NSError>)
Creates and returns a new render pipeline state.
static
CreateRenderPipelineState(this IMTLDevice, MTLRenderPipelineDescriptor, MTLPipelineOption, out MTLRenderPipelineReflection, out NSError) : IMTLRenderPipelineState
Creates and returns a new render pipeline state, and stores reflection information in the reflectionout parameter.
static
GetHeapBufferSizeAndAlignWithLength(this IMTLDevice, UInt32, MTLResourceOptions) : MTLSizeAndAlign
Gets the size and alignment of a buffer with size length, when allocated from a heap.
static
GetHeapTextureSizeAndAlign(this IMTLDevice, MTLTextureDescriptor) : MTLSizeAndAlign
Gets the size and alignment of a texture with specified description, when allocated from a heap.
static
GetMaxThreadsPerThreadgroup(this IMTLDevice) : MTLSize
Returns the number of threads per threadgroup on the device.
static
SupportsTextureSampleCount(this IMTLDevice, UInt32) : Boolean
Returns a Boolean value that tells whether the device supports the specified texture count.