metal.metal

Undocumented in source.

Public Imports

objc.runtime
public import objc.runtime;
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.

Members

Aliases

CGFloat
alias CGFloat = float

The basic type for all floating-point values.

CGFloat
alias CGFloat = double
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLCoordinate2D
alias MTLCoordinate2D = MTLSamplePosition
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLDrawablePresentedHandler
alias MTLDrawablePresentedHandler = void function(MTLDrawable)

A block of code invoked after a drawable is presented.

Classes

CALayer
class CALayer
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
CAMetalLayer
class CAMetalLayer
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLDepthStencilDescriptor
class MTLDepthStencilDescriptor

An object that configures new MTLDepthStencilState objects.

MTLFunction
class MTLFunction
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLIOCommandQueueDescriptor
class MTLIOCommandQueueDescriptor
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLRenderPassAttachmentDescriptor
class MTLRenderPassAttachmentDescriptor

A render target that serves as the output destination for pixels generated by a render pass.

MTLRenderPassColorAttachmentDescriptor
class MTLRenderPassColorAttachmentDescriptor
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLRenderPassColorAttachmentDescriptorArray
class MTLRenderPassColorAttachmentDescriptorArray
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLRenderPassDepthAttachmentDescriptor
class MTLRenderPassDepthAttachmentDescriptor

A depth render target that serves as the output destination for depth pixels generated by a render pass.

MTLRenderPassDescriptor
class MTLRenderPassDescriptor

A group of render targets that hold the results of a render pass.

MTLRenderPassSampleBufferAttachmentDescriptor
class MTLRenderPassSampleBufferAttachmentDescriptor

A description of where to store GPU counter information at the start and end of a render pass.

MTLRenderPassSampleBufferAttachmentDescriptorArray
class MTLRenderPassSampleBufferAttachmentDescriptorArray
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLRenderPassStencilAttachmentDescriptor
class MTLRenderPassStencilAttachmentDescriptor

A stencil render target that serves as the output destination for stencil pixels generated by a render pass.

MTLRenderPipelineColorAttachmentDescriptor
class MTLRenderPipelineColorAttachmentDescriptor
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLRenderPipelineColorAttachmentDescriptorArray
class MTLRenderPipelineColorAttachmentDescriptorArray
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLRenderPipelineDescriptor
class MTLRenderPipelineDescriptor
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.

Enums

MTLArgumentBuffersTier
enum MTLArgumentBuffersTier

The values that determine the limits and capabilities of argument buffers.

MTLBlendFactor
enum MTLBlendFactor
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLBlendOperation
enum MTLBlendOperation
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLCPUCacheMode
enum MTLCPUCacheMode
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLColorWriteMask
enum MTLColorWriteMask
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLCullMode
enum MTLCullMode
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLGPUFamily
enum MTLGPUFamily
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLHazardTrackingMode
enum MTLHazardTrackingMode
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLIndexType
enum MTLIndexType
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLLoadAction
enum MTLLoadAction

Types of actions performed for an attachment at the start of a rendering pass.

MTLMultisampleDepthResolveFilter
enum MTLMultisampleDepthResolveFilter
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLMultisampleStencilResolveFilter
enum MTLMultisampleStencilResolveFilter
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLPrimitiveType
enum MTLPrimitiveType
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLRenderStages
enum MTLRenderStages

The render stages at which a synchronization command is triggered.

MTLResourceOptions
enum MTLResourceOptions

Optional arguments used to set the behavior of a resource.

MTLStorageMode
enum MTLStorageMode
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLStoreAction
enum MTLStoreAction

Types of actions performed for an attachment at the end of a rendering pass.

MTLStoreActionOptions
enum MTLStoreActionOptions

Options that modify a store action.

MTLTriangleFillMode
enum MTLTriangleFillMode
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLWinding
enum MTLWinding
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.

Functions

CGSizeMake
CGSize CGSizeMake(float width, float height)

Returns a size with the specified dimension values.

MTLClearColorMake
MTLClearColor MTLClearColorMake(double red, double green, double blue, double alpha)
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLCoordinate2DMake
MTLCoordinate2D MTLCoordinate2DMake(float x, float y)
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLCreateSystemDefaultDevice
MTLCommandBuffer MTLCreateSystemDefaultDevice()
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLOriginMake
MTLOrigin MTLOriginMake(NSUInteger x, NSUInteger y, NSUInteger z)

Returns a new origin with the specified coordinates.

MTLSamplePositionMake
MTLSamplePosition MTLSamplePositionMake(float x, float y)
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLSizeMake
MTLSize MTLSizeMake(NSUInteger width, NSUInteger height, NSUInteger depth)
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.

Interfaces

CAMetalDrawable
interface CAMetalDrawable

A Metal drawable associated with a Core Animation layer.

MTLBuffer
interface MTLBuffer
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLCommandEncoder
interface MTLCommandEncoder

An encoder that writes GPU commands into a command buffer.

MTLCommandQueue
interface MTLCommandQueue

An instance you use to create, submit, and schedule command buffers to a specific GPU device to run the commands within those buffers.

MTLCounterSampleBuffer
interface MTLCounterSampleBuffer
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLDepthStencilState
interface MTLDepthStencilState

A depth and stencil state object that specifies the depth and stencil configuration and operations used in a render pass.

MTLDevice
interface MTLDevice

The main Metal interface to a GPU that apps use to draw graphics and run computations in parallel.

MTLDrawable
interface MTLDrawable

A displayable resource that can be rendered or written to.

MTLEvent
interface MTLEvent

An object you use to synchronize access to Metal resources.

MTLFence
interface MTLFence

An object that can capture, track, and manage resource dependencies across command encoders.

MTLIOCommandQueue
interface MTLIOCommandQueue
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLRasterizationRateMap
interface MTLRasterizationRateMap
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLRenderPipelineState
interface MTLRenderPipelineState
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLResource
interface MTLResource

An allocation of memory that is accessible to a GPU.

Structs

CGPoint
struct CGPoint

A structure that contains a point in a two-dimensional coordinate system.

CGRect
struct CGRect

A structure that contains the location and dimensions of a rectangle.

CGSize
struct CGSize

A structure that contains width and height values.

MTLClearColor
struct MTLClearColor
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLOrigin
struct MTLOrigin

The coordinates for the front upper-left corner of a region.

MTLRegion
struct MTLRegion
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLSamplePosition
struct MTLSamplePosition
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLSize
struct MTLSize
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLSizeAndAlign
struct MTLSizeAndAlign
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLViewport
struct MTLViewport
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.

Variables

MTLResourceCPUCacheModeMask
NSUInteger MTLResourceCPUCacheModeMask;
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLResourceCPUCacheModeShift
NSUInteger MTLResourceCPUCacheModeShift;
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLResourceHazardTrackingModeMask
NSUInteger MTLResourceHazardTrackingModeMask;
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLResourceHazardTrackingModeShift
NSUInteger MTLResourceHazardTrackingModeShift;
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLResourceStorageModeMask
NSUInteger MTLResourceStorageModeMask;
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.
MTLResourceStorageModeShift
NSUInteger MTLResourceStorageModeShift;
Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.

Meta