Index
Modules:
metal4
,
metal4/codes
,
metal4/constants
,
metal4/context
,
metal4/extras
,
metal4/functions
,
metal4/protocols
,
metal4/runtime
,
metal4/types
.
API symbols
addSublayer:
extras: proc addSublayer(self: CALayer; x: CALayer)
alphaBlendOperation:
protocols: proc alphaBlendOperation(self: MTLRenderPipelineColorAttachmentDescriptor): MTLBlendOperation
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
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)
fragmentFunction:
protocols: proc fragmentFunction(self: MTLRenderPipelineDescriptor): MTLFunction
framebufferOnly:
protocols: proc framebufferOnly(self: CAMetalLayer): bool
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
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
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
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
MTLBuffer:
types: type MTLBuffer
MTLClearColor:
types: object MTLClearColor
MTLCommandBuffer:
types: type MTLCommandBuffer
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
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
MTLViewport:
types: object MTLViewport
MTLWinding:
constants: type MTLWinding
MTLWindingClockwise:
constants: const MTLWindingClockwise
MTLWindingCounterClockwise:
constants: const MTLWindingCounterClockwise
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
pixelFormat:
protocols: proc pixelFormat(self: CAMetalLayer): MTLPixelFormat
protocols: proc pixelFormat(self: MTLRenderPipelineColorAttachmentDescriptor): MTLPixelFormat
presentDrawable:
protocols: proc presentDrawable(self: MTLCommandBuffer; x: CAMetalDrawable)
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)
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)
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)
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)
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)
setStoreAction:
protocols: proc setStoreAction(self: MTLRenderPassAttachmentDescriptor; x: MTLStoreAction)
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)
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
storeAction:
protocols: proc storeAction(self: MTLRenderPassAttachmentDescriptor): MTLStoreAction
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: 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
vertexFunction:
protocols: proc vertexFunction(self: MTLRenderPipelineDescriptor): MTLFunction