Skip to content

Instantly share code, notes, and snippets.

@floooh
Created March 1, 2021 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save floooh/f81b8ab22382dc8edbe7a45af88ae344 to your computer and use it in GitHub Desktop.
Save floooh/f81b8ab22382dc8edbe7a45af88ae344 to your computer and use it in GitHub Desktop.
Extracting Objective-C APIs with clang -ast-dump
ENUM MTLResourceOptions
MTLResourceCPUCacheModeDefaultCache
MTLResourceCPUCacheModeWriteCombined
MTLResourceStorageModeShared
MTLResourceStorageModeManaged
MTLResourceStorageModePrivate
MTLResourceStorageModeMemoryless
MTLResourceHazardTrackingModeDefault
MTLResourceHazardTrackingModeUntracked
MTLResourceHazardTrackingModeTracked
MTLResourceOptionCPUCacheModeDefault
MTLResourceOptionCPUCacheModeWriteCombined
ENUM MTLPixelFormat
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
MTLPixelFormatASTC_4x4_HDR
MTLPixelFormatASTC_5x4_HDR
MTLPixelFormatASTC_5x5_HDR
MTLPixelFormatASTC_6x5_HDR
MTLPixelFormatASTC_6x6_HDR
MTLPixelFormatASTC_8x5_HDR
MTLPixelFormatASTC_8x6_HDR
MTLPixelFormatASTC_8x8_HDR
MTLPixelFormatASTC_10x5_HDR
MTLPixelFormatASTC_10x6_HDR
MTLPixelFormatASTC_10x8_HDR
MTLPixelFormatASTC_10x10_HDR
MTLPixelFormatASTC_12x10_HDR
MTLPixelFormatASTC_12x12_HDR
MTLPixelFormatGBGR422
MTLPixelFormatBGRG422
MTLPixelFormatDepth16Unorm
MTLPixelFormatDepth32Float
MTLPixelFormatStencil8
MTLPixelFormatDepth24Unorm_Stencil8
MTLPixelFormatDepth32Float_Stencil8
MTLPixelFormatX32_Stencil8
MTLPixelFormatX24_Stencil8
PROTOCOL MTLBuffer
PROPERTY length
METHOD contents
RETURN void * _Nonnull
METHOD didModifyRange:
RETURN void
ARG NSRange range
METHOD newTextureWithDescriptor:offset:bytesPerRow:
RETURN id<MTLTexture> _Nullable
ARG MTLTextureDescriptor * _Nonnull descriptor
ARG NSUInteger offset
ARG NSUInteger bytesPerRow
METHOD addDebugMarker:range:
RETURN void
ARG NSString * _Nonnull marker
ARG NSRange range
METHOD removeAllDebugMarkers
RETURN void
PROPERTY remoteStorageBuffer
METHOD newRemoteBufferViewForDevice:
RETURN id<MTLBuffer> _Nullable
ARG id<MTLDevice> _Nonnull device
METHOD length
RETURN NSUInteger
METHOD remoteStorageBuffer
RETURN API_AVAILABLE(macos(10.15)) id<MTLBuffer>
ENUM MTLTextureType
MTLTextureType1D
MTLTextureType1DArray
MTLTextureType2D
MTLTextureType2DArray
MTLTextureType2DMultisample
MTLTextureTypeCube
MTLTextureTypeCubeArray
MTLTextureType3D
MTLTextureType2DMultisampleArray
MTLTextureTypeTextureBuffer
INTERFACE MTLTextureDescriptor
METHOD texture2DDescriptorWithPixelFormat:width:height:mipmapped:
RETURN MTLTextureDescriptor * _Nonnull
ARG MTLPixelFormat pixelFormat
ARG NSUInteger width
ARG NSUInteger height
ARG BOOL mipmapped
METHOD textureCubeDescriptorWithPixelFormat:size:mipmapped:
RETURN MTLTextureDescriptor * _Nonnull
ARG MTLPixelFormat pixelFormat
ARG NSUInteger size
ARG BOOL mipmapped
METHOD textureBufferDescriptorWithPixelFormat:width:resourceOptions:usage:
RETURN MTLTextureDescriptor * _Nonnull
ARG MTLPixelFormat pixelFormat
ARG NSUInteger width
ARG MTLResourceOptions resourceOptions
ARG MTLTextureUsage usage
PROPERTY textureType
PROPERTY pixelFormat
PROPERTY width
PROPERTY height
PROPERTY depth
PROPERTY mipmapLevelCount
PROPERTY sampleCount
PROPERTY arrayLength
PROPERTY resourceOptions
PROPERTY cpuCacheMode
PROPERTY storageMode
PROPERTY hazardTrackingMode
PROPERTY usage
PROPERTY allowGPUOptimizedContents
PROPERTY swizzle
METHOD textureType
RETURN MTLTextureType
METHOD setTextureType:
RETURN void
ARG MTLTextureType textureType
METHOD pixelFormat
RETURN MTLPixelFormat
METHOD setPixelFormat:
RETURN void
ARG MTLPixelFormat pixelFormat
METHOD width
RETURN NSUInteger
METHOD setWidth:
RETURN void
ARG NSUInteger width
METHOD height
RETURN NSUInteger
METHOD setHeight:
RETURN void
ARG NSUInteger height
METHOD depth
RETURN NSUInteger
METHOD setDepth:
RETURN void
ARG NSUInteger depth
METHOD mipmapLevelCount
RETURN NSUInteger
METHOD setMipmapLevelCount:
RETURN void
ARG NSUInteger mipmapLevelCount
METHOD sampleCount
RETURN NSUInteger
METHOD setSampleCount:
RETURN void
ARG NSUInteger sampleCount
METHOD arrayLength
RETURN NSUInteger
METHOD setArrayLength:
RETURN void
ARG NSUInteger arrayLength
METHOD resourceOptions
RETURN MTLResourceOptions
METHOD setResourceOptions:
RETURN void
ARG MTLResourceOptions resourceOptions
METHOD cpuCacheMode
RETURN MTLCPUCacheMode
METHOD setCpuCacheMode:
RETURN void
ARG MTLCPUCacheMode cpuCacheMode
METHOD storageMode
RETURN MTLStorageMode
METHOD setStorageMode:
RETURN void
ARG MTLStorageMode storageMode
METHOD hazardTrackingMode
RETURN MTLHazardTrackingMode
METHOD setHazardTrackingMode:
RETURN void
ARG MTLHazardTrackingMode hazardTrackingMode
METHOD usage
RETURN MTLTextureUsage
METHOD setUsage:
RETURN void
ARG MTLTextureUsage usage
METHOD allowGPUOptimizedContents
RETURN BOOL
METHOD setAllowGPUOptimizedContents:
RETURN void
ARG BOOL allowGPUOptimizedContents
METHOD swizzle
RETURN MTLTextureSwizzleChannels
METHOD setSwizzle:
RETURN void
ARG MTLTextureSwizzleChannels swizzle
PROTOCOL MTLTexture
PROPERTY rootResource
PROPERTY parentTexture
PROPERTY parentRelativeLevel
PROPERTY parentRelativeSlice
PROPERTY buffer
PROPERTY bufferOffset
PROPERTY bufferBytesPerRow
PROPERTY iosurface
PROPERTY iosurfacePlane
PROPERTY textureType
PROPERTY pixelFormat
PROPERTY width
PROPERTY height
PROPERTY depth
PROPERTY mipmapLevelCount
PROPERTY sampleCount
PROPERTY arrayLength
PROPERTY usage
PROPERTY shareable
PROPERTY framebufferOnly
PROPERTY firstMipmapInTail
PROPERTY tailSizeInBytes
PROPERTY isSparse
PROPERTY allowGPUOptimizedContents
METHOD getBytes:bytesPerRow:bytesPerImage:fromRegion:mipmapLevel:slice:
RETURN void
ARG void * _Nonnull pixelBytes
ARG NSUInteger bytesPerRow
ARG NSUInteger bytesPerImage
ARG MTLRegion region
ARG NSUInteger level
ARG NSUInteger slice
METHOD replaceRegion:mipmapLevel:slice:withBytes:bytesPerRow:bytesPerImage:
RETURN void
ARG MTLRegion region
ARG NSUInteger level
ARG NSUInteger slice
ARG const void * _Nonnull pixelBytes
ARG NSUInteger bytesPerRow
ARG NSUInteger bytesPerImage
METHOD getBytes:bytesPerRow:fromRegion:mipmapLevel:
RETURN void
ARG void * _Nonnull pixelBytes
ARG NSUInteger bytesPerRow
ARG MTLRegion region
ARG NSUInteger level
METHOD replaceRegion:mipmapLevel:withBytes:bytesPerRow:
RETURN void
ARG MTLRegion region
ARG NSUInteger level
ARG const void * _Nonnull pixelBytes
ARG NSUInteger bytesPerRow
METHOD newTextureViewWithPixelFormat:
RETURN id<MTLTexture> _Nullable
ARG MTLPixelFormat pixelFormat
METHOD newTextureViewWithPixelFormat:textureType:levels:slices:
RETURN id<MTLTexture> _Nullable
ARG MTLPixelFormat pixelFormat
ARG MTLTextureType textureType
ARG NSRange levelRange
ARG NSRange sliceRange
METHOD newSharedTextureHandle
RETURN MTLSharedTextureHandle * _Nullable
PROPERTY remoteStorageTexture
METHOD newRemoteTextureViewForDevice:
RETURN id<MTLTexture> _Nullable
ARG id<MTLDevice> _Nonnull device
PROPERTY swizzle
METHOD newTextureViewWithPixelFormat:textureType:levels:slices:swizzle:
RETURN id<MTLTexture> _Nullable
ARG MTLPixelFormat pixelFormat
ARG MTLTextureType textureType
ARG NSRange levelRange
ARG NSRange sliceRange
ARG MTLTextureSwizzleChannels swizzle
METHOD rootResource
RETURN id<MTLResource> _Nullable
METHOD parentTexture
RETURN id<MTLTexture> _Nullable
METHOD parentRelativeLevel
RETURN NSUInteger
METHOD parentRelativeSlice
RETURN NSUInteger
METHOD buffer
RETURN id<MTLBuffer> _Nullable
METHOD bufferOffset
RETURN NSUInteger
METHOD bufferBytesPerRow
RETURN NSUInteger
METHOD iosurface
RETURN IOSurfaceRef _Nullable
METHOD iosurfacePlane
RETURN NSUInteger
METHOD textureType
RETURN MTLTextureType
METHOD pixelFormat
RETURN MTLPixelFormat
METHOD width
RETURN NSUInteger
METHOD height
RETURN NSUInteger
METHOD depth
RETURN NSUInteger
METHOD mipmapLevelCount
RETURN NSUInteger
METHOD sampleCount
RETURN NSUInteger
METHOD arrayLength
RETURN NSUInteger
METHOD usage
RETURN MTLTextureUsage
METHOD isShareable
RETURN BOOL
METHOD isFramebufferOnly
RETURN BOOL
METHOD firstMipmapInTail
RETURN NSUInteger
METHOD tailSizeInBytes
RETURN NSUInteger
METHOD isSparse
RETURN BOOL
METHOD allowGPUOptimizedContents
RETURN BOOL
METHOD remoteStorageTexture
RETURN API_AVAILABLE(macos(10.15)) id<MTLTexture>
METHOD swizzle
RETURN MTLTextureSwizzleChannels
PROTOCOL MTLFunction
PROPERTY label
PROPERTY device
PROPERTY functionType
PROPERTY patchType
PROPERTY patchControlPointCount
PROPERTY vertexAttributes
PROPERTY stageInputAttributes
PROPERTY name
PROPERTY functionConstantsDictionary
METHOD newArgumentEncoderWithBufferIndex:
RETURN id<MTLArgumentEncoder> _Nonnull
ARG NSUInteger bufferIndex
METHOD newArgumentEncoderWithBufferIndex:reflection:
RETURN id<MTLArgumentEncoder> _Nonnull
ARG NSUInteger bufferIndex
ARG MTLAutoreleasedArgument * _Nullable reflection
PROPERTY options
METHOD label
RETURN NSString * _Nullable
METHOD setLabel:
RETURN void
ARG NSString * _Nullable label
METHOD device
RETURN id<MTLDevice> _Nonnull
METHOD functionType
RETURN MTLFunctionType
METHOD patchType
RETURN MTLPatchType
METHOD patchControlPointCount
RETURN NSInteger
METHOD vertexAttributes
RETURN NSArray<MTLVertexAttribute *> * _Nullable
METHOD stageInputAttributes
RETURN NSArray<MTLAttribute *> * _Nullable
METHOD name
RETURN NSString * _Nonnull
METHOD functionConstantsDictionary
RETURN NSDictionary<NSString *,MTLFunctionConstant *> * _Nonnull
METHOD options
RETURN MTLFunctionOptions
PROTOCOL MTLLibrary
PROPERTY label
PROPERTY device
METHOD newFunctionWithName:
RETURN id<MTLFunction> _Nullable
ARG NSString * _Nonnull functionName
METHOD newFunctionWithName:constantValues:error:
RETURN id<MTLFunction> _Nullable
ARG NSString * _Nonnull name
ARG MTLFunctionConstantValues * _Nonnull constantValues
ARG NSError * _Nullable * _Nullable error
METHOD newFunctionWithName:constantValues:completionHandler:
RETURN void
ARG NSString * _Nonnull name
ARG MTLFunctionConstantValues * _Nonnull constantValues
ARG void (^ _Nonnull)(id<MTLFunction> _Nullable, NSError * _Nullable) completionHandler
METHOD newFunctionWithDescriptor:completionHandler:
RETURN void
ARG MTLFunctionDescriptor * _Nonnull descriptor
ARG void (^ _Nonnull)(id<MTLFunction> _Nullable, NSError * _Nullable) completionHandler
METHOD newFunctionWithDescriptor:error:
RETURN id<MTLFunction> _Nullable
ARG MTLFunctionDescriptor * _Nonnull descriptor
ARG NSError * _Nullable * _Nullable error
METHOD newIntersectionFunctionWithDescriptor:completionHandler:
RETURN void
ARG MTLIntersectionFunctionDescriptor * _Nonnull descriptor
ARG void (^ _Nonnull)(id<MTLFunction> _Nullable, NSError * _Nullable) completionHandler
METHOD newIntersectionFunctionWithDescriptor:error:
RETURN id<MTLFunction> _Nullable
ARG MTLIntersectionFunctionDescriptor * _Nonnull descriptor
ARG NSError * _Nullable * _Nullable error
PROPERTY functionNames
PROPERTY type
PROPERTY installName
METHOD label
RETURN NSString * _Nullable
METHOD setLabel:
RETURN void
ARG NSString * _Nullable label
METHOD device
RETURN id<MTLDevice> _Nonnull
METHOD functionNames
RETURN NSArray<NSString *> * _Nonnull
METHOD type
RETURN MTLLibraryType
METHOD installName
RETURN NSString * _Nullable
PROTOCOL MTLDevice
PROPERTY name
PROPERTY registryID
PROPERTY maxThreadsPerThreadgroup
PROPERTY lowPower
PROPERTY headless
PROPERTY removable
PROPERTY hasUnifiedMemory
PROPERTY recommendedMaxWorkingSetSize
PROPERTY location
PROPERTY locationNumber
PROPERTY maxTransferRate
PROPERTY depth24Stencil8PixelFormatSupported
PROPERTY readWriteTextureSupport
PROPERTY argumentBuffersSupport
PROPERTY rasterOrderGroupsSupported
PROPERTY supports32BitFloatFiltering
PROPERTY supports32BitMSAA
PROPERTY supportsQueryTextureLOD
PROPERTY supportsBCTextureCompression
PROPERTY supportsPullModelInterpolation
PROPERTY barycentricCoordsSupported
PROPERTY supportsShaderBarycentricCoordinates
PROPERTY currentAllocatedSize
METHOD newCommandQueue
RETURN id<MTLCommandQueue> _Nullable
METHOD newCommandQueueWithMaxCommandBufferCount:
RETURN id<MTLCommandQueue> _Nullable
ARG NSUInteger maxCommandBufferCount
METHOD heapTextureSizeAndAlignWithDescriptor:
RETURN MTLSizeAndAlign
ARG MTLTextureDescriptor * _Nonnull desc
METHOD heapBufferSizeAndAlignWithLength:options:
RETURN MTLSizeAndAlign
ARG NSUInteger length
ARG MTLResourceOptions options
METHOD newHeapWithDescriptor:
RETURN id<MTLHeap> _Nullable
ARG MTLHeapDescriptor * _Nonnull descriptor
METHOD newBufferWithLength:options:
RETURN id<MTLBuffer> _Nullable
ARG NSUInteger length
ARG MTLResourceOptions options
METHOD newBufferWithBytes:length:options:
RETURN id<MTLBuffer> _Nullable
ARG const void * _Nonnull pointer
ARG NSUInteger length
ARG MTLResourceOptions options
METHOD newBufferWithBytesNoCopy:length:options:deallocator:
RETURN id<MTLBuffer> _Nullable
ARG void * _Nonnull pointer
ARG NSUInteger length
ARG MTLResourceOptions options
ARG void (^ _Nullable)(void * _Nonnull, NSUInteger) deallocator
METHOD newDepthStencilStateWithDescriptor:
RETURN id<MTLDepthStencilState> _Nullable
ARG MTLDepthStencilDescriptor * _Nonnull descriptor
METHOD newTextureWithDescriptor:
RETURN id<MTLTexture> _Nullable
ARG MTLTextureDescriptor * _Nonnull descriptor
METHOD newTextureWithDescriptor:iosurface:plane:
RETURN id<MTLTexture> _Nullable
ARG MTLTextureDescriptor * _Nonnull descriptor
ARG IOSurfaceRef _Nonnull iosurface
ARG NSUInteger plane
METHOD newSharedTextureWithDescriptor:
RETURN id<MTLTexture> _Nullable
ARG MTLTextureDescriptor * _Nonnull descriptor
METHOD newSharedTextureWithHandle:
RETURN id<MTLTexture> _Nullable
ARG MTLSharedTextureHandle * _Nonnull sharedHandle
METHOD newSamplerStateWithDescriptor:
RETURN id<MTLSamplerState> _Nullable
ARG MTLSamplerDescriptor * _Nonnull descriptor
METHOD newDefaultLibrary
RETURN id<MTLLibrary> _Nullable
METHOD newDefaultLibraryWithBundle:error:
RETURN id<MTLLibrary> _Nullable
ARG NSBundle * _Nonnull bundle
ARG NSError * _Nullable * _Nullable error
METHOD newLibraryWithFile:error:
RETURN id<MTLLibrary> _Nullable
ARG NSString * _Nonnull filepath
ARG NSError * _Nullable * _Nullable error
METHOD newLibraryWithURL:error:
RETURN id<MTLLibrary> _Nullable
ARG NSURL * _Nonnull url
ARG NSError * _Nullable * _Nullable error
METHOD newLibraryWithData:error:
RETURN id<MTLLibrary> _Nullable
ARG dispatch_data_t _Nonnull data
ARG NSError * _Nullable * _Nullable error
METHOD newLibraryWithSource:options:error:
RETURN id<MTLLibrary> _Nullable
ARG NSString * _Nonnull source
ARG MTLCompileOptions * _Nullable options
ARG NSError * _Nullable * _Nullable error
METHOD newLibraryWithSource:options:completionHandler:
RETURN void
ARG NSString * _Nonnull source
ARG MTLCompileOptions * _Nullable options
ARG MTLNewLibraryCompletionHandler _Nonnull completionHandler
METHOD newRenderPipelineStateWithDescriptor:error:
RETURN id<MTLRenderPipelineState> _Nullable
ARG MTLRenderPipelineDescriptor * _Nonnull descriptor
ARG NSError * _Nullable * _Nullable error
METHOD newRenderPipelineStateWithDescriptor:options:reflection:error:
RETURN id<MTLRenderPipelineState> _Nullable
ARG MTLRenderPipelineDescriptor * _Nonnull descriptor
ARG MTLPipelineOption options
ARG MTLAutoreleasedRenderPipelineReflection * _Nullable reflection
ARG NSError * _Nullable * _Nullable error
METHOD newRenderPipelineStateWithDescriptor:completionHandler:
RETURN void
ARG MTLRenderPipelineDescriptor * _Nonnull descriptor
ARG MTLNewRenderPipelineStateCompletionHandler _Nonnull completionHandler
METHOD newRenderPipelineStateWithDescriptor:options:completionHandler:
RETURN void
ARG MTLRenderPipelineDescriptor * _Nonnull descriptor
ARG MTLPipelineOption options
ARG MTLNewRenderPipelineStateWithReflectionCompletionHandler _Nonnull completionHandler
METHOD newComputePipelineStateWithFunction:error:
RETURN id<MTLComputePipelineState> _Nullable
ARG id<MTLFunction> _Nonnull computeFunction
ARG NSError * _Nullable * _Nullable error
METHOD newComputePipelineStateWithFunction:options:reflection:error:
RETURN id<MTLComputePipelineState> _Nullable
ARG id<MTLFunction> _Nonnull computeFunction
ARG MTLPipelineOption options
ARG MTLAutoreleasedComputePipelineReflection * _Nullable reflection
ARG NSError * _Nullable * _Nullable error
METHOD newComputePipelineStateWithFunction:completionHandler:
RETURN void
ARG id<MTLFunction> _Nonnull computeFunction
ARG MTLNewComputePipelineStateCompletionHandler _Nonnull completionHandler
METHOD newComputePipelineStateWithFunction:options:completionHandler:
RETURN void
ARG id<MTLFunction> _Nonnull computeFunction
ARG MTLPipelineOption options
ARG MTLNewComputePipelineStateWithReflectionCompletionHandler _Nonnull completionHandler
METHOD newComputePipelineStateWithDescriptor:options:reflection:error:
RETURN id<MTLComputePipelineState> _Nullable
ARG MTLComputePipelineDescriptor * _Nonnull descriptor
ARG MTLPipelineOption options
ARG MTLAutoreleasedComputePipelineReflection * _Nullable reflection
ARG NSError * _Nullable * _Nullable error
METHOD newComputePipelineStateWithDescriptor:options:completionHandler:
RETURN void
ARG MTLComputePipelineDescriptor * _Nonnull descriptor
ARG MTLPipelineOption options
ARG MTLNewComputePipelineStateWithReflectionCompletionHandler _Nonnull completionHandler
METHOD newFence
RETURN id<MTLFence> _Nullable
METHOD supportsFeatureSet:
RETURN BOOL
ARG MTLFeatureSet featureSet
METHOD supportsFamily:
RETURN BOOL
ARG MTLGPUFamily gpuFamily
METHOD supportsTextureSampleCount:
RETURN BOOL
ARG NSUInteger sampleCount
METHOD minimumLinearTextureAlignmentForPixelFormat:
RETURN NSUInteger
ARG MTLPixelFormat format
METHOD minimumTextureBufferAlignmentForPixelFormat:
RETURN NSUInteger
ARG MTLPixelFormat format
METHOD newRenderPipelineStateWithTileDescriptor:options:reflection:error:
RETURN id<MTLRenderPipelineState> _Nullable
ARG MTLTileRenderPipelineDescriptor * _Nonnull descriptor
ARG MTLPipelineOption options
ARG MTLAutoreleasedRenderPipelineReflection * _Nullable reflection
ARG NSError * _Nullable * _Nullable error
METHOD newRenderPipelineStateWithTileDescriptor:options:completionHandler:
RETURN void
ARG MTLTileRenderPipelineDescriptor * _Nonnull descriptor
ARG MTLPipelineOption options
ARG MTLNewRenderPipelineStateWithReflectionCompletionHandler _Nonnull completionHandler
PROPERTY maxThreadgroupMemoryLength
PROPERTY maxArgumentBufferSamplerCount
PROPERTY programmableSamplePositionsSupported
METHOD getDefaultSamplePositions:count:
RETURN void
ARG MTLSamplePosition * _Nonnull positions
ARG NSUInteger count
METHOD newArgumentEncoderWithArguments:
RETURN id<MTLArgumentEncoder> _Nullable
ARG NSArray<MTLArgumentDescriptor *> * _Nonnull arguments
METHOD supportsRasterizationRateMapWithLayerCount:
RETURN BOOL
ARG NSUInteger layerCount
METHOD newRasterizationRateMapWithDescriptor:
RETURN id<MTLRasterizationRateMap> _Nullable
ARG MTLRasterizationRateMapDescriptor * _Nonnull descriptor
METHOD newIndirectCommandBufferWithDescriptor:maxCommandCount:options:
RETURN id<MTLIndirectCommandBuffer> _Nullable
ARG MTLIndirectCommandBufferDescriptor * _Nonnull descriptor
ARG NSUInteger maxCount
ARG MTLResourceOptions options
METHOD newEvent
RETURN id<MTLEvent> _Nullable
METHOD newSharedEvent
RETURN id<MTLSharedEvent> _Nullable
METHOD newSharedEventWithHandle:
RETURN id<MTLSharedEvent> _Nullable
ARG MTLSharedEventHandle * _Nonnull sharedEventHandle
PROPERTY peerGroupID
PROPERTY peerIndex
PROPERTY peerCount
METHOD sparseTileSizeWithTextureType:pixelFormat:sampleCount:
RETURN MTLSize
ARG MTLTextureType textureType
ARG MTLPixelFormat pixelFormat
ARG NSUInteger sampleCount
PROPERTY sparseTileSizeInBytes
METHOD convertSparsePixelRegions:toTileRegions:withTileSize:alignmentMode:numRegions:
RETURN void
ARG const MTLRegion * _Nonnull pixelRegions
ARG MTLRegion * _Nonnull tileRegions
ARG MTLSize tileSize
ARG MTLSparseTextureRegionAlignmentMode mode
ARG NSUInteger numRegions
METHOD convertSparseTileRegions:toPixelRegions:withTileSize:numRegions:
RETURN void
ARG const MTLRegion * _Nonnull tileRegions
ARG MTLRegion * _Nonnull pixelRegions
ARG MTLSize tileSize
ARG NSUInteger numRegions
PROPERTY maxBufferLength
PROPERTY counterSets
METHOD newCounterSampleBufferWithDescriptor:error:
RETURN id<MTLCounterSampleBuffer> _Nullable
ARG MTLCounterSampleBufferDescriptor * _Nonnull descriptor
ARG NSError * _Nullable * _Nullable error
METHOD sampleTimestamps:gpuTimestamp:
RETURN void
ARG MTLTimestamp * _Nonnull cpuTimestamp
ARG MTLTimestamp * _Nonnull gpuTimestamp
METHOD supportsCounterSampling:
RETURN BOOL
ARG MTLCounterSamplingPoint samplingPoint
METHOD supportsVertexAmplificationCount:
RETURN BOOL
ARG NSUInteger count
PROPERTY supportsDynamicLibraries
METHOD newDynamicLibrary:error:
RETURN id<MTLDynamicLibrary> _Nullable
ARG id<MTLLibrary> _Nonnull library
ARG NSError * _Nullable * _Nullable error
METHOD newDynamicLibraryWithURL:error:
RETURN id<MTLDynamicLibrary> _Nullable
ARG NSURL * _Nonnull url
ARG NSError * _Nullable * _Nullable error
METHOD newBinaryArchiveWithDescriptor:error:
RETURN id<MTLBinaryArchive> _Nullable
ARG MTLBinaryArchiveDescriptor * _Nonnull descriptor
ARG NSError * _Nullable * _Nullable error
PROPERTY supportsRaytracing
METHOD accelerationStructureSizesWithDescriptor:
RETURN MTLAccelerationStructureSizes
ARG MTLAccelerationStructureDescriptor * _Nonnull descriptor
METHOD newAccelerationStructureWithSize:
RETURN id<MTLAccelerationStructure> _Nullable
ARG NSUInteger size
METHOD newAccelerationStructureWithDescriptor:
RETURN id<MTLAccelerationStructure> _Nullable
ARG MTLAccelerationStructureDescriptor * _Nonnull descriptor
PROPERTY supportsFunctionPointers
METHOD name
RETURN NSString * _Nonnull
METHOD registryID
RETURN uint64_t
METHOD maxThreadsPerThreadgroup
RETURN MTLSize
METHOD isLowPower
RETURN BOOL
METHOD isHeadless
RETURN BOOL
METHOD isRemovable
RETURN BOOL
METHOD hasUnifiedMemory
RETURN BOOL
METHOD recommendedMaxWorkingSetSize
RETURN uint64_t
METHOD location
RETURN MTLDeviceLocation
METHOD locationNumber
RETURN NSUInteger
METHOD maxTransferRate
RETURN uint64_t
METHOD isDepth24Stencil8PixelFormatSupported
RETURN BOOL
METHOD readWriteTextureSupport
RETURN MTLReadWriteTextureTier
METHOD argumentBuffersSupport
RETURN MTLArgumentBuffersTier
METHOD areRasterOrderGroupsSupported
RETURN BOOL
METHOD supports32BitFloatFiltering
RETURN BOOL
METHOD supports32BitMSAA
RETURN BOOL
METHOD supportsQueryTextureLOD
RETURN BOOL
METHOD supportsBCTextureCompression
RETURN BOOL
METHOD supportsPullModelInterpolation
RETURN BOOL
METHOD areBarycentricCoordsSupported
RETURN BOOL
METHOD supportsShaderBarycentricCoordinates
RETURN BOOL
METHOD currentAllocatedSize
RETURN NSUInteger
METHOD maxThreadgroupMemoryLength
RETURN NSUInteger
METHOD maxArgumentBufferSamplerCount
RETURN NSUInteger
METHOD areProgrammableSamplePositionsSupported
RETURN BOOL
METHOD peerGroupID
RETURN uint64_t
METHOD peerIndex
RETURN uint32_t
METHOD peerCount
RETURN uint32_t
METHOD sparseTileSizeInBytes
RETURN NSUInteger
METHOD maxBufferLength
RETURN NSUInteger
METHOD counterSets
RETURN NSArray<id<MTLCounterSet>> * _Nullable
METHOD supportsDynamicLibraries
RETURN BOOL
METHOD supportsRaytracing
RETURN BOOL
METHOD supportsFunctionPointers
RETURN BOOL
ENUM MTLLoadAction
MTLLoadActionDontCare
MTLLoadActionLoad
MTLLoadActionClear
INTERFACE MTLRenderPassDescriptor
METHOD renderPassDescriptor
RETURN MTLRenderPassDescriptor * _Nonnull
PROPERTY colorAttachments
PROPERTY depthAttachment
PROPERTY stencilAttachment
PROPERTY visibilityResultBuffer
PROPERTY renderTargetArrayLength
PROPERTY imageblockSampleLength
PROPERTY threadgroupMemoryLength
PROPERTY tileWidth
PROPERTY tileHeight
PROPERTY defaultRasterSampleCount
PROPERTY renderTargetWidth
PROPERTY renderTargetHeight
METHOD setSamplePositions:count:
RETURN void
ARG const MTLSamplePosition * _Nullable positions
ARG NSUInteger count
METHOD getSamplePositions:count:
RETURN NSUInteger
ARG MTLSamplePosition * _Nullable positions
ARG NSUInteger count
PROPERTY rasterizationRateMap
PROPERTY sampleBufferAttachments
METHOD colorAttachments
RETURN MTLRenderPassColorAttachmentDescriptorArray * _Nonnull
METHOD depthAttachment
RETURN MTLRenderPassDepthAttachmentDescriptor * _Nonnull
METHOD setDepthAttachment:
RETURN void
ARG MTLRenderPassDepthAttachmentDescriptor * _Nullable depthAttachment
METHOD stencilAttachment
RETURN MTLRenderPassStencilAttachmentDescriptor * _Nonnull
METHOD setStencilAttachment:
RETURN void
ARG MTLRenderPassStencilAttachmentDescriptor * _Nullable stencilAttachment
METHOD visibilityResultBuffer
RETURN id<MTLBuffer> _Nullable
METHOD setVisibilityResultBuffer:
RETURN void
ARG id<MTLBuffer> _Nullable visibilityResultBuffer
METHOD renderTargetArrayLength
RETURN NSUInteger
METHOD setRenderTargetArrayLength:
RETURN void
ARG NSUInteger renderTargetArrayLength
METHOD imageblockSampleLength
RETURN NSUInteger
METHOD setImageblockSampleLength:
RETURN void
ARG NSUInteger imageblockSampleLength
METHOD threadgroupMemoryLength
RETURN NSUInteger
METHOD setThreadgroupMemoryLength:
RETURN void
ARG NSUInteger threadgroupMemoryLength
METHOD tileWidth
RETURN NSUInteger
METHOD setTileWidth:
RETURN void
ARG NSUInteger tileWidth
METHOD tileHeight
RETURN NSUInteger
METHOD setTileHeight:
RETURN void
ARG NSUInteger tileHeight
METHOD defaultRasterSampleCount
RETURN NSUInteger
METHOD setDefaultRasterSampleCount:
RETURN void
ARG NSUInteger defaultRasterSampleCount
METHOD renderTargetWidth
RETURN NSUInteger
METHOD setRenderTargetWidth:
RETURN void
ARG NSUInteger renderTargetWidth
METHOD renderTargetHeight
RETURN NSUInteger
METHOD setRenderTargetHeight:
RETURN void
ARG NSUInteger renderTargetHeight
METHOD rasterizationRateMap
RETURN id<MTLRasterizationRateMap> _Nullable
METHOD setRasterizationRateMap:
RETURN void
ARG id<MTLRasterizationRateMap> _Nullable rasterizationRateMap
METHOD sampleBufferAttachments
RETURN MTLRenderPassSampleBufferAttachmentDescriptorArray * _Nonnull
PROTOCOL MTLCommandBuffer
PROPERTY device
PROPERTY commandQueue
PROPERTY retainedReferences
PROPERTY errorOptions
PROPERTY label
PROPERTY kernelStartTime
PROPERTY kernelEndTime
PROPERTY logs
PROPERTY GPUStartTime
PROPERTY GPUEndTime
METHOD enqueue
RETURN void
METHOD commit
RETURN void
METHOD addScheduledHandler:
RETURN void
ARG MTLCommandBufferHandler _Nonnull block
METHOD presentDrawable:
RETURN void
ARG id<MTLDrawable> _Nonnull drawable
METHOD presentDrawable:atTime:
RETURN void
ARG id<MTLDrawable> _Nonnull drawable
ARG CFTimeInterval presentationTime
METHOD presentDrawable:afterMinimumDuration:
RETURN void
ARG id<MTLDrawable> _Nonnull drawable
ARG CFTimeInterval duration
METHOD waitUntilScheduled
RETURN void
METHOD addCompletedHandler:
RETURN void
ARG MTLCommandBufferHandler _Nonnull block
METHOD waitUntilCompleted
RETURN void
PROPERTY status
PROPERTY error
METHOD blitCommandEncoder
RETURN id<MTLBlitCommandEncoder> _Nullable
METHOD renderCommandEncoderWithDescriptor:
RETURN id<MTLRenderCommandEncoder> _Nullable
ARG MTLRenderPassDescriptor * _Nonnull renderPassDescriptor
METHOD computeCommandEncoderWithDescriptor:
RETURN id<MTLComputeCommandEncoder> _Nullable
ARG MTLComputePassDescriptor * _Nonnull computePassDescriptor
METHOD blitCommandEncoderWithDescriptor:
RETURN id<MTLBlitCommandEncoder> _Nullable
ARG MTLBlitPassDescriptor * _Nonnull blitPassDescriptor
METHOD computeCommandEncoder
RETURN id<MTLComputeCommandEncoder> _Nullable
METHOD computeCommandEncoderWithDispatchType:
RETURN id<MTLComputeCommandEncoder> _Nullable
ARG MTLDispatchType dispatchType
METHOD encodeWaitForEvent:value:
RETURN void
ARG id<MTLEvent> _Nonnull event
ARG uint64_t value
METHOD encodeSignalEvent:value:
RETURN void
ARG id<MTLEvent> _Nonnull event
ARG uint64_t value
METHOD parallelRenderCommandEncoderWithDescriptor:
RETURN id<MTLParallelRenderCommandEncoder> _Nullable
ARG MTLRenderPassDescriptor * _Nonnull renderPassDescriptor
METHOD resourceStateCommandEncoder
RETURN id<MTLResourceStateCommandEncoder> _Nullable
METHOD resourceStateCommandEncoderWithDescriptor:
RETURN id<MTLResourceStateCommandEncoder> _Nullable
ARG MTLResourceStatePassDescriptor * _Nonnull resourceStatePassDescriptor
METHOD accelerationStructureCommandEncoder
RETURN id<MTLAccelerationStructureCommandEncoder> _Nullable
METHOD pushDebugGroup:
RETURN void
ARG NSString * _Nonnull string
METHOD popDebugGroup
RETURN void
METHOD device
RETURN id<MTLDevice> _Nonnull
METHOD commandQueue
RETURN id<MTLCommandQueue> _Nonnull
METHOD retainedReferences
RETURN BOOL
METHOD errorOptions
RETURN MTLCommandBufferErrorOption
METHOD label
RETURN NSString * _Nullable
METHOD setLabel:
RETURN void
ARG NSString * _Nullable label
METHOD kernelStartTime
RETURN CFTimeInterval
METHOD kernelEndTime
RETURN CFTimeInterval
METHOD logs
RETURN id<MTLLogContainer> _Nonnull
METHOD GPUStartTime
RETURN CFTimeInterval
METHOD GPUEndTime
RETURN CFTimeInterval
METHOD status
RETURN MTLCommandBufferStatus
METHOD error
RETURN NSError * _Nullable
PROTOCOL MTLCommandQueue
PROPERTY label
PROPERTY device
METHOD commandBuffer
RETURN id<MTLCommandBuffer> _Nullable
METHOD commandBufferWithDescriptor:
RETURN id<MTLCommandBuffer> _Nullable
ARG MTLCommandBufferDescriptor * _Nonnull descriptor
METHOD commandBufferWithUnretainedReferences
RETURN id<MTLCommandBuffer> _Nullable
METHOD insertDebugCaptureBoundary
RETURN void
METHOD label
RETURN NSString * _Nullable
METHOD setLabel:
RETURN void
ARG NSString * _Nullable label
METHOD device
RETURN id<MTLDevice> _Nonnull
ENUM MTLCompareFunction
MTLCompareFunctionNever
MTLCompareFunctionLess
MTLCompareFunctionEqual
MTLCompareFunctionLessEqual
MTLCompareFunctionGreater
MTLCompareFunctionNotEqual
MTLCompareFunctionGreaterEqual
MTLCompareFunctionAlways
ENUM MTLStencilOperation
MTLStencilOperationKeep
MTLStencilOperationZero
MTLStencilOperationReplace
MTLStencilOperationIncrementClamp
MTLStencilOperationDecrementClamp
MTLStencilOperationInvert
MTLStencilOperationIncrementWrap
MTLStencilOperationDecrementWrap
INTERFACE MTLStencilDescriptor
PROPERTY stencilCompareFunction
PROPERTY stencilFailureOperation
PROPERTY depthFailureOperation
PROPERTY depthStencilPassOperation
PROPERTY readMask
PROPERTY writeMask
METHOD stencilCompareFunction
RETURN MTLCompareFunction
METHOD setStencilCompareFunction:
RETURN void
ARG MTLCompareFunction stencilCompareFunction
METHOD stencilFailureOperation
RETURN MTLStencilOperation
METHOD setStencilFailureOperation:
RETURN void
ARG MTLStencilOperation stencilFailureOperation
METHOD depthFailureOperation
RETURN MTLStencilOperation
METHOD setDepthFailureOperation:
RETURN void
ARG MTLStencilOperation depthFailureOperation
METHOD depthStencilPassOperation
RETURN MTLStencilOperation
METHOD setDepthStencilPassOperation:
RETURN void
ARG MTLStencilOperation depthStencilPassOperation
METHOD readMask
RETURN uint32_t
METHOD setReadMask:
RETURN void
ARG uint32_t readMask
METHOD writeMask
RETURN uint32_t
METHOD setWriteMask:
RETURN void
ARG uint32_t writeMask
INTERFACE MTLDepthStencilDescriptor
PROPERTY depthCompareFunction
PROPERTY depthWriteEnabled
PROPERTY frontFaceStencil
PROPERTY backFaceStencil
PROPERTY label
METHOD depthCompareFunction
RETURN MTLCompareFunction
METHOD setDepthCompareFunction:
RETURN void
ARG MTLCompareFunction depthCompareFunction
METHOD isDepthWriteEnabled
RETURN BOOL
METHOD setDepthWriteEnabled:
RETURN void
ARG BOOL depthWriteEnabled
METHOD frontFaceStencil
RETURN MTLStencilDescriptor * _Nonnull
METHOD setFrontFaceStencil:
RETURN void
ARG MTLStencilDescriptor * _Nullable frontFaceStencil
METHOD backFaceStencil
RETURN MTLStencilDescriptor * _Nonnull
METHOD setBackFaceStencil:
RETURN void
ARG MTLStencilDescriptor * _Nullable backFaceStencil
METHOD label
RETURN NSString * _Nullable
METHOD setLabel:
RETURN void
ARG NSString * _Nullable label
PROTOCOL MTLDepthStencilState
PROPERTY label
PROPERTY device
METHOD label
RETURN NSString * _Nullable
METHOD device
RETURN id<MTLDevice> _Nonnull
PROTOCOL MTLDrawable
METHOD present
RETURN void
METHOD presentAtTime:
RETURN void
ARG CFTimeInterval presentationTime
METHOD presentAfterMinimumDuration:
RETURN void
ARG CFTimeInterval duration
METHOD addPresentedHandler:
RETURN void
ARG MTLDrawablePresentedHandler _Nonnull block
PROPERTY presentedTime
PROPERTY drawableID
METHOD presentedTime
RETURN CFTimeInterval
METHOD drawableID
RETURN NSUInteger
ENUM MTLIndexType
MTLIndexTypeUInt16
MTLIndexTypeUInt32
ENUM MTLPrimitiveType
MTLPrimitiveTypePoint
MTLPrimitiveTypeLine
MTLPrimitiveTypeLineStrip
MTLPrimitiveTypeTriangle
MTLPrimitiveTypeTriangleStrip
ENUM MTLCullMode
MTLCullModeNone
MTLCullModeFront
MTLCullModeBack
ENUM MTLWinding
MTLWindingClockwise
MTLWindingCounterClockwise
PROTOCOL MTLRenderCommandEncoder
METHOD setRenderPipelineState:
RETURN void
ARG id<MTLRenderPipelineState> _Nonnull pipelineState
METHOD setVertexBytes:length:atIndex:
RETURN void
ARG const void * _Nonnull bytes
ARG NSUInteger length
ARG NSUInteger index
METHOD setVertexBuffer:offset:atIndex:
RETURN void
ARG id<MTLBuffer> _Nullable buffer
ARG NSUInteger offset
ARG NSUInteger index
METHOD setVertexBufferOffset:atIndex:
RETURN void
ARG NSUInteger offset
ARG NSUInteger index
METHOD setVertexBuffers:offsets:withRange:
RETURN void
ARG id<MTLBuffer> _Nullable const * _Nonnull buffers
ARG const NSUInteger * _Nonnull offsets
ARG NSRange range
METHOD setVertexTexture:atIndex:
RETURN void
ARG id<MTLTexture> _Nullable texture
ARG NSUInteger index
METHOD setVertexTextures:withRange:
RETURN void
ARG id<MTLTexture> _Nullable const * _Nonnull textures
ARG NSRange range
METHOD setVertexSamplerState:atIndex:
RETURN void
ARG id<MTLSamplerState> _Nullable sampler
ARG NSUInteger index
METHOD setVertexSamplerStates:withRange:
RETURN void
ARG id<MTLSamplerState> _Nullable const * _Nonnull samplers
ARG NSRange range
METHOD setVertexSamplerState:lodMinClamp:lodMaxClamp:atIndex:
RETURN void
ARG id<MTLSamplerState> _Nullable sampler
ARG float lodMinClamp
ARG float lodMaxClamp
ARG NSUInteger index
METHOD setVertexSamplerStates:lodMinClamps:lodMaxClamps:withRange:
RETURN void
ARG id<MTLSamplerState> _Nullable const * _Nonnull samplers
ARG const float * _Nonnull lodMinClamps
ARG const float * _Nonnull lodMaxClamps
ARG NSRange range
METHOD setViewport:
RETURN void
ARG MTLViewport viewport
METHOD setViewports:count:
RETURN void
ARG const MTLViewport * _Nonnull viewports
ARG NSUInteger count
METHOD setFrontFacingWinding:
RETURN void
ARG MTLWinding frontFacingWinding
METHOD setVertexAmplificationCount:viewMappings:
RETURN void
ARG NSUInteger count
ARG const MTLVertexAmplificationViewMapping * _Nullable viewMappings
METHOD setCullMode:
RETURN void
ARG MTLCullMode cullMode
METHOD setDepthClipMode:
RETURN void
ARG MTLDepthClipMode depthClipMode
METHOD setDepthBias:slopeScale:clamp:
RETURN void
ARG float depthBias
ARG float slopeScale
ARG float clamp
METHOD setScissorRect:
RETURN void
ARG MTLScissorRect rect
METHOD setScissorRects:count:
RETURN void
ARG const MTLScissorRect * _Nonnull scissorRects
ARG NSUInteger count
METHOD setTriangleFillMode:
RETURN void
ARG MTLTriangleFillMode fillMode
METHOD setFragmentBytes:length:atIndex:
RETURN void
ARG const void * _Nonnull bytes
ARG NSUInteger length
ARG NSUInteger index
METHOD setFragmentBuffer:offset:atIndex:
RETURN void
ARG id<MTLBuffer> _Nullable buffer
ARG NSUInteger offset
ARG NSUInteger index
METHOD setFragmentBufferOffset:atIndex:
RETURN void
ARG NSUInteger offset
ARG NSUInteger index
METHOD setFragmentBuffers:offsets:withRange:
RETURN void
ARG id<MTLBuffer> _Nullable const * _Nonnull buffers
ARG const NSUInteger * _Nonnull offsets
ARG NSRange range
METHOD setFragmentTexture:atIndex:
RETURN void
ARG id<MTLTexture> _Nullable texture
ARG NSUInteger index
METHOD setFragmentTextures:withRange:
RETURN void
ARG id<MTLTexture> _Nullable const * _Nonnull textures
ARG NSRange range
METHOD setFragmentSamplerState:atIndex:
RETURN void
ARG id<MTLSamplerState> _Nullable sampler
ARG NSUInteger index
METHOD setFragmentSamplerStates:withRange:
RETURN void
ARG id<MTLSamplerState> _Nullable const * _Nonnull samplers
ARG NSRange range
METHOD setFragmentSamplerState:lodMinClamp:lodMaxClamp:atIndex:
RETURN void
ARG id<MTLSamplerState> _Nullable sampler
ARG float lodMinClamp
ARG float lodMaxClamp
ARG NSUInteger index
METHOD setFragmentSamplerStates:lodMinClamps:lodMaxClamps:withRange:
RETURN void
ARG id<MTLSamplerState> _Nullable const * _Nonnull samplers
ARG const float * _Nonnull lodMinClamps
ARG const float * _Nonnull lodMaxClamps
ARG NSRange range
METHOD setBlendColorRed:green:blue:alpha:
RETURN void
ARG float red
ARG float green
ARG float blue
ARG float alpha
METHOD setDepthStencilState:
RETURN void
ARG id<MTLDepthStencilState> _Nullable depthStencilState
METHOD setStencilReferenceValue:
RETURN void
ARG uint32_t referenceValue
METHOD setStencilFrontReferenceValue:backReferenceValue:
RETURN void
ARG uint32_t frontReferenceValue
ARG uint32_t backReferenceValue
METHOD setVisibilityResultMode:offset:
RETURN void
ARG MTLVisibilityResultMode mode
ARG NSUInteger offset
METHOD setColorStoreAction:atIndex:
RETURN void
ARG MTLStoreAction storeAction
ARG NSUInteger colorAttachmentIndex
METHOD setDepthStoreAction:
RETURN void
ARG MTLStoreAction storeAction
METHOD setStencilStoreAction:
RETURN void
ARG MTLStoreAction storeAction
METHOD setColorStoreActionOptions:atIndex:
RETURN void
ARG MTLStoreActionOptions storeActionOptions
ARG NSUInteger colorAttachmentIndex
METHOD setDepthStoreActionOptions:
RETURN void
ARG MTLStoreActionOptions storeActionOptions
METHOD setStencilStoreActionOptions:
RETURN void
ARG MTLStoreActionOptions storeActionOptions
METHOD drawPrimitives:vertexStart:vertexCount:instanceCount:
RETURN void
ARG MTLPrimitiveType primitiveType
ARG NSUInteger vertexStart
ARG NSUInteger vertexCount
ARG NSUInteger instanceCount
METHOD drawPrimitives:vertexStart:vertexCount:
RETURN void
ARG MTLPrimitiveType primitiveType
ARG NSUInteger vertexStart
ARG NSUInteger vertexCount
METHOD drawIndexedPrimitives:indexCount:indexType:indexBuffer:indexBufferOffset:instanceCount:
RETURN void
ARG MTLPrimitiveType primitiveType
ARG NSUInteger indexCount
ARG MTLIndexType indexType
ARG id<MTLBuffer> _Nonnull indexBuffer
ARG NSUInteger indexBufferOffset
ARG NSUInteger instanceCount
METHOD drawIndexedPrimitives:indexCount:indexType:indexBuffer:indexBufferOffset:
RETURN void
ARG MTLPrimitiveType primitiveType
ARG NSUInteger indexCount
ARG MTLIndexType indexType
ARG id<MTLBuffer> _Nonnull indexBuffer
ARG NSUInteger indexBufferOffset
METHOD drawPrimitives:vertexStart:vertexCount:instanceCount:baseInstance:
RETURN void
ARG MTLPrimitiveType primitiveType
ARG NSUInteger vertexStart
ARG NSUInteger vertexCount
ARG NSUInteger instanceCount
ARG NSUInteger baseInstance
METHOD drawIndexedPrimitives:indexCount:indexType:indexBuffer:indexBufferOffset:instanceCount:baseVertex:baseInstance:
RETURN void
ARG MTLPrimitiveType primitiveType
ARG NSUInteger indexCount
ARG MTLIndexType indexType
ARG id<MTLBuffer> _Nonnull indexBuffer
ARG NSUInteger indexBufferOffset
ARG NSUInteger instanceCount
ARG NSInteger baseVertex
ARG NSUInteger baseInstance
METHOD drawPrimitives:indirectBuffer:indirectBufferOffset:
RETURN void
ARG MTLPrimitiveType primitiveType
ARG id<MTLBuffer> _Nonnull indirectBuffer
ARG NSUInteger indirectBufferOffset
METHOD drawIndexedPrimitives:indexType:indexBuffer:indexBufferOffset:indirectBuffer:indirectBufferOffset:
RETURN void
ARG MTLPrimitiveType primitiveType
ARG MTLIndexType indexType
ARG id<MTLBuffer> _Nonnull indexBuffer
ARG NSUInteger indexBufferOffset
ARG id<MTLBuffer> _Nonnull indirectBuffer
ARG NSUInteger indirectBufferOffset
METHOD textureBarrier
RETURN void
METHOD updateFence:afterStages:
RETURN void
ARG id<MTLFence> _Nonnull fence
ARG MTLRenderStages stages
METHOD waitForFence:beforeStages:
RETURN void
ARG id<MTLFence> _Nonnull fence
ARG MTLRenderStages stages
METHOD setTessellationFactorBuffer:offset:instanceStride:
RETURN void
ARG id<MTLBuffer> _Nullable buffer
ARG NSUInteger offset
ARG NSUInteger instanceStride
METHOD setTessellationFactorScale:
RETURN void
ARG float scale
METHOD drawPatches:patchStart:patchCount:patchIndexBuffer:patchIndexBufferOffset:instanceCount:baseInstance:
RETURN void
ARG NSUInteger numberOfPatchControlPoints
ARG NSUInteger patchStart
ARG NSUInteger patchCount
ARG id<MTLBuffer> _Nullable patchIndexBuffer
ARG NSUInteger patchIndexBufferOffset
ARG NSUInteger instanceCount
ARG NSUInteger baseInstance
METHOD drawPatches:patchIndexBuffer:patchIndexBufferOffset:indirectBuffer:indirectBufferOffset:
RETURN void
ARG NSUInteger numberOfPatchControlPoints
ARG id<MTLBuffer> _Nullable patchIndexBuffer
ARG NSUInteger patchIndexBufferOffset
ARG id<MTLBuffer> _Nonnull indirectBuffer
ARG NSUInteger indirectBufferOffset
METHOD drawIndexedPatches:patchStart:patchCount:patchIndexBuffer:patchIndexBufferOffset:controlPointIndexBuffer:controlPointIndexBufferOffset:instanceCount:baseInstance:
RETURN void
ARG NSUInteger numberOfPatchControlPoints
ARG NSUInteger patchStart
ARG NSUInteger patchCount
ARG id<MTLBuffer> _Nullable patchIndexBuffer
ARG NSUInteger patchIndexBufferOffset
ARG id<MTLBuffer> _Nonnull controlPointIndexBuffer
ARG NSUInteger controlPointIndexBufferOffset
ARG NSUInteger instanceCount
ARG NSUInteger baseInstance
METHOD drawIndexedPatches:patchIndexBuffer:patchIndexBufferOffset:controlPointIndexBuffer:controlPointIndexBufferOffset:indirectBuffer:indirectBufferOffset:
RETURN void
ARG NSUInteger numberOfPatchControlPoints
ARG id<MTLBuffer> _Nullable patchIndexBuffer
ARG NSUInteger patchIndexBufferOffset
ARG id<MTLBuffer> _Nonnull controlPointIndexBuffer
ARG NSUInteger controlPointIndexBufferOffset
ARG id<MTLBuffer> _Nonnull indirectBuffer
ARG NSUInteger indirectBufferOffset
PROPERTY tileWidth
PROPERTY tileHeight
METHOD setTileBytes:length:atIndex:
RETURN void
ARG const void * _Nonnull bytes
ARG NSUInteger length
ARG NSUInteger index
METHOD setTileBuffer:offset:atIndex:
RETURN void
ARG id<MTLBuffer> _Nullable buffer
ARG NSUInteger offset
ARG NSUInteger index
METHOD setTileBufferOffset:atIndex:
RETURN void
ARG NSUInteger offset
ARG NSUInteger index
METHOD setTileBuffers:offsets:withRange:
RETURN void
ARG id<MTLBuffer> _Nullable const * _Nonnull buffers
ARG const NSUInteger * _Nonnull offsets
ARG NSRange range
METHOD setTileTexture:atIndex:
RETURN void
ARG id<MTLTexture> _Nullable texture
ARG NSUInteger index
METHOD setTileTextures:withRange:
RETURN void
ARG id<MTLTexture> _Nullable const * _Nonnull textures
ARG NSRange range
METHOD setTileSamplerState:atIndex:
RETURN void
ARG id<MTLSamplerState> _Nullable sampler
ARG NSUInteger index
METHOD setTileSamplerStates:withRange:
RETURN void
ARG id<MTLSamplerState> _Nullable const * _Nonnull samplers
ARG NSRange range
METHOD setTileSamplerState:lodMinClamp:lodMaxClamp:atIndex:
RETURN void
ARG id<MTLSamplerState> _Nullable sampler
ARG float lodMinClamp
ARG float lodMaxClamp
ARG NSUInteger index
METHOD setTileSamplerStates:lodMinClamps:lodMaxClamps:withRange:
RETURN void
ARG id<MTLSamplerState> _Nullable const * _Nonnull samplers
ARG const float * _Nonnull lodMinClamps
ARG const float * _Nonnull lodMaxClamps
ARG NSRange range
METHOD dispatchThreadsPerTile:
RETURN void
ARG MTLSize threadsPerTile
METHOD setThreadgroupMemoryLength:offset:atIndex:
RETURN void
ARG NSUInteger length
ARG NSUInteger offset
ARG NSUInteger index
METHOD useResource:usage:
RETURN void
ARG id<MTLResource> _Nonnull resource
ARG MTLResourceUsage usage
METHOD useResources:count:usage:
RETURN void
ARG id<MTLResource> _Nonnull const * _Nonnull resources
ARG NSUInteger count
ARG MTLResourceUsage usage
METHOD useResource:usage:stages:
RETURN void
ARG id<MTLResource> _Nonnull resource
ARG MTLResourceUsage usage
ARG MTLRenderStages stages
METHOD useResources:count:usage:stages:
RETURN void
ARG id<MTLResource> _Nonnull const * _Nonnull resources
ARG NSUInteger count
ARG MTLResourceUsage usage
ARG MTLRenderStages stages
METHOD useHeap:
RETURN void
ARG id<MTLHeap> _Nonnull heap
METHOD useHeaps:count:
RETURN void
ARG id<MTLHeap> _Nonnull const * _Nonnull heaps
ARG NSUInteger count
METHOD useHeap:stages:
RETURN void
ARG id<MTLHeap> _Nonnull heap
ARG MTLRenderStages stages
METHOD useHeaps:count:stages:
RETURN void
ARG id<MTLHeap> _Nonnull const * _Nonnull heaps
ARG NSUInteger count
ARG MTLRenderStages stages
METHOD executeCommandsInBuffer:withRange:
RETURN void
ARG id<MTLIndirectCommandBuffer> _Nonnull indirectCommandBuffer
ARG NSRange executionRange
METHOD executeCommandsInBuffer:indirectBuffer:indirectBufferOffset:
RETURN void
ARG id<MTLIndirectCommandBuffer> _Nonnull indirectCommandbuffer
ARG id<MTLBuffer> _Nonnull indirectRangeBuffer
ARG NSUInteger indirectBufferOffset
METHOD memoryBarrierWithScope:afterStages:beforeStages:
RETURN void
ARG MTLBarrierScope scope
ARG MTLRenderStages after
ARG MTLRenderStages before
METHOD memoryBarrierWithResources:count:afterStages:beforeStages:
RETURN void
ARG id<MTLResource> _Nonnull const * _Nonnull resources
ARG NSUInteger count
ARG MTLRenderStages after
ARG MTLRenderStages before
METHOD sampleCountersInBuffer:atSampleIndex:withBarrier:
RETURN void
ARG id<MTLCounterSampleBuffer> _Nonnull sampleBuffer
ARG NSUInteger sampleIndex
ARG BOOL barrier
METHOD tileWidth
RETURN NSUInteger
METHOD tileHeight
RETURN NSUInteger
ENUM MTLBlendFactor
MTLBlendFactorZero
MTLBlendFactorOne
MTLBlendFactorSourceColor
MTLBlendFactorOneMinusSourceColor
MTLBlendFactorSourceAlpha
MTLBlendFactorOneMinusSourceAlpha
MTLBlendFactorDestinationColor
MTLBlendFactorOneMinusDestinationColor
MTLBlendFactorDestinationAlpha
MTLBlendFactorOneMinusDestinationAlpha
MTLBlendFactorSourceAlphaSaturated
MTLBlendFactorBlendColor
MTLBlendFactorOneMinusBlendColor
MTLBlendFactorBlendAlpha
MTLBlendFactorOneMinusBlendAlpha
MTLBlendFactorSource1Color
MTLBlendFactorOneMinusSource1Color
MTLBlendFactorSource1Alpha
MTLBlendFactorOneMinusSource1Alpha
ENUM MTLBlendOperation
MTLBlendOperationAdd
MTLBlendOperationSubtract
MTLBlendOperationReverseSubtract
MTLBlendOperationMin
MTLBlendOperationMax
ENUM MTLColorWriteMask
MTLColorWriteMaskNone
MTLColorWriteMaskRed
MTLColorWriteMaskGreen
MTLColorWriteMaskBlue
MTLColorWriteMaskAlpha
MTLColorWriteMaskAll
INTERFACE MTLRenderPipelineDescriptor
PROPERTY label
PROPERTY vertexFunction
PROPERTY fragmentFunction
PROPERTY vertexDescriptor
PROPERTY sampleCount
PROPERTY rasterSampleCount
PROPERTY alphaToCoverageEnabled
PROPERTY alphaToOneEnabled
PROPERTY rasterizationEnabled
PROPERTY maxVertexAmplificationCount
PROPERTY colorAttachments
PROPERTY depthAttachmentPixelFormat
PROPERTY stencilAttachmentPixelFormat
PROPERTY inputPrimitiveTopology
PROPERTY tessellationPartitionMode
PROPERTY maxTessellationFactor
PROPERTY tessellationFactorScaleEnabled
PROPERTY tessellationFactorFormat
PROPERTY tessellationControlPointIndexType
PROPERTY tessellationFactorStepFunction
PROPERTY tessellationOutputWindingOrder
PROPERTY vertexBuffers
PROPERTY fragmentBuffers
PROPERTY supportIndirectCommandBuffers
PROPERTY binaryArchives
METHOD reset
RETURN void
METHOD label
RETURN NSString * _Nullable
METHOD setLabel:
RETURN void
ARG NSString * _Nullable label
METHOD vertexFunction
RETURN id<MTLFunction> _Nullable
METHOD setVertexFunction:
RETURN void
ARG id<MTLFunction> _Nullable vertexFunction
METHOD fragmentFunction
RETURN id<MTLFunction> _Nullable
METHOD setFragmentFunction:
RETURN void
ARG id<MTLFunction> _Nullable fragmentFunction
METHOD vertexDescriptor
RETURN MTLVertexDescriptor * _Nullable
METHOD setVertexDescriptor:
RETURN void
ARG MTLVertexDescriptor * _Nullable vertexDescriptor
METHOD sampleCount
RETURN NSUInteger
METHOD setSampleCount:
RETURN void
ARG NSUInteger sampleCount
METHOD rasterSampleCount
RETURN NSUInteger
METHOD setRasterSampleCount:
RETURN void
ARG NSUInteger rasterSampleCount
METHOD isAlphaToCoverageEnabled
RETURN BOOL
METHOD setAlphaToCoverageEnabled:
RETURN void
ARG BOOL alphaToCoverageEnabled
METHOD isAlphaToOneEnabled
RETURN BOOL
METHOD setAlphaToOneEnabled:
RETURN void
ARG BOOL alphaToOneEnabled
METHOD isRasterizationEnabled
RETURN BOOL
METHOD setRasterizationEnabled:
RETURN void
ARG BOOL rasterizationEnabled
METHOD maxVertexAmplificationCount
RETURN NSUInteger
METHOD setMaxVertexAmplificationCount:
RETURN void
ARG NSUInteger maxVertexAmplificationCount
METHOD colorAttachments
RETURN MTLRenderPipelineColorAttachmentDescriptorArray * _Nonnull
METHOD depthAttachmentPixelFormat
RETURN MTLPixelFormat
METHOD setDepthAttachmentPixelFormat:
RETURN void
ARG MTLPixelFormat depthAttachmentPixelFormat
METHOD stencilAttachmentPixelFormat
RETURN MTLPixelFormat
METHOD setStencilAttachmentPixelFormat:
RETURN void
ARG MTLPixelFormat stencilAttachmentPixelFormat
METHOD inputPrimitiveTopology
RETURN MTLPrimitiveTopologyClass
METHOD setInputPrimitiveTopology:
RETURN void
ARG MTLPrimitiveTopologyClass inputPrimitiveTopology
METHOD tessellationPartitionMode
RETURN MTLTessellationPartitionMode
METHOD setTessellationPartitionMode:
RETURN void
ARG MTLTessellationPartitionMode tessellationPartitionMode
METHOD maxTessellationFactor
RETURN NSUInteger
METHOD setMaxTessellationFactor:
RETURN void
ARG NSUInteger maxTessellationFactor
METHOD isTessellationFactorScaleEnabled
RETURN BOOL
METHOD setTessellationFactorScaleEnabled:
RETURN void
ARG BOOL tessellationFactorScaleEnabled
METHOD tessellationFactorFormat
RETURN MTLTessellationFactorFormat
METHOD setTessellationFactorFormat:
RETURN void
ARG MTLTessellationFactorFormat tessellationFactorFormat
METHOD tessellationControlPointIndexType
RETURN MTLTessellationControlPointIndexType
METHOD setTessellationControlPointIndexType:
RETURN void
ARG MTLTessellationControlPointIndexType tessellationControlPointIndexType
METHOD tessellationFactorStepFunction
RETURN MTLTessellationFactorStepFunction
METHOD setTessellationFactorStepFunction:
RETURN void
ARG MTLTessellationFactorStepFunction tessellationFactorStepFunction
METHOD tessellationOutputWindingOrder
RETURN MTLWinding
METHOD setTessellationOutputWindingOrder:
RETURN void
ARG MTLWinding tessellationOutputWindingOrder
METHOD vertexBuffers
RETURN MTLPipelineBufferDescriptorArray * _Nonnull
METHOD fragmentBuffers
RETURN MTLPipelineBufferDescriptorArray * _Nonnull
METHOD supportIndirectCommandBuffers
RETURN BOOL
METHOD setSupportIndirectCommandBuffers:
RETURN void
ARG BOOL supportIndirectCommandBuffers
METHOD binaryArchives
RETURN NSArray<id<MTLBinaryArchive>> * _Nullable
METHOD setBinaryArchives:
RETURN void
ARG NSArray<id<MTLBinaryArchive>> * _Nullable binaryArchives
PROTOCOL MTLRenderPipelineState
PROPERTY label
PROPERTY device
PROPERTY maxTotalThreadsPerThreadgroup
PROPERTY threadgroupSizeMatchesTileSize
PROPERTY imageblockSampleLength
METHOD imageblockMemoryLengthForDimensions:
RETURN NSUInteger
ARG MTLSize imageblockDimensions
PROPERTY supportIndirectCommandBuffers
METHOD label
RETURN NSString * _Nullable
METHOD device
RETURN id<MTLDevice> _Nonnull
METHOD maxTotalThreadsPerThreadgroup
RETURN NSUInteger
METHOD threadgroupSizeMatchesTileSize
RETURN BOOL
METHOD imageblockSampleLength
RETURN NSUInteger
METHOD supportIndirectCommandBuffers
RETURN BOOL
ENUM MTLVertexFormat
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 MTLVertexStepFunction
MTLVertexStepFunctionConstant
MTLVertexStepFunctionPerVertex
MTLVertexStepFunctionPerInstance
MTLVertexStepFunctionPerPatch
MTLVertexStepFunctionPerPatchControlPoint
INTERFACE MTLVertexDescriptor
METHOD vertexDescriptor
RETURN MTLVertexDescriptor * _Nonnull
PROPERTY layouts
PROPERTY attributes
METHOD reset
RETURN void
METHOD layouts
RETURN MTLVertexBufferLayoutDescriptorArray * _Nonnull
METHOD attributes
RETURN MTLVertexAttributeDescriptorArray * _Nonnull
ENUM MTLSamplerMinMagFilter
MTLSamplerMinMagFilterNearest
MTLSamplerMinMagFilterLinear
ENUM MTLSamplerAddressMode
MTLSamplerAddressModeClampToEdge
MTLSamplerAddressModeMirrorClampToEdge
MTLSamplerAddressModeRepeat
MTLSamplerAddressModeMirrorRepeat
MTLSamplerAddressModeClampToZero
MTLSamplerAddressModeClampToBorderColor
ENUM MTLSamplerBorderColor
MTLSamplerBorderColorTransparentBlack
MTLSamplerBorderColorOpaqueBlack
MTLSamplerBorderColorOpaqueWhite
INTERFACE MTLSamplerDescriptor
PROPERTY minFilter
PROPERTY magFilter
PROPERTY mipFilter
PROPERTY maxAnisotropy
PROPERTY sAddressMode
PROPERTY tAddressMode
PROPERTY rAddressMode
PROPERTY borderColor
PROPERTY normalizedCoordinates
PROPERTY lodMinClamp
PROPERTY lodMaxClamp
PROPERTY lodAverage
PROPERTY compareFunction
PROPERTY supportArgumentBuffers
PROPERTY label
METHOD minFilter
RETURN MTLSamplerMinMagFilter
METHOD setMinFilter:
RETURN void
ARG MTLSamplerMinMagFilter minFilter
METHOD magFilter
RETURN MTLSamplerMinMagFilter
METHOD setMagFilter:
RETURN void
ARG MTLSamplerMinMagFilter magFilter
METHOD mipFilter
RETURN MTLSamplerMipFilter
METHOD setMipFilter:
RETURN void
ARG MTLSamplerMipFilter mipFilter
METHOD maxAnisotropy
RETURN NSUInteger
METHOD setMaxAnisotropy:
RETURN void
ARG NSUInteger maxAnisotropy
METHOD sAddressMode
RETURN MTLSamplerAddressMode
METHOD setSAddressMode:
RETURN void
ARG MTLSamplerAddressMode sAddressMode
METHOD tAddressMode
RETURN MTLSamplerAddressMode
METHOD setTAddressMode:
RETURN void
ARG MTLSamplerAddressMode tAddressMode
METHOD rAddressMode
RETURN MTLSamplerAddressMode
METHOD setRAddressMode:
RETURN void
ARG MTLSamplerAddressMode rAddressMode
METHOD borderColor
RETURN MTLSamplerBorderColor
METHOD setBorderColor:
RETURN void
ARG MTLSamplerBorderColor borderColor
METHOD normalizedCoordinates
RETURN BOOL
METHOD setNormalizedCoordinates:
RETURN void
ARG BOOL normalizedCoordinates
METHOD lodMinClamp
RETURN float
METHOD setLodMinClamp:
RETURN void
ARG float lodMinClamp
METHOD lodMaxClamp
RETURN float
METHOD setLodMaxClamp:
RETURN void
ARG float lodMaxClamp
METHOD lodAverage
RETURN BOOL
METHOD setLodAverage:
RETURN void
ARG BOOL lodAverage
METHOD compareFunction
RETURN MTLCompareFunction
METHOD setCompareFunction:
RETURN void
ARG MTLCompareFunction compareFunction
METHOD supportArgumentBuffers
RETURN BOOL
METHOD setSupportArgumentBuffers:
RETURN void
ARG BOOL supportArgumentBuffers
METHOD label
RETURN NSString * _Nullable
METHOD setLabel:
RETURN void
ARG NSString * _Nullable label
PROTOCOL MTLSamplerState
PROPERTY label
PROPERTY device
METHOD label
RETURN NSString * _Nullable
METHOD device
RETURN id<MTLDevice> _Nonnull
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment