☰
Index
Modules:
metal4
,
metal4/codes
,
metal4/constants
,
metal4/context
,
metal4/extras
,
metal4/foundations
,
metal4/functions
,
metal4/protocols
,
metal4/runtime
,
metal4/types
.
API symbols
`=copy`:
context: proc `=copy`(dest: var MetalContext; source: MetalContext)
addSublayer:
extras: proc addSublayer(self: CALayer; x: CALayer)
alphaBlendOperation:
protocols: proc alphaBlendOperation(self: MTLRenderPipelineColorAttachmentDescriptor): MTLBlendOperation
attributes:
protocols: proc attributes(self: MTLVertexDescriptor): MTLVertexAttributeDescriptorArray
blitCommandEncoder:
protocols: proc blitCommandEncoder(self: MTLCommandBuffer): MTLBlitCommandEncoder
bufferIndex:
protocols: proc bufferIndex(self: MTLVertexAttributeDescriptor): uint
CALayer:
runtime: type CALayer
CAMetalDrawable:
types: type CAMetalDrawable
CAMetalLayer:
types: type CAMetalLayer
checkNil:
codes: proc checkNil[T](value: T; msg: string)
checkNSError:
codes: proc checkNSError(error: NSError; msg: string)
clearColor:
protocols: proc clearColor(self: MTLRenderPassColorAttachmentDescriptor): MTLClearColor
clearDepth:
protocols: proc clearDepth(self: MTLRenderPassDepthAttachmentDescriptor): float64
clearPass:
context: proc clearPass(ctx: var MetalContext; drawable: CAMetalDrawable; clear: MTLClearColor): MTLRenderPassDescriptor
colorAttachments:
protocols: proc colorAttachments(self: MTLRenderPassDescriptor): MTLRenderPassColorAttachmentDescriptorArray
protocols: proc colorAttachments(self: MTLRenderPipelineDescriptor): MTLRenderPipelineColorAttachmentDescriptorArray
commandBuffer:
protocols: proc commandBuffer(self: MTLCommandQueue): MTLCommandBuffer
commit:
protocols: proc commit(self: MTLCommandBuffer)
contents:
protocols: proc contents(self: MTLBuffer): pointer
currentDrawable:
context: proc currentDrawable(ctx: var MetalContext): CAMetalDrawable
depthAttachment:
protocols: proc depthAttachment(self: MTLRenderPassDescriptor): MTLRenderPassDepthAttachmentDescriptor
depthAttachmentPixelFormat:
protocols: proc depthAttachmentPixelFormat(self: MTLRenderPipelineDescriptor): MTLPixelFormat
depthCompareFunction:
protocols: proc depthCompareFunction(self: MTLDepthStencilDescriptor): MTLCompareFunction
depthWriteEnabled:
protocols: proc depthWriteEnabled(self: MTLDepthStencilDescriptor): bool
destinationAlphaBlendFactor:
protocols: proc destinationAlphaBlendFactor(self: MTLRenderPipelineColorAttachmentDescriptor): MTLBlendFactor
destinationRGBBlendFactor:
protocols: proc destinationRGBBlendFactor(self: MTLRenderPipelineColorAttachmentDescriptor): MTLBlendFactor
destroy:
context: proc destroy(ctx: var MetalContext)
device:
protocols: proc device(self: CAMetalLayer): MTLDevice
drawableSize:
protocols: proc drawableSize(self: CAMetalLayer): NSSize
drawPrimitives:
protocols: proc drawPrimitives(self: MTLRenderCommandEncoder; x: MTLPrimitiveType; vertexStart: uint; vertexCount: uint)
endEncoding:
protocols: proc endEncoding(self: MTLCommandEncoder)
error:
protocols: proc error(self: MTLCommandBuffer): NSError
format:
protocols: proc format(self: MTLVertexAttributeDescriptor): MTLVertexFormat
fragmentFunction:
protocols: proc fragmentFunction(self: MTLRenderPipelineDescriptor): MTLFunction
framebufferOnly:
protocols: proc framebufferOnly(self: CAMetalLayer): bool
generateMipmapsForTexture:
protocols: proc generateMipmapsForTexture(self: MTLBlitCommandEncoder; x: MTLTexture)
getBytes:
protocols: proc getBytes(self: MTLTexture; x: pointer; bytesPerRow: uint; fromRegion: MTLRegion; mipmapLevel: uint)
height:
protocols: proc height(self: MTLTexture): uint
init:
context: proc init(ctx: var MetalContext; window: Window; device = 0.MTLDevice; pixelFormat: MTLPixelFormat = 80'u)
protocols: proc init(self: CAMetalLayer): CAMetalLayer
protocols: proc init(self: MTLDepthStencilDescriptor): MTLDepthStencilDescriptor
protocols: proc init(self: MTLRenderPipelineDescriptor): MTLRenderPipelineDescriptor
protocols: proc init(self: MTLSamplerDescriptor): MTLSamplerDescriptor
protocols: proc init(self: MTLVertexAttributeDescriptor): MTLVertexAttributeDescriptor
protocols: proc init(self: MTLVertexBufferLayoutDescriptor): MTLVertexBufferLayoutDescriptor
protocols: proc init(self: MTLVertexDescriptor): MTLVertexDescriptor
isBlendingEnabled:
protocols: proc isBlendingEnabled(self: MTLRenderPipelineColorAttachmentDescriptor): bool
isNil:
codes: proc isNil[T](value: T): bool
layer:
extras: proc layer(self: NSView): CALayer
protocols: proc layer(self: CAMetalDrawable): CAMetalLayer
layouts:
protocols: proc layouts(self: MTLVertexDescriptor): MTLVertexBufferLayoutDescriptorArray
loadAction:
protocols: proc loadAction(self: MTLRenderPassAttachmentDescriptor): MTLLoadAction
magFilter:
protocols: proc magFilter(self: MTLSamplerDescriptor): MTLSamplerMinMagFilter
messageNSError:
codes: proc messageNSError(error: NSError; msg: string): string
Metal4Error:
codes: object Metal4Error
MetalContext:
context: object MetalContext
minFilter:
protocols: proc minFilter(self: MTLSamplerDescriptor): MTLSamplerMinMagFilter
mipFilter:
protocols: proc mipFilter(self: MTLSamplerDescriptor): MTLSamplerMipFilter
mipmapLevelCount:
protocols: proc mipmapLevelCount(self: MTLTexture): uint
protocols: proc mipmapLevelCount(self: MTLTextureDescriptor): uint
MTLBlendFactor:
constants: type MTLBlendFactor
MTLBlendFactorBlendAlpha:
constants: const MTLBlendFactorBlendAlpha
MTLBlendFactorBlendColor:
constants: const MTLBlendFactorBlendColor
MTLBlendFactorDestinationAlpha:
constants: const MTLBlendFactorDestinationAlpha
MTLBlendFactorDestinationColor:
constants: const MTLBlendFactorDestinationColor
MTLBlendFactorOne:
constants: const MTLBlendFactorOne
MTLBlendFactorOneMinusBlendAlpha:
constants: const MTLBlendFactorOneMinusBlendAlpha
MTLBlendFactorOneMinusBlendColor:
constants: const MTLBlendFactorOneMinusBlendColor
MTLBlendFactorOneMinusDestinationAlpha:
constants: const MTLBlendFactorOneMinusDestinationAlpha
MTLBlendFactorOneMinusDestinationColor:
constants: const MTLBlendFactorOneMinusDestinationColor
MTLBlendFactorOneMinusSource1Alpha:
constants: const MTLBlendFactorOneMinusSource1Alpha
MTLBlendFactorOneMinusSource1Color:
constants: const MTLBlendFactorOneMinusSource1Color
MTLBlendFactorOneMinusSourceAlpha:
constants: const MTLBlendFactorOneMinusSourceAlpha
MTLBlendFactorOneMinusSourceColor:
constants: const MTLBlendFactorOneMinusSourceColor
MTLBlendFactorSource1Alpha:
constants: const MTLBlendFactorSource1Alpha
MTLBlendFactorSource1Color:
constants: const MTLBlendFactorSource1Color
MTLBlendFactorSourceAlpha:
constants: const MTLBlendFactorSourceAlpha
MTLBlendFactorSourceAlphaSaturated:
constants: const MTLBlendFactorSourceAlphaSaturated
MTLBlendFactorSourceColor:
constants: const MTLBlendFactorSourceColor
MTLBlendFactorZero:
constants: const MTLBlendFactorZero
MTLBlendOperation:
constants: type MTLBlendOperation
MTLBlendOperationAdd:
constants: const MTLBlendOperationAdd
MTLBlendOperationMax:
constants: const MTLBlendOperationMax
MTLBlendOperationMin:
constants: const MTLBlendOperationMin
MTLBlendOperationReverseSubtract:
constants: const MTLBlendOperationReverseSubtract
MTLBlendOperationSubtract:
constants: const MTLBlendOperationSubtract
MTLBlitCommandEncoder:
types: type MTLBlitCommandEncoder
MTLBuffer:
types: type MTLBuffer
MTLClearColor:
types: object MTLClearColor
MTLCommandBuffer:
types: type MTLCommandBuffer
MTLCommandBufferStatus:
constants: type MTLCommandBufferStatus
MTLCommandBufferStatusCommitted:
constants: const MTLCommandBufferStatusCommitted
MTLCommandBufferStatusCompleted:
constants: const MTLCommandBufferStatusCompleted
MTLCommandBufferStatusEnqueued:
constants: const MTLCommandBufferStatusEnqueued
MTLCommandBufferStatusError:
constants: const MTLCommandBufferStatusError
MTLCommandBufferStatusNotEnqueued:
constants: const MTLCommandBufferStatusNotEnqueued
MTLCommandBufferStatusScheduled:
constants: const MTLCommandBufferStatusScheduled
MTLCommandEncoder:
types: type MTLCommandEncoder
MTLCommandQueue:
types: type MTLCommandQueue
MTLCompareFunction:
constants: type MTLCompareFunction
MTLCompareFunctionAlways:
constants: const MTLCompareFunctionAlways
MTLCompareFunctionEqual:
constants: const MTLCompareFunctionEqual
MTLCompareFunctionGreater:
constants: const MTLCompareFunctionGreater
MTLCompareFunctionGreaterEqual:
constants: const MTLCompareFunctionGreaterEqual
MTLCompareFunctionLess:
constants: const MTLCompareFunctionLess
MTLCompareFunctionLessEqual:
constants: const MTLCompareFunctionLessEqual
MTLCompareFunctionNever:
constants: const MTLCompareFunctionNever
MTLCompareFunctionNotEqual:
constants: const MTLCompareFunctionNotEqual
MTLCreateSystemDefaultDevice:
functions: proc MTLCreateSystemDefaultDevice(): MTLDevice
MTLCullMode:
constants: type MTLCullMode
MTLCullModeBack:
constants: const MTLCullModeBack
MTLCullModeFront:
constants: const MTLCullModeFront
MTLCullModeNone:
constants: const MTLCullModeNone
MTLDepthStencilDescriptor:
types: type MTLDepthStencilDescriptor
MTLDepthStencilState:
types: type MTLDepthStencilState
MTLDevice:
types: type MTLDevice
MTLFunction:
types: type MTLFunction
MTLLibrary:
types: type MTLLibrary
MTLLoadAction:
constants: type MTLLoadAction
MTLLoadActionClear:
constants: const MTLLoadActionClear
MTLLoadActionDontCare:
constants: const MTLLoadActionDontCare
MTLLoadActionLoad:
constants: const MTLLoadActionLoad
MTLOrigin:
types: object MTLOrigin
MTLPixelFormat:
constants: type MTLPixelFormat
MTLPixelFormatA1BGR5Unorm:
constants: const MTLPixelFormatA1BGR5Unorm
MTLPixelFormatA8Unorm:
constants: const MTLPixelFormatA8Unorm
MTLPixelFormatABGR4Unorm:
constants: const MTLPixelFormatABGR4Unorm
MTLPixelFormatASTC_10x10_HDR:
constants: const MTLPixelFormatASTC_10x10_HDR
MTLPixelFormatASTC_10x10_LDR:
constants: const MTLPixelFormatASTC_10x10_LDR
MTLPixelFormatASTC_10x10_sRGB:
constants: const MTLPixelFormatASTC_10x10_sRGB
MTLPixelFormatASTC_10x5_HDR:
constants: const MTLPixelFormatASTC_10x5_HDR
MTLPixelFormatASTC_10x5_LDR:
constants: const MTLPixelFormatASTC_10x5_LDR
MTLPixelFormatASTC_10x5_sRGB:
constants: const MTLPixelFormatASTC_10x5_sRGB
MTLPixelFormatASTC_10x6_HDR:
constants: const MTLPixelFormatASTC_10x6_HDR
MTLPixelFormatASTC_10x6_LDR:
constants: const MTLPixelFormatASTC_10x6_LDR
MTLPixelFormatASTC_10x6_sRGB:
constants: const MTLPixelFormatASTC_10x6_sRGB
MTLPixelFormatASTC_10x8_HDR:
constants: const MTLPixelFormatASTC_10x8_HDR
MTLPixelFormatASTC_10x8_LDR:
constants: const MTLPixelFormatASTC_10x8_LDR
MTLPixelFormatASTC_10x8_sRGB:
constants: const MTLPixelFormatASTC_10x8_sRGB
MTLPixelFormatASTC_12x10_HDR:
constants: const MTLPixelFormatASTC_12x10_HDR
MTLPixelFormatASTC_12x10_LDR:
constants: const MTLPixelFormatASTC_12x10_LDR
MTLPixelFormatASTC_12x10_sRGB:
constants: const MTLPixelFormatASTC_12x10_sRGB
MTLPixelFormatASTC_12x12_HDR:
constants: const MTLPixelFormatASTC_12x12_HDR
MTLPixelFormatASTC_12x12_LDR:
constants: const MTLPixelFormatASTC_12x12_LDR
MTLPixelFormatASTC_12x12_sRGB:
constants: const MTLPixelFormatASTC_12x12_sRGB
MTLPixelFormatASTC_4x4_HDR:
constants: const MTLPixelFormatASTC_4x4_HDR
MTLPixelFormatASTC_4x4_LDR:
constants: const MTLPixelFormatASTC_4x4_LDR
MTLPixelFormatASTC_4x4_sRGB:
constants: const MTLPixelFormatASTC_4x4_sRGB
MTLPixelFormatASTC_5x4_HDR:
constants: const MTLPixelFormatASTC_5x4_HDR
MTLPixelFormatASTC_5x4_LDR:
constants: const MTLPixelFormatASTC_5x4_LDR
MTLPixelFormatASTC_5x4_sRGB:
constants: const MTLPixelFormatASTC_5x4_sRGB
MTLPixelFormatASTC_5x5_HDR:
constants: const MTLPixelFormatASTC_5x5_HDR
MTLPixelFormatASTC_5x5_LDR:
constants: const MTLPixelFormatASTC_5x5_LDR
MTLPixelFormatASTC_5x5_sRGB:
constants: const MTLPixelFormatASTC_5x5_sRGB
MTLPixelFormatASTC_6x5_HDR:
constants: const MTLPixelFormatASTC_6x5_HDR
MTLPixelFormatASTC_6x5_LDR:
constants: const MTLPixelFormatASTC_6x5_LDR
MTLPixelFormatASTC_6x5_sRGB:
constants: const MTLPixelFormatASTC_6x5_sRGB
MTLPixelFormatASTC_6x6_HDR:
constants: const MTLPixelFormatASTC_6x6_HDR
MTLPixelFormatASTC_6x6_LDR:
constants: const MTLPixelFormatASTC_6x6_LDR
MTLPixelFormatASTC_6x6_sRGB:
constants: const MTLPixelFormatASTC_6x6_sRGB
MTLPixelFormatASTC_8x5_HDR:
constants: const MTLPixelFormatASTC_8x5_HDR
MTLPixelFormatASTC_8x5_LDR:
constants: const MTLPixelFormatASTC_8x5_LDR
MTLPixelFormatASTC_8x5_sRGB:
constants: const MTLPixelFormatASTC_8x5_sRGB
MTLPixelFormatASTC_8x6_HDR:
constants: const MTLPixelFormatASTC_8x6_HDR
MTLPixelFormatASTC_8x6_LDR:
constants: const MTLPixelFormatASTC_8x6_LDR
MTLPixelFormatASTC_8x6_sRGB:
constants: const MTLPixelFormatASTC_8x6_sRGB
MTLPixelFormatASTC_8x8_HDR:
constants: const MTLPixelFormatASTC_8x8_HDR
MTLPixelFormatASTC_8x8_LDR:
constants: const MTLPixelFormatASTC_8x8_LDR
MTLPixelFormatASTC_8x8_sRGB:
constants: const MTLPixelFormatASTC_8x8_sRGB
MTLPixelFormatB5G6R5Unorm:
constants: const MTLPixelFormatB5G6R5Unorm
MTLPixelFormatBC1_RGBA:
constants: const MTLPixelFormatBC1_RGBA
MTLPixelFormatBC1_RGBA_sRGB:
constants: const MTLPixelFormatBC1_RGBA_sRGB
MTLPixelFormatBC2_RGBA:
constants: const MTLPixelFormatBC2_RGBA
MTLPixelFormatBC2_RGBA_sRGB:
constants: const MTLPixelFormatBC2_RGBA_sRGB
MTLPixelFormatBC3_RGBA:
constants: const MTLPixelFormatBC3_RGBA
MTLPixelFormatBC3_RGBA_sRGB:
constants: const MTLPixelFormatBC3_RGBA_sRGB
MTLPixelFormatBC4_RSnorm:
constants: const MTLPixelFormatBC4_RSnorm
MTLPixelFormatBC4_RUnorm:
constants: const MTLPixelFormatBC4_RUnorm
MTLPixelFormatBC5_RGSnorm:
constants: const MTLPixelFormatBC5_RGSnorm
MTLPixelFormatBC5_RGUnorm:
constants: const MTLPixelFormatBC5_RGUnorm
MTLPixelFormatBC6H_RGBFloat:
constants: const MTLPixelFormatBC6H_RGBFloat
MTLPixelFormatBC6H_RGBUfloat:
constants: const MTLPixelFormatBC6H_RGBUfloat
MTLPixelFormatBC7_RGBAUnorm:
constants: const MTLPixelFormatBC7_RGBAUnorm
MTLPixelFormatBC7_RGBAUnorm_sRGB:
constants: const MTLPixelFormatBC7_RGBAUnorm_sRGB
MTLPixelFormatBGR10A2Unorm:
constants: const MTLPixelFormatBGR10A2Unorm
MTLPixelFormatBGR10_XR:
constants: const MTLPixelFormatBGR10_XR
MTLPixelFormatBGR10_XR_sRGB:
constants: const MTLPixelFormatBGR10_XR_sRGB
MTLPixelFormatBGR5A1Unorm:
constants: const MTLPixelFormatBGR5A1Unorm
MTLPixelFormatBGRA10_XR:
constants: const MTLPixelFormatBGRA10_XR
MTLPixelFormatBGRA10_XR_sRGB:
constants: const MTLPixelFormatBGRA10_XR_sRGB
MTLPixelFormatBGRA8Unorm:
constants: const MTLPixelFormatBGRA8Unorm
MTLPixelFormatBGRA8Unorm_sRGB:
constants: const MTLPixelFormatBGRA8Unorm_sRGB
MTLPixelFormatBGRG422:
constants: const MTLPixelFormatBGRG422
MTLPixelFormatDepth16Unorm:
constants: const MTLPixelFormatDepth16Unorm
MTLPixelFormatDepth24Unorm_Stencil8:
constants: const MTLPixelFormatDepth24Unorm_Stencil8
MTLPixelFormatDepth32Float:
constants: const MTLPixelFormatDepth32Float
MTLPixelFormatDepth32Float_Stencil8:
constants: const MTLPixelFormatDepth32Float_Stencil8
MTLPixelFormatEAC_R11Snorm:
constants: const MTLPixelFormatEAC_R11Snorm
MTLPixelFormatEAC_R11Unorm:
constants: const MTLPixelFormatEAC_R11Unorm
MTLPixelFormatEAC_RG11Snorm:
constants: const MTLPixelFormatEAC_RG11Snorm
MTLPixelFormatEAC_RG11Unorm:
constants: const MTLPixelFormatEAC_RG11Unorm
MTLPixelFormatEAC_RGBA8:
constants: const MTLPixelFormatEAC_RGBA8
MTLPixelFormatEAC_RGBA8_sRGB:
constants: const MTLPixelFormatEAC_RGBA8_sRGB
MTLPixelFormatETC2_RGB8:
constants: const MTLPixelFormatETC2_RGB8
MTLPixelFormatETC2_RGB8A1:
constants: const MTLPixelFormatETC2_RGB8A1
MTLPixelFormatETC2_RGB8A1_sRGB:
constants: const MTLPixelFormatETC2_RGB8A1_sRGB
MTLPixelFormatETC2_RGB8_sRGB:
constants: const MTLPixelFormatETC2_RGB8_sRGB
MTLPixelFormatGBGR422:
constants: const MTLPixelFormatGBGR422
MTLPixelFormatInvalid:
constants: const MTLPixelFormatInvalid
MTLPixelFormatPVRTC_RGB_2BPP:
constants: const MTLPixelFormatPVRTC_RGB_2BPP
MTLPixelFormatPVRTC_RGB_2BPP_sRGB:
constants: const MTLPixelFormatPVRTC_RGB_2BPP_sRGB
MTLPixelFormatPVRTC_RGB_4BPP:
constants: const MTLPixelFormatPVRTC_RGB_4BPP
MTLPixelFormatPVRTC_RGB_4BPP_sRGB:
constants: const MTLPixelFormatPVRTC_RGB_4BPP_sRGB
MTLPixelFormatPVRTC_RGBA_2BPP:
constants: const MTLPixelFormatPVRTC_RGBA_2BPP
MTLPixelFormatPVRTC_RGBA_2BPP_sRGB:
constants: const MTLPixelFormatPVRTC_RGBA_2BPP_sRGB
MTLPixelFormatPVRTC_RGBA_4BPP:
constants: const MTLPixelFormatPVRTC_RGBA_4BPP
MTLPixelFormatPVRTC_RGBA_4BPP_sRGB:
constants: const MTLPixelFormatPVRTC_RGBA_4BPP_sRGB
MTLPixelFormatR16Float:
constants: const MTLPixelFormatR16Float
MTLPixelFormatR16Sint:
constants: const MTLPixelFormatR16Sint
MTLPixelFormatR16Snorm:
constants: const MTLPixelFormatR16Snorm
MTLPixelFormatR16Uint:
constants: const MTLPixelFormatR16Uint
MTLPixelFormatR16Unorm:
constants: const MTLPixelFormatR16Unorm
MTLPixelFormatR32Float:
constants: const MTLPixelFormatR32Float
MTLPixelFormatR32Sint:
constants: const MTLPixelFormatR32Sint
MTLPixelFormatR32Uint:
constants: const MTLPixelFormatR32Uint
MTLPixelFormatR8Sint:
constants: const MTLPixelFormatR8Sint
MTLPixelFormatR8Snorm:
constants: const MTLPixelFormatR8Snorm
MTLPixelFormatR8Uint:
constants: const MTLPixelFormatR8Uint
MTLPixelFormatR8Unorm:
constants: const MTLPixelFormatR8Unorm
MTLPixelFormatR8Unorm_sRGB:
constants: const MTLPixelFormatR8Unorm_sRGB
MTLPixelFormatRG11B10Float:
constants: const MTLPixelFormatRG11B10Float
MTLPixelFormatRG16Float:
constants: const MTLPixelFormatRG16Float
MTLPixelFormatRG16Sint:
constants: const MTLPixelFormatRG16Sint
MTLPixelFormatRG16Snorm:
constants: const MTLPixelFormatRG16Snorm
MTLPixelFormatRG16Uint:
constants: const MTLPixelFormatRG16Uint
MTLPixelFormatRG16Unorm:
constants: const MTLPixelFormatRG16Unorm
MTLPixelFormatRG32Float:
constants: const MTLPixelFormatRG32Float
MTLPixelFormatRG32Sint:
constants: const MTLPixelFormatRG32Sint
MTLPixelFormatRG32Uint:
constants: const MTLPixelFormatRG32Uint
MTLPixelFormatRG8Sint:
constants: const MTLPixelFormatRG8Sint
MTLPixelFormatRG8Snorm:
constants: const MTLPixelFormatRG8Snorm
MTLPixelFormatRG8Uint:
constants: const MTLPixelFormatRG8Uint
MTLPixelFormatRG8Unorm:
constants: const MTLPixelFormatRG8Unorm
MTLPixelFormatRG8Unorm_sRGB:
constants: const MTLPixelFormatRG8Unorm_sRGB
MTLPixelFormatRGB10A2Uint:
constants: const MTLPixelFormatRGB10A2Uint
MTLPixelFormatRGB10A2Unorm:
constants: const MTLPixelFormatRGB10A2Unorm
MTLPixelFormatRGB9E5Float:
constants: const MTLPixelFormatRGB9E5Float
MTLPixelFormatRGBA16Float:
constants: const MTLPixelFormatRGBA16Float
MTLPixelFormatRGBA16Sint:
constants: const MTLPixelFormatRGBA16Sint
MTLPixelFormatRGBA16Snorm:
constants: const MTLPixelFormatRGBA16Snorm
MTLPixelFormatRGBA16Uint:
constants: const MTLPixelFormatRGBA16Uint
MTLPixelFormatRGBA16Unorm:
constants: const MTLPixelFormatRGBA16Unorm
MTLPixelFormatRGBA32Float:
constants: const MTLPixelFormatRGBA32Float
MTLPixelFormatRGBA32Sint:
constants: const MTLPixelFormatRGBA32Sint
MTLPixelFormatRGBA32Uint:
constants: const MTLPixelFormatRGBA32Uint
MTLPixelFormatRGBA8Sint:
constants: const MTLPixelFormatRGBA8Sint
MTLPixelFormatRGBA8Snorm:
constants: const MTLPixelFormatRGBA8Snorm
MTLPixelFormatRGBA8Uint:
constants: const MTLPixelFormatRGBA8Uint
MTLPixelFormatRGBA8Unorm:
constants: const MTLPixelFormatRGBA8Unorm
MTLPixelFormatRGBA8Unorm_sRGB:
constants: const MTLPixelFormatRGBA8Unorm_sRGB
MTLPixelFormatStencil8:
constants: const MTLPixelFormatStencil8
MTLPixelFormatX24_Stencil8:
constants: const MTLPixelFormatX24_Stencil8
MTLPixelFormatX32_Stencil8:
constants: const MTLPixelFormatX32_Stencil8
MTLPrimitiveType:
constants: type MTLPrimitiveType
MTLPrimitiveTypeLine:
constants: const MTLPrimitiveTypeLine
MTLPrimitiveTypeLineStrip:
constants: const MTLPrimitiveTypeLineStrip
MTLPrimitiveTypePoint:
constants: const MTLPrimitiveTypePoint
MTLPrimitiveTypeTriangle:
constants: const MTLPrimitiveTypeTriangle
MTLPrimitiveTypeTriangleStrip:
constants: const MTLPrimitiveTypeTriangleStrip
MTLRegion:
types: object MTLRegion
MTLRenderCommandEncoder:
types: type MTLRenderCommandEncoder
MTLRenderPassAttachmentDescriptor:
types: type MTLRenderPassAttachmentDescriptor
MTLRenderPassColorAttachmentDescriptor:
types: type MTLRenderPassColorAttachmentDescriptor
MTLRenderPassColorAttachmentDescriptorArray:
types: type MTLRenderPassColorAttachmentDescriptorArray
MTLRenderPassDepthAttachmentDescriptor:
types: type MTLRenderPassDepthAttachmentDescriptor
MTLRenderPassDescriptor:
types: type MTLRenderPassDescriptor
MTLRenderPipelineColorAttachmentDescriptor:
types: type MTLRenderPipelineColorAttachmentDescriptor
MTLRenderPipelineColorAttachmentDescriptorArray:
types: type MTLRenderPipelineColorAttachmentDescriptorArray
MTLRenderPipelineDescriptor:
types: type MTLRenderPipelineDescriptor
MTLRenderPipelineState:
types: type MTLRenderPipelineState
MTLSamplerAddressMode:
constants: type MTLSamplerAddressMode
MTLSamplerAddressModeClampToBorderColor:
constants: const MTLSamplerAddressModeClampToBorderColor
MTLSamplerAddressModeClampToEdge:
constants: const MTLSamplerAddressModeClampToEdge
MTLSamplerAddressModeClampToZero:
constants: const MTLSamplerAddressModeClampToZero
MTLSamplerAddressModeMirrorClampToEdge:
constants: const MTLSamplerAddressModeMirrorClampToEdge
MTLSamplerAddressModeMirrorRepeat:
constants: const MTLSamplerAddressModeMirrorRepeat
MTLSamplerAddressModeRepeat:
constants: const MTLSamplerAddressModeRepeat
MTLSamplerDescriptor:
types: type MTLSamplerDescriptor
MTLSamplerMinMagFilter:
constants: type MTLSamplerMinMagFilter
MTLSamplerMinMagFilterLinear:
constants: const MTLSamplerMinMagFilterLinear
MTLSamplerMinMagFilterNearest:
constants: const MTLSamplerMinMagFilterNearest
MTLSamplerMipFilter:
constants: type MTLSamplerMipFilter
MTLSamplerMipFilterLinear:
constants: const MTLSamplerMipFilterLinear
MTLSamplerMipFilterNearest:
constants: const MTLSamplerMipFilterNearest
MTLSamplerMipFilterNotMipmapped:
constants: const MTLSamplerMipFilterNotMipmapped
MTLSamplerState:
types: type MTLSamplerState
MTLSize:
types: object MTLSize
MTLStorageMode:
constants: type MTLStorageMode
MTLStorageModeManaged:
constants: const MTLStorageModeManaged
MTLStorageModeMemoryless:
constants: const MTLStorageModeMemoryless
MTLStorageModePrivate:
constants: const MTLStorageModePrivate
MTLStorageModeShared:
constants: const MTLStorageModeShared
MTLStoreAction:
constants: type MTLStoreAction
MTLStoreActionCustomSampleDepthStore:
constants: const MTLStoreActionCustomSampleDepthStore
MTLStoreActionDontCare:
constants: const MTLStoreActionDontCare
MTLStoreActionMultisampleResolve:
constants: const MTLStoreActionMultisampleResolve
MTLStoreActionStore:
constants: const MTLStoreActionStore
MTLStoreActionStoreAndMultisampleResolve:
constants: const MTLStoreActionStoreAndMultisampleResolve
MTLStoreActionUnknown:
constants: const MTLStoreActionUnknown
MTLTexture:
types: type MTLTexture
MTLTextureDescriptor:
types: type MTLTextureDescriptor
MTLTextureUsage:
constants: type MTLTextureUsage
MTLTextureUsagePixelFormatView:
constants: const MTLTextureUsagePixelFormatView
MTLTextureUsageRenderTarget:
constants: const MTLTextureUsageRenderTarget
MTLTextureUsageShaderAtomic:
constants: const MTLTextureUsageShaderAtomic
MTLTextureUsageShaderRead:
constants: const MTLTextureUsageShaderRead
MTLTextureUsageShaderWrite:
constants: const MTLTextureUsageShaderWrite
MTLTextureUsageUnknown:
constants: const MTLTextureUsageUnknown
MTLVertexAttributeDescriptor:
types: type MTLVertexAttributeDescriptor
MTLVertexAttributeDescriptorArray:
types: type MTLVertexAttributeDescriptorArray
MTLVertexBufferLayoutDescriptor:
types: type MTLVertexBufferLayoutDescriptor
MTLVertexBufferLayoutDescriptorArray:
types: type MTLVertexBufferLayoutDescriptorArray
MTLVertexDescriptor:
types: type MTLVertexDescriptor
MTLVertexFormat:
constants: type MTLVertexFormat
MTLVertexFormatChar:
constants: const MTLVertexFormatChar
MTLVertexFormatChar2:
constants: const MTLVertexFormatChar2
MTLVertexFormatChar2Normalized:
constants: const MTLVertexFormatChar2Normalized
MTLVertexFormatChar3:
constants: const MTLVertexFormatChar3
MTLVertexFormatChar3Normalized:
constants: const MTLVertexFormatChar3Normalized
MTLVertexFormatChar4:
constants: const MTLVertexFormatChar4
MTLVertexFormatChar4Normalized:
constants: const MTLVertexFormatChar4Normalized
MTLVertexFormatCharNormalized:
constants: const MTLVertexFormatCharNormalized
MTLVertexFormatFloat:
constants: const MTLVertexFormatFloat
MTLVertexFormatFloat2:
constants: const MTLVertexFormatFloat2
MTLVertexFormatFloat3:
constants: const MTLVertexFormatFloat3
MTLVertexFormatFloat4:
constants: const MTLVertexFormatFloat4
MTLVertexFormatFloatRG11B10:
constants: const MTLVertexFormatFloatRG11B10
MTLVertexFormatFloatRGB9E5:
constants: const MTLVertexFormatFloatRGB9E5
MTLVertexFormatHalf:
constants: const MTLVertexFormatHalf
MTLVertexFormatHalf2:
constants: const MTLVertexFormatHalf2
MTLVertexFormatHalf3:
constants: const MTLVertexFormatHalf3
MTLVertexFormatHalf4:
constants: const MTLVertexFormatHalf4
MTLVertexFormatInt:
constants: const MTLVertexFormatInt
MTLVertexFormatInt1010102Normalized:
constants: const MTLVertexFormatInt1010102Normalized
MTLVertexFormatInt2:
constants: const MTLVertexFormatInt2
MTLVertexFormatInt3:
constants: const MTLVertexFormatInt3
MTLVertexFormatInt4:
constants: const MTLVertexFormatInt4
MTLVertexFormatInvalid:
constants: const MTLVertexFormatInvalid
MTLVertexFormatShort:
constants: const MTLVertexFormatShort
MTLVertexFormatShort2:
constants: const MTLVertexFormatShort2
MTLVertexFormatShort2Normalized:
constants: const MTLVertexFormatShort2Normalized
MTLVertexFormatShort3:
constants: const MTLVertexFormatShort3
MTLVertexFormatShort3Normalized:
constants: const MTLVertexFormatShort3Normalized
MTLVertexFormatShort4:
constants: const MTLVertexFormatShort4
MTLVertexFormatShort4Normalized:
constants: const MTLVertexFormatShort4Normalized
MTLVertexFormatShortNormalized:
constants: const MTLVertexFormatShortNormalized
MTLVertexFormatUChar:
constants: const MTLVertexFormatUChar
MTLVertexFormatUChar2:
constants: const MTLVertexFormatUChar2
MTLVertexFormatUChar2Normalized:
constants: const MTLVertexFormatUChar2Normalized
MTLVertexFormatUChar3:
constants: const MTLVertexFormatUChar3
MTLVertexFormatUChar3Normalized:
constants: const MTLVertexFormatUChar3Normalized
MTLVertexFormatUChar4:
constants: const MTLVertexFormatUChar4
MTLVertexFormatUChar4Normalized:
constants: const MTLVertexFormatUChar4Normalized
MTLVertexFormatUChar4Normalized_BGRA:
constants: const MTLVertexFormatUChar4Normalized_BGRA
MTLVertexFormatUCharNormalized:
constants: const MTLVertexFormatUCharNormalized
MTLVertexFormatUInt:
constants: const MTLVertexFormatUInt
MTLVertexFormatUInt1010102Normalized:
constants: const MTLVertexFormatUInt1010102Normalized
MTLVertexFormatUInt2:
constants: const MTLVertexFormatUInt2
MTLVertexFormatUInt3:
constants: const MTLVertexFormatUInt3
MTLVertexFormatUInt4:
constants: const MTLVertexFormatUInt4
MTLVertexFormatUShort:
constants: const MTLVertexFormatUShort
MTLVertexFormatUShort2:
constants: const MTLVertexFormatUShort2
MTLVertexFormatUShort2Normalized:
constants: const MTLVertexFormatUShort2Normalized
MTLVertexFormatUShort3:
constants: const MTLVertexFormatUShort3
MTLVertexFormatUShort3Normalized:
constants: const MTLVertexFormatUShort3Normalized
MTLVertexFormatUShort4:
constants: const MTLVertexFormatUShort4
MTLVertexFormatUShort4Normalized:
constants: const MTLVertexFormatUShort4Normalized
MTLVertexFormatUShortNormalized:
constants: const MTLVertexFormatUShortNormalized
MTLVertexStepFunction:
constants: type MTLVertexStepFunction
MTLVertexStepFunctionConstant:
constants: const MTLVertexStepFunctionConstant
MTLVertexStepFunctionPerInstance:
constants: const MTLVertexStepFunctionPerInstance
MTLVertexStepFunctionPerPatch:
constants: const MTLVertexStepFunctionPerPatch
MTLVertexStepFunctionPerPatchControlPoint:
constants: const MTLVertexStepFunctionPerPatchControlPoint
MTLVertexStepFunctionPerVertex:
constants: const MTLVertexStepFunctionPerVertex
MTLViewport:
types: object MTLViewport
MTLWinding:
constants: type MTLWinding
MTLWindingClockwise:
constants: const MTLWindingClockwise
MTLWindingCounterClockwise:
constants: const MTLWindingCounterClockwise
name:
protocols: proc name(self: MTLDevice): NSString
newBufferWithBytes:
protocols: proc newBufferWithBytes(self: MTLDevice; x: pointer; length: uint; options: uint): MTLBuffer
newBufferWithLength:
protocols: proc newBufferWithLength(self: MTLDevice; x: uint; options: uint): MTLBuffer
newCommandBuffer:
context: proc newCommandBuffer(ctx: MetalContext): MTLCommandBuffer
newCommandQueue:
protocols: proc newCommandQueue(self: MTLDevice): MTLCommandQueue
newDepthStencilStateWithDescriptor:
protocols: proc newDepthStencilStateWithDescriptor(self: MTLDevice; x: MTLDepthStencilDescriptor): MTLDepthStencilState
newFunctionWithName:
protocols: proc newFunctionWithName(self: MTLLibrary; x: NSString): MTLFunction
newLibraryWithSource:
protocols: proc newLibraryWithSource(self: MTLDevice; x: NSString; options: ID; error: ptr NSError): MTLLibrary
newMetalContext:
context: proc newMetalContext(window: Window; device = 0.MTLDevice; pixelFormat: MTLPixelFormat = 80'u): MetalContext
newRenderPipelineStateWithDescriptor:
protocols: proc newRenderPipelineStateWithDescriptor(self: MTLDevice; x: MTLRenderPipelineDescriptor; error: ptr NSError): MTLRenderPipelineState
newSamplerStateWithDescriptor:
protocols: proc newSamplerStateWithDescriptor(self: MTLDevice; x: MTLSamplerDescriptor): MTLSamplerState
newTextureWithDescriptor:
protocols: proc newTextureWithDescriptor(self: MTLDevice; x: MTLTextureDescriptor): MTLTexture
nextDrawable:
protocols: proc nextDrawable(self: CAMetalLayer): CAMetalDrawable
objectAtIndexedSubscript:
protocols: proc objectAtIndexedSubscript(self: MTLRenderPassColorAttachmentDescriptorArray; x: uint): MTLRenderPassColorAttachmentDescriptor
protocols: proc objectAtIndexedSubscript(self: MTLRenderPipelineColorAttachmentDescriptorArray; x: uint): MTLRenderPipelineColorAttachmentDescriptor
protocols: proc objectAtIndexedSubscript(self: MTLVertexAttributeDescriptorArray; x: uint): MTLVertexAttributeDescriptor
protocols: proc objectAtIndexedSubscript(self: MTLVertexBufferLayoutDescriptorArray; x: uint): MTLVertexBufferLayoutDescriptor
offset:
protocols: proc offset(self: MTLVertexAttributeDescriptor): uint
pixelFormat:
protocols: proc pixelFormat(self: CAMetalLayer): MTLPixelFormat
protocols: proc pixelFormat(self: MTLRenderPipelineColorAttachmentDescriptor): MTLPixelFormat
presentDrawable:
protocols: proc presentDrawable(self: MTLCommandBuffer; x: CAMetalDrawable)
release:
foundations: proc release[T](value: T)
removeFromSuperlayer:
extras: proc removeFromSuperlayer(self: CALayer)
renderCommandEncoderWithDescriptor:
protocols: proc renderCommandEncoderWithDescriptor(self: MTLCommandBuffer; x: MTLRenderPassDescriptor): MTLRenderCommandEncoder
renderPassDescriptor:
protocols: proc renderPassDescriptor(class: typedesc[MTLRenderPassDescriptor]): MTLRenderPassDescriptor
replaceRegion:
protocols: proc replaceRegion(self: MTLTexture; x: MTLRegion; mipmapLevel: uint; withBytes: pointer; bytesPerRow: uint)
retain:
foundations: proc retain[T](value: T)
rgbBlendOperation:
protocols: proc rgbBlendOperation(self: MTLRenderPipelineColorAttachmentDescriptor): MTLBlendOperation
sAddressMode:
protocols: proc sAddressMode(self: MTLSamplerDescriptor): MTLSamplerAddressMode
setAlphaBlendOperation:
protocols: proc setAlphaBlendOperation(self: MTLRenderPipelineColorAttachmentDescriptor; x: MTLBlendOperation)
setBlendingEnabled:
protocols: proc setBlendingEnabled(self: MTLRenderPipelineColorAttachmentDescriptor; x: bool)
setBufferIndex:
protocols: proc setBufferIndex(self: MTLVertexAttributeDescriptor; x: uint)
setClearColor:
protocols: proc setClearColor(self: MTLRenderPassColorAttachmentDescriptor; x: MTLClearColor)
setClearDepth:
protocols: proc setClearDepth(self: MTLRenderPassDepthAttachmentDescriptor; x: float64)
setContentsScale:
extras: proc setContentsScale(self: CALayer; x: float64)
setCullMode:
protocols: proc setCullMode(self: MTLRenderCommandEncoder; x: MTLCullMode)
setDepthAttachment:
protocols: proc setDepthAttachment(self: MTLRenderPassDescriptor; x: MTLRenderPassDepthAttachmentDescriptor)
setDepthAttachmentPixelFormat:
protocols: proc setDepthAttachmentPixelFormat(self: MTLRenderPipelineDescriptor; x: MTLPixelFormat)
setDepthCompareFunction:
protocols: proc setDepthCompareFunction(self: MTLDepthStencilDescriptor; x: MTLCompareFunction)
setDepthStencilState:
protocols: proc setDepthStencilState(self: MTLRenderCommandEncoder; x: MTLDepthStencilState)
setDepthWriteEnabled:
protocols: proc setDepthWriteEnabled(self: MTLDepthStencilDescriptor; x: bool)
setDestinationAlphaBlendFactor:
protocols: proc setDestinationAlphaBlendFactor(self: MTLRenderPipelineColorAttachmentDescriptor; x: MTLBlendFactor)
setDestinationRGBBlendFactor:
protocols: proc setDestinationRGBBlendFactor(self: MTLRenderPipelineColorAttachmentDescriptor; x: MTLBlendFactor)
setDevice:
protocols: proc setDevice(self: CAMetalLayer; x: MTLDevice)
setDrawableSize:
protocols: proc setDrawableSize(self: CAMetalLayer; x: NSSize)
setFormat:
protocols: proc setFormat(self: MTLVertexAttributeDescriptor; x: MTLVertexFormat)
setFragmentBytes:
protocols: proc setFragmentBytes(self: MTLRenderCommandEncoder; x: pointer; length: uint; atIndex: uint)
setFragmentFunction:
protocols: proc setFragmentFunction(self: MTLRenderPipelineDescriptor; x: MTLFunction)
setFragmentSamplerState:
protocols: proc setFragmentSamplerState(self: MTLRenderCommandEncoder; x: MTLSamplerState; atIndex: uint)
setFragmentTexture:
protocols: proc setFragmentTexture(self: MTLRenderCommandEncoder; x: MTLTexture; atIndex: uint)
setFrame:
extras: proc setFrame(self: CALayer; x: NSRect)
setFramebufferOnly:
protocols: proc setFramebufferOnly(self: CAMetalLayer; x: bool)
setFrontFacingWinding:
protocols: proc setFrontFacingWinding(self: MTLRenderCommandEncoder; x: MTLWinding)
setLayer:
extras: proc setLayer(self: NSView; x: CALayer)
setLoadAction:
protocols: proc setLoadAction(self: MTLRenderPassAttachmentDescriptor; x: MTLLoadAction)
setMagFilter:
protocols: proc setMagFilter(self: MTLSamplerDescriptor; x: MTLSamplerMinMagFilter)
setMinFilter:
protocols: proc setMinFilter(self: MTLSamplerDescriptor; x: MTLSamplerMinMagFilter)
setMipFilter:
protocols: proc setMipFilter(self: MTLSamplerDescriptor; x: MTLSamplerMipFilter)
setMipmapLevelCount:
protocols: proc setMipmapLevelCount(self: MTLTextureDescriptor; x: uint)
setOffset:
protocols: proc setOffset(self: MTLVertexAttributeDescriptor; x: uint)
setOpaque:
extras: proc setOpaque(self: CALayer; x: bool)
setPixelFormat:
protocols: proc setPixelFormat(self: CAMetalLayer; x: MTLPixelFormat)
protocols: proc setPixelFormat(self: MTLRenderPipelineColorAttachmentDescriptor; x: MTLPixelFormat)
setRenderPipelineState:
protocols: proc setRenderPipelineState(self: MTLRenderCommandEncoder; x: MTLRenderPipelineState)
setRgbBlendOperation:
protocols: proc setRgbBlendOperation(self: MTLRenderPipelineColorAttachmentDescriptor; x: MTLBlendOperation)
setSAddressMode:
protocols: proc setSAddressMode(self: MTLSamplerDescriptor; x: MTLSamplerAddressMode)
setSourceAlphaBlendFactor:
protocols: proc setSourceAlphaBlendFactor(self: MTLRenderPipelineColorAttachmentDescriptor; x: MTLBlendFactor)
setSourceRGBBlendFactor:
protocols: proc setSourceRGBBlendFactor(self: MTLRenderPipelineColorAttachmentDescriptor; x: MTLBlendFactor)
setStepFunction:
protocols: proc setStepFunction(self: MTLVertexBufferLayoutDescriptor; x: MTLVertexStepFunction)
setStepRate:
protocols: proc setStepRate(self: MTLVertexBufferLayoutDescriptor; x: uint)
setStorageMode:
protocols: proc setStorageMode(self: MTLTextureDescriptor; x: MTLStorageMode)
setStoreAction:
protocols: proc setStoreAction(self: MTLRenderPassAttachmentDescriptor; x: MTLStoreAction)
setStride:
protocols: proc setStride(self: MTLVertexBufferLayoutDescriptor; x: uint)
setTAddressMode:
protocols: proc setTAddressMode(self: MTLSamplerDescriptor; x: MTLSamplerAddressMode)
setTexture:
protocols: proc setTexture(self: MTLRenderPassAttachmentDescriptor; x: MTLTexture)
setUsage:
protocols: proc setUsage(self: MTLTextureDescriptor; x: MTLTextureUsage)
setVertexBuffer:
protocols: proc setVertexBuffer(self: MTLRenderCommandEncoder; x: MTLBuffer; offset: uint; atIndex: uint)
setVertexBytes:
protocols: proc setVertexBytes(self: MTLRenderCommandEncoder; x: pointer; length: uint; atIndex: uint)
setVertexDescriptor:
protocols: proc setVertexDescriptor(self: MTLRenderPipelineDescriptor; x: MTLVertexDescriptor)
setVertexFunction:
protocols: proc setVertexFunction(self: MTLRenderPipelineDescriptor; x: MTLFunction)
setViewport:
protocols: proc setViewport(self: MTLRenderCommandEncoder; x: MTLViewport)
setWantsLayer:
extras: proc setWantsLayer(self: NSView; x: bool)
sourceAlphaBlendFactor:
protocols: proc sourceAlphaBlendFactor(self: MTLRenderPipelineColorAttachmentDescriptor): MTLBlendFactor
sourceRGBBlendFactor:
protocols: proc sourceRGBBlendFactor(self: MTLRenderPipelineColorAttachmentDescriptor): MTLBlendFactor
status:
protocols: proc status(self: MTLCommandBuffer): MTLCommandBufferStatus
stepFunction:
protocols: proc stepFunction(self: MTLVertexBufferLayoutDescriptor): MTLVertexStepFunction
stepRate:
protocols: proc stepRate(self: MTLVertexBufferLayoutDescriptor): uint
storageMode:
protocols: proc storageMode(self: MTLTextureDescriptor): MTLStorageMode
storeAction:
protocols: proc storeAction(self: MTLRenderPassAttachmentDescriptor): MTLStoreAction
stride:
protocols: proc stride(self: MTLVertexBufferLayoutDescriptor): uint
tAddressMode:
protocols: proc tAddressMode(self: MTLSamplerDescriptor): MTLSamplerAddressMode
texture:
protocols: proc texture(self: CAMetalDrawable): MTLTexture
protocols: proc texture(self: MTLRenderPassAttachmentDescriptor): MTLTexture
texture2DDescriptorWithPixelFormat:
protocols: proc texture2DDescriptorWithPixelFormat(class: typedesc[MTLTextureDescriptor]; x: MTLPixelFormat; width: uint; height: uint; mipmapped: bool): MTLTextureDescriptor
toCALayer:
protocols: converter toCALayer(layer: CAMetalLayer): CALayer
toMTLCommandEncoder:
protocols: converter toMTLCommandEncoder(encoder: MTLBlitCommandEncoder): MTLCommandEncoder
protocols: converter toMTLCommandEncoder(encoder: MTLRenderCommandEncoder): MTLCommandEncoder
toMTLRenderPassAttachmentDescriptor:
protocols: converter toMTLRenderPassAttachmentDescriptor(descriptor: MTLRenderPassColorAttachmentDescriptor): MTLRenderPassAttachmentDescriptor
protocols: converter toMTLRenderPassAttachmentDescriptor(descriptor: MTLRenderPassDepthAttachmentDescriptor): MTLRenderPassAttachmentDescriptor
updateDrawableSize:
context: proc updateDrawableSize(ctx: var MetalContext)
usage:
protocols: proc usage(self: MTLTextureDescriptor): MTLTextureUsage
vertexDescriptor:
protocols: proc vertexDescriptor(self: MTLRenderPipelineDescriptor): MTLVertexDescriptor
protocols: proc vertexDescriptor(class: typedesc[MTLVertexDescriptor]): MTLVertexDescriptor
vertexFunction:
protocols: proc vertexFunction(self: MTLRenderPipelineDescriptor): MTLFunction
waitUntilCompleted:
protocols: proc waitUntilCompleted(self: MTLCommandBuffer)
width:
protocols: proc width(self: MTLTexture): uint