Modules

Metal

moduleSource

Available on macOS, iOS·since 0.31.0

#import "Metal";

Procedures#

(x: NSUInteger, y: NSUInteger, z: NSUInteger, width: NSUInteger, height: NSUInteger, depth: NSUInteger) -> MTLRegion

Types#

:: enum
MTLArgumentAccessReadOnly
MTLArgumentAccessReadWrite
MTLArgumentAccessWriteOnly
:: enum
MTLArgumentTypeBuffer
MTLArgumentTypeThreadgroupMemory
MTLArgumentTypeTexture
MTLArgumentTypeSampler
:: enum
MTLAttributeFormatInvalid
MTLAttributeFormatUChar2
MTLAttributeFormatUChar3
MTLAttributeFormatUChar4
MTLAttributeFormatChar2
MTLAttributeFormatChar3
MTLAttributeFormatChar4
MTLAttributeFormatUChar2Normalized
MTLAttributeFormatUChar3Normalized
MTLAttributeFormatUChar4Normalized
MTLAttributeFormatChar2Normalized
MTLAttributeFormatChar3Normalized
MTLAttributeFormatChar4Normalized
MTLAttributeFormatUShort2
MTLAttributeFormatUShort3
MTLAttributeFormatUShort4
MTLAttributeFormatShort2
MTLAttributeFormatShort3
MTLAttributeFormatShort4
MTLAttributeFormatUShort2Normalized
MTLAttributeFormatUShort3Normalized
MTLAttributeFormatUShort4Normalized
MTLAttributeFormatShort2Normalized
MTLAttributeFormatShort3Normalized
MTLAttributeFormatShort4Normalized
MTLAttributeFormatHalf2
MTLAttributeFormatHalf3
MTLAttributeFormatHalf4
MTLAttributeFormatFloat
MTLAttributeFormatFloat2
MTLAttributeFormatFloat3
MTLAttributeFormatFloat4
MTLAttributeFormatInt
MTLAttributeFormatInt2
MTLAttributeFormatInt3
MTLAttributeFormatInt4
MTLAttributeFormatUInt
MTLAttributeFormatUInt2
MTLAttributeFormatUInt3
MTLAttributeFormatUInt4
MTLAttributeFormatInt1010102Normalized
MTLAttributeFormatUInt1010102Normalized
MTLAttributeFormatUChar4Normalized_BGRA
MTLAttributeFormatUChar
MTLAttributeFormatChar
MTLAttributeFormatUCharNormalized
MTLAttributeFormatCharNormalized
MTLAttributeFormatUShort
MTLAttributeFormatShort
MTLAttributeFormatUShortNormalized
MTLAttributeFormatShortNormalized
MTLAttributeFormatHalf
:: enum
MTLBarrierScopeBuffers
MTLBarrierScopeTextures
MTLBarrierScopeRenderTargets
:: enum
MTLBlendFactorZero
MTLBlendFactorOne
MTLBlendFactorSourceColor
MTLBlendFactorOneMinusSourceColor
MTLBlendFactorSourceAlpha
MTLBlendFactorOneMinusSourceAlpha
MTLBlendFactorDestinationColor
MTLBlendFactorOneMinusDestinationColor
MTLBlendFactorDestinationAlpha
MTLBlendFactorOneMinusDestinationAlpha
MTLBlendFactorSourceAlphaSaturated
MTLBlendFactorBlendColor
MTLBlendFactorOneMinusBlendColor
MTLBlendFactorBlendAlpha
MTLBlendFactorOneMinusBlendAlpha
MTLBlendFactorSource1Color
MTLBlendFactorOneMinusSource1Color
MTLBlendFactorSource1Alpha
MTLBlendFactorOneMinusSource1Alpha
:: enum
MTLBlendOperationAdd
MTLBlendOperationSubtract
MTLBlendOperationReverseSubtract
MTLBlendOperationMin
MTLBlendOperationMax
:: enum
MTLBlitOptionNone
MTLBlitOptionDepthFromDepthStencil
MTLBlitOptionStencilFromDepthStencil
MTLBlitOptionRowLinearPVRTC
MTLClearColorstructforeignSource
:: struct
red: float64
green: float64
blue: float64
alpha: float64
:: enum
MTLColorWriteMaskNone
MTLColorWriteMaskRed
MTLColorWriteMaskGreen
MTLColorWriteMaskBlue
MTLColorWriteMaskAlpha
MTLColorWriteMaskAll
:: enum
MTLCommandBufferErrorNone
MTLCommandBufferErrorInternal
MTLCommandBufferErrorTimeout
MTLCommandBufferErrorPageFault
MTLCommandBufferErrorBlacklisted
MTLCommandBufferErrorNotPermitted
MTLCommandBufferErrorOutOfMemory
MTLCommandBufferErrorInvalidResource
MTLCommandBufferErrorMemoryless
MTLCommandBufferErrorDeviceRemoved
:: enum
MTLCommandBufferStatusNotEnqueued
MTLCommandBufferStatusEnqueued
MTLCommandBufferStatusCommitted
MTLCommandBufferStatusScheduled
MTLCommandBufferStatusCompleted
MTLCommandBufferStatusError
:: enum
MTLCompareFunctionNever
MTLCompareFunctionLess
MTLCompareFunctionEqual
MTLCompareFunctionLessEqual
MTLCompareFunctionGreater
MTLCompareFunctionNotEqual
MTLCompareFunctionGreaterEqual
MTLCompareFunctionAlways
:: enum
MTLCullModeNone
MTLCullModeFront
MTLCullModeBack
:: enum
MTLDataTypeNone
MTLDataTypeStruct
MTLDataTypeArray
MTLDataTypeFloat
MTLDataTypeFloat2
MTLDataTypeFloat3
MTLDataTypeFloat4
MTLDataTypeFloat2x2
MTLDataTypeFloat2x3
MTLDataTypeFloat2x4
MTLDataTypeFloat3x2
MTLDataTypeFloat3x3
MTLDataTypeFloat3x4
MTLDataTypeFloat4x2
MTLDataTypeFloat4x3
MTLDataTypeFloat4x4
MTLDataTypeHalf
MTLDataTypeHalf2
MTLDataTypeHalf3
MTLDataTypeHalf4
MTLDataTypeHalf2x2
MTLDataTypeHalf2x3
MTLDataTypeHalf2x4
MTLDataTypeHalf3x2
MTLDataTypeHalf3x3
MTLDataTypeHalf3x4
MTLDataTypeHalf4x2
MTLDataTypeHalf4x3
MTLDataTypeHalf4x4
MTLDataTypeInt
MTLDataTypeInt2
MTLDataTypeInt3
MTLDataTypeInt4
MTLDataTypeUInt
MTLDataTypeUInt2
MTLDataTypeUInt3
MTLDataTypeUInt4
MTLDataTypeShort
MTLDataTypeShort2
MTLDataTypeShort3
MTLDataTypeShort4
MTLDataTypeUShort
MTLDataTypeUShort2
MTLDataTypeUShort3
MTLDataTypeUShort4
MTLDataTypeChar
MTLDataTypeChar2
MTLDataTypeChar3
MTLDataTypeChar4
MTLDataTypeUChar
MTLDataTypeUChar2
MTLDataTypeUChar3
MTLDataTypeUChar4
MTLDataTypeBool
MTLDataTypeBool2
MTLDataTypeBool3
MTLDataTypeBool4
MTLDataTypeTexture
MTLDataTypeSampler
MTLDataTypePointer
MTLDataTypeRenderPipeline
MTLDataTypeIndirectCommandBuffer
:: enum
MTLFeatureSet_iOS_GPUFamily1_v1
MTLFeatureSet_iOS_GPUFamily2_v1
MTLFeatureSet_iOS_GPUFamily1_v2
MTLFeatureSet_iOS_GPUFamily2_v2
MTLFeatureSet_iOS_GPUFamily3_v1
MTLFeatureSet_iOS_GPUFamily1_v3
MTLFeatureSet_iOS_GPUFamily2_v3
MTLFeatureSet_iOS_GPUFamily3_v2
MTLFeatureSet_iOS_GPUFamily1_v4
MTLFeatureSet_iOS_GPUFamily2_v4
MTLFeatureSet_iOS_GPUFamily3_v3
MTLFeatureSet_iOS_GPUFamily4_v1
MTLFeatureSet_iOS_GPUFamily1_v5
MTLFeatureSet_iOS_GPUFamily2_v5
MTLFeatureSet_iOS_GPUFamily3_v4
MTLFeatureSet_iOS_GPUFamily4_v2
MTLFeatureSet_macOS_GPUFamily1_v1
MTLFeatureSet_OSX_GPUFamily1_v1
MTLFeatureSet_macOS_GPUFamily1_v2
MTLFeatureSet_OSX_GPUFamily1_v2
MTLFeatureSet_macOS_ReadWriteTextureTier2
MTLFeatureSet_OSX_ReadWriteTextureTier2
MTLFeatureSet_macOS_GPUFamily1_v3
MTLFeatureSet_macOS_GPUFamily1_v4
MTLFeatureSet_macOS_GPUFamily2_v1
MTLFeatureSet_tvOS_GPUFamily1_v1
MTLFeatureSet_TVOS_GPUFamily1_v1
MTLFeatureSet_tvOS_GPUFamily1_v2
MTLFeatureSet_tvOS_GPUFamily1_v3
MTLFeatureSet_tvOS_GPUFamily1_v4
:: enum
MTLFunctionTypeVertex
MTLFunctionTypeFragment
MTLFunctionTypeKernel
:: enum
MTLIndirectCommandTypeDraw
MTLIndirectCommandTypeDrawIndexed
MTLIndirectCommandTypeDrawPatches
MTLIndirectCommandTypeDrawIndexedPatches
:: enum
MTLLanguageVersion1_0
MTLLanguageVersion1_1
MTLLanguageVersion1_2
MTLLanguageVersion2_0
MTLLanguageVersion2_1
:: enum
MTLLibraryErrorUnsupported
MTLLibraryErrorInternal
MTLLibraryErrorCompileFailure
MTLLibraryErrorCompileWarning
MTLLibraryErrorFunctionNotFound
MTLLibraryErrorFileNotFound
:: enum
MTLLoadActionDontCare
MTLLoadActionLoad
MTLLoadActionClear
:: enum
MTLMutabilityDefault
MTLMutabilityMutable
MTLMutabilityImmutable
MTLOriginstructforeignSource
:: struct
x: NSUInteger
y: NSUInteger
z: NSUInteger
:: enum
MTLPatchTypeNone
MTLPatchTypeTriangle
MTLPatchTypeQuad
:: enum
MTLPipelineOptionNone
MTLPipelineOptionArgumentInfo
MTLPipelineOptionBufferTypeInfo
:: enum
MTLPixelFormatInvalid
MTLPixelFormatA8Unorm
MTLPixelFormatR8Unorm
MTLPixelFormatR8Unorm_sRGB
MTLPixelFormatR8Snorm
MTLPixelFormatR8Uint
MTLPixelFormatR8Sint
MTLPixelFormatR16Unorm
MTLPixelFormatR16Snorm
MTLPixelFormatR16Uint
MTLPixelFormatR16Sint
MTLPixelFormatR16Float
MTLPixelFormatRG8Unorm
MTLPixelFormatRG8Unorm_sRGB
MTLPixelFormatRG8Snorm
MTLPixelFormatRG8Uint
MTLPixelFormatRG8Sint
MTLPixelFormatB5G6R5Unorm
MTLPixelFormatA1BGR5Unorm
MTLPixelFormatABGR4Unorm
MTLPixelFormatBGR5A1Unorm
MTLPixelFormatR32Uint
MTLPixelFormatR32Sint
MTLPixelFormatR32Float
MTLPixelFormatRG16Unorm
MTLPixelFormatRG16Snorm
MTLPixelFormatRG16Uint
MTLPixelFormatRG16Sint
MTLPixelFormatRG16Float
MTLPixelFormatRGBA8Unorm
MTLPixelFormatRGBA8Unorm_sRGB
MTLPixelFormatRGBA8Snorm
MTLPixelFormatRGBA8Uint
MTLPixelFormatRGBA8Sint
MTLPixelFormatBGRA8Unorm
MTLPixelFormatBGRA8Unorm_sRGB
MTLPixelFormatRGB10A2Unorm
MTLPixelFormatRGB10A2Uint
MTLPixelFormatRG11B10Float
MTLPixelFormatRGB9E5Float
MTLPixelFormatBGR10A2Unorm
MTLPixelFormatBGR10_XR
MTLPixelFormatBGR10_XR_sRGB
MTLPixelFormatRG32Uint
MTLPixelFormatRG32Sint
MTLPixelFormatRG32Float
MTLPixelFormatRGBA16Unorm
MTLPixelFormatRGBA16Snorm
MTLPixelFormatRGBA16Uint
MTLPixelFormatRGBA16Sint
MTLPixelFormatRGBA16Float
MTLPixelFormatBGRA10_XR
MTLPixelFormatBGRA10_XR_sRGB
MTLPixelFormatRGBA32Uint
MTLPixelFormatRGBA32Sint
MTLPixelFormatRGBA32Float
MTLPixelFormatBC1_RGBA
MTLPixelFormatBC1_RGBA_sRGB
MTLPixelFormatBC2_RGBA
MTLPixelFormatBC2_RGBA_sRGB
MTLPixelFormatBC3_RGBA
MTLPixelFormatBC3_RGBA_sRGB
MTLPixelFormatBC4_RUnorm
MTLPixelFormatBC4_RSnorm
MTLPixelFormatBC5_RGUnorm
MTLPixelFormatBC5_RGSnorm
MTLPixelFormatBC6H_RGBFloat
MTLPixelFormatBC6H_RGBUfloat
MTLPixelFormatBC7_RGBAUnorm
MTLPixelFormatBC7_RGBAUnorm_sRGB
MTLPixelFormatPVRTC_RGB_2BPP
MTLPixelFormatPVRTC_RGB_2BPP_sRGB
MTLPixelFormatPVRTC_RGB_4BPP
MTLPixelFormatPVRTC_RGB_4BPP_sRGB
MTLPixelFormatPVRTC_RGBA_2BPP
MTLPixelFormatPVRTC_RGBA_2BPP_sRGB
MTLPixelFormatPVRTC_RGBA_4BPP
MTLPixelFormatPVRTC_RGBA_4BPP_sRGB
MTLPixelFormatEAC_R11Unorm
MTLPixelFormatEAC_R11Snorm
MTLPixelFormatEAC_RG11Unorm
MTLPixelFormatEAC_RG11Snorm
MTLPixelFormatEAC_RGBA8
MTLPixelFormatEAC_RGBA8_sRGB
MTLPixelFormatETC2_RGB8
MTLPixelFormatETC2_RGB8_sRGB
MTLPixelFormatETC2_RGB8A1
MTLPixelFormatETC2_RGB8A1_sRGB
MTLPixelFormatASTC_4x4_sRGB
MTLPixelFormatASTC_5x4_sRGB
MTLPixelFormatASTC_5x5_sRGB
MTLPixelFormatASTC_6x5_sRGB
MTLPixelFormatASTC_6x6_sRGB
MTLPixelFormatASTC_8x5_sRGB
MTLPixelFormatASTC_8x6_sRGB
MTLPixelFormatASTC_8x8_sRGB
MTLPixelFormatASTC_10x5_sRGB
MTLPixelFormatASTC_10x6_sRGB
MTLPixelFormatASTC_10x8_sRGB
MTLPixelFormatASTC_10x10_sRGB
MTLPixelFormatASTC_12x10_sRGB
MTLPixelFormatASTC_12x12_sRGB
MTLPixelFormatASTC_4x4_LDR
MTLPixelFormatASTC_5x4_LDR
MTLPixelFormatASTC_5x5_LDR
MTLPixelFormatASTC_6x5_LDR
MTLPixelFormatASTC_6x6_LDR
MTLPixelFormatASTC_8x5_LDR
MTLPixelFormatASTC_8x6_LDR
MTLPixelFormatASTC_8x8_LDR
MTLPixelFormatASTC_10x5_LDR
MTLPixelFormatASTC_10x6_LDR
MTLPixelFormatASTC_10x8_LDR
MTLPixelFormatASTC_10x10_LDR
MTLPixelFormatASTC_12x10_LDR
MTLPixelFormatASTC_12x12_LDR
MTLPixelFormatGBGR422
MTLPixelFormatBGRG422
MTLPixelFormatDepth16Unorm
MTLPixelFormatDepth32Float
MTLPixelFormatStencil8
MTLPixelFormatDepth24Unorm_Stencil8
MTLPixelFormatDepth32Float_Stencil8
MTLPixelFormatX32_Stencil8
MTLPixelFormatX24_Stencil8
:: enum
MTLPrimitiveTopologyClassUnspecified
MTLPrimitiveTopologyClassPoint
MTLPrimitiveTopologyClassLine
MTLPrimitiveTopologyClassTriangle
:: enum
MTLPrimitiveTypePoint
MTLPrimitiveTypeLine
MTLPrimitiveTypeLineStrip
MTLPrimitiveTypeTriangle
MTLPrimitiveTypeTriangleStrip
:: enum
MTLPurgeableStateKeepCurrent
MTLPurgeableStateNonVolatile
MTLPurgeableStateVolatile
MTLPurgeableStateEmpty
:: enum
MTLResourceCPUCacheModeDefaultCache
MTLResourceCPUCacheModeWriteCombined
MTLResourceStorageModeShared
MTLResourceStorageModeManaged
MTLResourceStorageModePrivate
MTLResourceStorageModeMemoryless
MTLResourceHazardTrackingModeUntracked
MTLResourceOptionCPUCacheModeDefault
MTLResourceOptionCPUCacheModeWriteCombined
:: enum
MTLSamplerAddressModeClampToEdge
MTLSamplerAddressModeMirrorClampToEdge
MTLSamplerAddressModeRepeat
MTLSamplerAddressModeMirrorRepeat
MTLSamplerAddressModeClampToZero
MTLSamplerAddressModeClampToBorderColor
:: enum
MTLSamplerBorderColorTransparentBlack
MTLSamplerBorderColorOpaqueBlack
MTLSamplerBorderColorOpaqueWhite
:: enum
MTLSamplerMipFilterNotMipmapped
MTLSamplerMipFilterNearest
MTLSamplerMipFilterLinear
:: struct
x: NSUInteger
y: NSUInteger
width: NSUInteger
height: NSUInteger
MTLSizestructforeignSource
:: struct
width: NSUInteger
height: NSUInteger
depth: NSUInteger
:: enum
MTLStencilOperationKeep
MTLStencilOperationZero
MTLStencilOperationReplace
MTLStencilOperationIncrementClamp
MTLStencilOperationDecrementClamp
MTLStencilOperationInvert
MTLStencilOperationIncrementWrap
MTLStencilOperationDecrementWrap
:: enum
MTLStepFunctionConstant
MTLStepFunctionPerVertex
MTLStepFunctionPerInstance
MTLStepFunctionPerPatch
MTLStepFunctionPerPatchControlPoint
MTLStepFunctionThreadPositionInGridX
MTLStepFunctionThreadPositionInGridY
MTLStepFunctionThreadPositionInGridXIndexed
MTLStepFunctionThreadPositionInGridYIndexed
:: enum
MTLStorageModeShared
MTLStorageModeManaged
MTLStorageModePrivate
MTLStorageModeMemoryless
:: enum
MTLStoreActionDontCare
MTLStoreActionStore
MTLStoreActionMultisampleResolve
MTLStoreActionStoreAndMultisampleResolve
MTLStoreActionUnknown
MTLStoreActionCustomSampleDepthStore
:: enum
MTLTessellationFactorStepFunctionConstant
MTLTessellationFactorStepFunctionPerPatch
MTLTessellationFactorStepFunctionPerInstance
MTLTessellationFactorStepFunctionPerPatchAndPerInstance
:: enum
MTLTessellationPartitionModePow2
MTLTessellationPartitionModeInteger
MTLTessellationPartitionModeFractionalOdd
MTLTessellationPartitionModeFractionalEven
:: enum
MTLTextureType1D
MTLTextureType1DArray
MTLTextureType2D
MTLTextureType2DArray
MTLTextureType2DMultisample
MTLTextureTypeCube
MTLTextureTypeCubeArray
MTLTextureType3D
MTLTextureType2DMultisampleArray
MTLTextureTypeTextureBuffer
:: enum
MTLTextureUsageUnknown
MTLTextureUsageShaderRead
MTLTextureUsageShaderWrite
MTLTextureUsageRenderTarget
MTLTextureUsagePixelFormatView
:: enum
MTLVertexFormatInvalid
MTLVertexFormatUChar2
MTLVertexFormatUChar3
MTLVertexFormatUChar4
MTLVertexFormatChar2
MTLVertexFormatChar3
MTLVertexFormatChar4
MTLVertexFormatUChar2Normalized
MTLVertexFormatUChar3Normalized
MTLVertexFormatUChar4Normalized
MTLVertexFormatChar2Normalized
MTLVertexFormatChar3Normalized
MTLVertexFormatChar4Normalized
MTLVertexFormatUShort2
MTLVertexFormatUShort3
MTLVertexFormatUShort4
MTLVertexFormatShort2
MTLVertexFormatShort3
MTLVertexFormatShort4
MTLVertexFormatUShort2Normalized
MTLVertexFormatUShort3Normalized
MTLVertexFormatUShort4Normalized
MTLVertexFormatShort2Normalized
MTLVertexFormatShort3Normalized
MTLVertexFormatShort4Normalized
MTLVertexFormatHalf2
MTLVertexFormatHalf3
MTLVertexFormatHalf4
MTLVertexFormatFloat
MTLVertexFormatFloat2
MTLVertexFormatFloat3
MTLVertexFormatFloat4
MTLVertexFormatInt
MTLVertexFormatInt2
MTLVertexFormatInt3
MTLVertexFormatInt4
MTLVertexFormatUInt
MTLVertexFormatUInt2
MTLVertexFormatUInt3
MTLVertexFormatUInt4
MTLVertexFormatInt1010102Normalized
MTLVertexFormatUInt1010102Normalized
MTLVertexFormatUChar4Normalized_BGRA
MTLVertexFormatUChar
MTLVertexFormatChar
MTLVertexFormatUCharNormalized
MTLVertexFormatCharNormalized
MTLVertexFormatUShort
MTLVertexFormatShort
MTLVertexFormatUShortNormalized
MTLVertexFormatShortNormalized
MTLVertexFormatHalf
:: enum
MTLVertexStepFunctionConstant
MTLVertexStepFunctionPerVertex
MTLVertexStepFunctionPerInstance
MTLVertexStepFunctionPerPatch
MTLVertexStepFunctionPerPatchControlPoint
MTLViewportstructforeignSource
:: struct
originX: float64
originY: float64
width: float64
height: float64
znear: float64
zfar: float64
:: enum
MTLVisibilityResultModeDisabled
MTLVisibilityResultModeBoolean
MTLVisibilityResultModeCounting
MTLWindingenumforeignSource
:: enum
MTLWindingClockwise
MTLWindingCounterClockwise