Share via


MTLDevice_Extensions Class

Definition

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

public static class MTLDevice_Extensions
type MTLDevice_Extensions = class
Inheritance
MTLDevice_Extensions

Remarks

The extension methods for IMTLDevice interface 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.

Methods

Name Description
ConvertSparsePixelRegions(IMTLDevice, IntPtr, IntPtr, MTLSize, MTLSparseTextureRegionAlignmentMode, UIntPtr)
ConvertSparsePixelRegions(IMTLDevice, MTLRegion[], MTLRegion[], MTLSize, MTLSparseTextureRegionAlignmentMode, UIntPtr)
ConvertSparseTileRegions(IMTLDevice, IntPtr, IntPtr, MTLSize, UIntPtr)
ConvertSparseTileRegions(IMTLDevice, MTLRegion[], MTLRegion[], MTLSize, UIntPtr)
CreateAccelerationStructure(IMTLDevice, MTLAccelerationStructureDescriptor)
CreateAccelerationStructure(IMTLDevice, UIntPtr)
CreateAccelerationStructureSizes(IMTLDevice, MTLAccelerationStructureDescriptor)
CreateArgumentEncoder(IMTLDevice, IMTLBufferBinding)
CreateBuffer<T>(IMTLDevice, T[], MTLResourceOptions)

Creates and returns a new buffer with a copy of the specified data.

CreateLibraryAsync(IMTLDevice, MTLStitchedLibraryDescriptor)
CreateLibraryAsync(IMTLDevice, String, MTLCompileOptions)
CreateRasterizationRateMap(IMTLDevice, MTLRasterizationRateMapDescriptor)
CreateRenderPipelineState(IMTLDevice, MTLMeshRenderPipelineDescriptor, MTLPipelineOption, MTLNewRenderPipelineStateWithReflectionCompletionHandler)
CreateRenderPipelineState(IMTLDevice, MTLMeshRenderPipelineDescriptor, MTLPipelineOption, MTLRenderPipelineReflection, NSError)
GetArchitecture(IMTLDevice)
GetDefaultSamplePositions(IMTLDevice, MTLSamplePosition[], UIntPtr)

Provides the default sample positions for the specified sample count.

GetHeapAccelerationStructureSizeAndAlign(IMTLDevice, MTLAccelerationStructureDescriptor)
GetHeapAccelerationStructureSizeAndAlign(IMTLDevice, UIntPtr)
GetMaximumConcurrentCompilationTaskCount(IMTLDevice)
GetShouldMaximizeConcurrentCompilation(IMTLDevice)
GetSparseTileSize(IMTLDevice, MTLTextureType, MTLPixelFormat, UIntPtr, MTLSparsePageSize)
GetSparseTileSize(IMTLDevice, MTLTextureType, MTLPixelFormat, UIntPtr)
GetSparseTileSizeInBytes(IMTLDevice, MTLSparsePageSize)
GetSparseTileSizeInBytes(IMTLDevice)
GetSupports32BitFloatFiltering(IMTLDevice)
GetSupports32BitMsaa(IMTLDevice)
GetSupportsFunctionPointers(IMTLDevice)
GetSupportsFunctionPointersFromRender(IMTLDevice)
GetSupportsPrimitiveMotionBlur(IMTLDevice)
GetSupportsQueryTextureLod(IMTLDevice)
GetSupportsRaytracing(IMTLDevice)
GetSupportsRaytracingFromRender(IMTLDevice)
GetSupportsShaderBarycentricCoordinates(IMTLDevice)
SetShouldMaximizeConcurrentCompilation(IMTLDevice, Boolean)
SupportsRasterizationRateMap(IMTLDevice, UIntPtr)
SupportsVertexAmplification(IMTLDevice, UIntPtr)

Applies to