package vendor:darwin/MetalKit
⌘K
Ctrl+K
or
/
Overview
Bindings for MetalKit.
Index
Types (3)
Constants (0)
This section is empty.
Variables (0)
This section is empty.
Procedures (47)
View_… (47)
- View_alloc
- View_autoresizeDrawable
- View_clearColor
- View_clearDepth
- View_clearStencil
- View_colorPixelFormat
- View_colorSpace
- View_currentDrawable
- View_currentRenderPassDescriptor
- View_delegate
- View_depthStencilAttachmentTextureUsage
- View_depthStencilPixelFormat
- View_depthStencilTexture
- View_device
- View_draw
- View_drawableSize
- View_enableSetNeedsDisplay
- View_framebufferOnly
- View_initWithCoder
- View_initWithFrame
- View_isPaused
- View_multisampleColorAttachmentTextureUsage
- View_multisampleColorTexture
- View_preferredDevice
- View_preferredDrawableSize
- View_preferredFramesPerSecond
- View_presentsWithTransaction
- View_releaseDrawables
- View_sampleCount
- View_setAutoresizeDrawable
- View_setClearColor
- View_setClearDepth
- View_setClearStencil
- View_setColorPixelFormat
- View_setColorSpace
- View_setDelegate
- View_setDepthStencilAttachmentTextureUsage
- View_setDepthStencilPixelFormat
- View_setDevice
- View_setDrawableSize
- View_setEnableSetNeedsDisplay
- View_setFramebufferOnly
- View_setMultisampleColorAttachmentTextureUsage
- View_setPaused
- View_setPreferredFramesPerSecond
- View_setPresentsWithTransaction
- View_setSampleCount
Procedure Groups (0)
This section is empty.
Types
ColorSpaceRef ¶
ColorSpaceRef :: struct {}
View ¶
View :: struct { using _: NS.View, }View :: struct { using _: NS.View, } // Objective-C class MTKView // Inherits NS.View → NS.Responder → NS.Object // 47 methods
Bound Objective-C Methods
- alloc () -> ^View class method owned
- autoresizeDrawable () -> bool
- clearColor () -> MTL.ClearColor
- clearDepth () -> f64
- clearStencil () -> u32
- colorPixelFormat () -> MTL.PixelFormat
- colorSpace () -> ColorSpaceRef
- currentDrawable () -> ^CA.MetalDrawable
- currentRenderPassDescriptor () -> ^MTL.RenderPassDescriptor
- delegate () -> ^ViewDelegate
- depthStencilAttachmentTextureUsage () -> MTL.TextureUsage
- depthStencilPixelFormat () -> MTL.PixelFormat
- depthStencilTexture () -> ^MTL.Texture
- device () -> ^MTL.Device
- draw ()
- drawableSize () -> CoreFoundation.CGSize
- enableSetNeedsDisplay () -> bool
- framebufferOnly () -> bool
- initWithCoder (coder) -> ^View
- initWithFrame (frame, device) -> ^View
- isPaused () -> bool
- multisampleColorAttachmentTextureUsage () -> MTL.TextureUsage
- multisampleColorTexture () -> ^MTL.Texture
- preferredDevice () -> ^MTL.Device
- preferredDrawableSize () -> CoreFoundation.CGSize
- preferredFramesPerSecond () -> NS.Integer
- presentsWithTransaction () -> bool
- releaseDrawables ()
- sampleCount () -> NS.UInteger
- setAutoresizeDrawable (autoresizeDrawable)
- setClearColor (clearColor)
- setClearDepth (clearDepth)
- setClearStencil (clearStencil)
- setColorPixelFormat (colorPixelFormat)
- setColorSpace (colorSpace)
- setDelegate (delegate)
- setDepthStencilAttachmentTextureUsage (textureUsage)
- setDepthStencilPixelFormat (colorPixelFormat)
- setDevice (device)
- setDrawableSize (drawableSize)
- setEnableSetNeedsDisplay (enableSetNeedsDisplay)
- setFramebufferOnly (framebufferOnly)
- setMultisampleColorAttachmentTextureUsage(textureUsage)
- setPaused (isPaused)
- setPreferredFramesPerSecond (preferredFramesPerSecond)
- setPresentsWithTransaction (presentsWithTransaction)
- setSampleCount (sampleCount)
Methods Inherited From NS.View
- addSubview (view)
- bounds () -> CoreFoundation.CGRect
- convertPointFromView(point, view) -> CoreFoundation.CGPoint
- isFlipped () -> bool
- layer () -> ^NS.Layer
- setIsFlipped (flipped)
- setLayer (layer)
- setWantsLayer (wantsLayer)
- wantsLayer () -> bool
Methods Inherited From NS.Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^NS.String
- description () -> ^NS.String
- hash () -> NS.UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> NS.UInteger
ViewDelegate ¶
ViewDelegate :: struct { drawInMTKView: proc "c" (self: ^ViewDelegate, view: ^View), drawableSizeWillChange: proc "c" (self: ^ViewDelegate, view: ^View, size: CoreFoundation.CGSize), user_data: rawptr, }
Constants
This section is empty.
Variables
This section is empty.
Procedures
View_alloc ¶ class method owned
View_autoresizeDrawable ¶
View_autoresizeDrawable :: proc "c" (self: ^View) -> bool {…}
autoresizeDrawable := view->autoresizeDrawable()
View_clearColor ¶
View_clearColor :: proc "c" (self: ^View) -> MTL.ClearColor {…}
clearColor := view->clearColor()
View_clearDepth ¶
View_clearDepth :: proc "c" (self: ^View) -> f64 {…}
clearDepth := view->clearDepth()
View_clearStencil ¶
View_clearStencil :: proc "c" (self: ^View) -> u32 {…}
clearStencil := view->clearStencil()
View_colorPixelFormat ¶
View_colorPixelFormat :: proc "c" (self: ^View) -> MTL.PixelFormat {…}
colorPixelFormat := view->colorPixelFormat()
View_colorSpace ¶
View_colorSpace :: proc "c" (self: ^View) -> ColorSpaceRef {…}
colorSpace := view->colorSpace()
View_currentDrawable ¶
View_currentDrawable :: proc "c" (self: ^View) -> ^CA.MetalDrawable {…}
currentDrawable := view->currentDrawable()
View_currentRenderPassDescriptor ¶
View_currentRenderPassDescriptor :: proc "c" (self: ^View) -> ^MTL.RenderPassDescriptor {…}
currentRenderPassDescriptor := view->currentRenderPassDescriptor()
View_delegate ¶
View_delegate :: proc "c" (self: ^View) -> ^ViewDelegate {…}
delegate := view->delegate()
View_depthStencilAttachmentTextureUsage ¶
View_depthStencilAttachmentTextureUsage :: proc "c" (self: ^View) -> MTL.TextureUsage {…}
depthStencilAttachmentTextureUsage := view->depthStencilAttachmentTextureUsage()
View_depthStencilPixelFormat ¶
View_depthStencilPixelFormat :: proc "c" (self: ^View) -> MTL.PixelFormat {…}
depthStencilPixelFormat := view->depthStencilPixelFormat()
View_depthStencilTexture ¶
View_depthStencilTexture :: proc "c" (self: ^View) -> ^MTL.Texture {…}
depthStencilTexture := view->depthStencilTexture()
View_drawableSize ¶
View_drawableSize :: proc "c" (self: ^View) -> CoreFoundation.CGSize {…}
drawableSize := view->drawableSize()
View_enableSetNeedsDisplay ¶
View_enableSetNeedsDisplay :: proc "c" (self: ^View) -> bool {…}
enableSetNeedsDisplay := view->enableSetNeedsDisplay()
View_framebufferOnly ¶
View_framebufferOnly :: proc "c" (self: ^View) -> bool {…}
framebufferOnly := view->framebufferOnly()
View_initWithCoder ¶
View_initWithCoder :: proc "c" (self: ^View, coder: ^NS.Coder) -> ^View {…}
res := view->initWithCoder(coder)
View_initWithFrame ¶
View_initWithFrame :: proc "c" ( self: ^View, frame: CoreFoundation.CGRect, device: ^MTL.Device, ) -> ^View {…}
res := view->initWithFrame(frame, device)
View_multisampleColorAttachmentTextureUsage ¶
View_multisampleColorAttachmentTextureUsage :: proc "c" (self: ^View) -> MTL.TextureUsage {…}
multisampleColorAttachmentTextureUsage := view->multisampleColorAttachmentTextureUsage()
View_multisampleColorTexture ¶
View_multisampleColorTexture :: proc "c" (self: ^View) -> ^MTL.Texture {…}
multisampleColorTexture := view->multisampleColorTexture()
View_preferredDevice ¶
View_preferredDevice :: proc "c" (self: ^View) -> ^MTL.Device {…}
preferredDevice := view->preferredDevice()
View_preferredDrawableSize ¶
View_preferredDrawableSize :: proc "c" (self: ^View) -> CoreFoundation.CGSize {…}
preferredDrawableSize := view->preferredDrawableSize()
View_preferredFramesPerSecond ¶
View_preferredFramesPerSecond :: proc "c" (self: ^View) -> NS.Integer {…}
preferredFramesPerSecond := view->preferredFramesPerSecond()
View_presentsWithTransaction ¶
View_presentsWithTransaction :: proc "c" (self: ^View) -> bool {…}
presentsWithTransaction := view->presentsWithTransaction()
View_releaseDrawables ¶
View_releaseDrawables :: proc "c" (self: ^View) {…}
view->releaseDrawables()
View_sampleCount ¶
View_sampleCount :: proc "c" (self: ^View) -> NS.UInteger {…}
sampleCount := view->sampleCount()
View_setAutoresizeDrawable ¶
View_setAutoresizeDrawable :: proc "c" (self: ^View, autoresizeDrawable: bool) {…}
view->setAutoresizeDrawable(autoresizeDrawable)
View_setClearColor ¶
View_setClearColor :: proc "c" (self: ^View, clearColor: MTL.ClearColor) {…}
view->setClearColor(clearColor)
View_setClearDepth ¶
View_setClearDepth :: proc "c" (self: ^View, clearDepth: f64) {…}
view->setClearDepth(clearDepth)
View_setClearStencil ¶
View_setClearStencil :: proc "c" (self: ^View, clearStencil: u32) {…}
view->setClearStencil(clearStencil)
View_setColorPixelFormat ¶
View_setColorPixelFormat :: proc "c" (self: ^View, colorPixelFormat: MTL.PixelFormat) {…}
view->setColorPixelFormat(colorPixelFormat)
View_setColorSpace ¶
View_setColorSpace :: proc "c" (self: ^View, colorSpace: ColorSpaceRef) {…}
view->setColorSpace(colorSpace)
View_setDelegate ¶
View_setDelegate :: proc "c" (self: ^View, delegate: ^ViewDelegate) {…}
view->setDelegate(delegate)
View_setDepthStencilAttachmentTextureUsage ¶
View_setDepthStencilAttachmentTextureUsage :: proc "c" ( self: ^View, textureUsage: MTL.TextureUsage, ) {…}
view->setDepthStencilAttachmentTextureUsage(textureUsage)
View_setDepthStencilPixelFormat ¶
View_setDepthStencilPixelFormat :: proc "c" (self: ^View, colorPixelFormat: MTL.PixelFormat) {…}
view->setDepthStencilPixelFormat(colorPixelFormat)
View_setDrawableSize ¶
View_setDrawableSize :: proc "c" (self: ^View, drawableSize: CoreFoundation.CGSize) {…}
view->setDrawableSize(drawableSize)
View_setEnableSetNeedsDisplay ¶
View_setEnableSetNeedsDisplay :: proc "c" (self: ^View, enableSetNeedsDisplay: bool) {…}
view->setEnableSetNeedsDisplay(enableSetNeedsDisplay)
View_setFramebufferOnly ¶
View_setFramebufferOnly :: proc "c" (self: ^View, framebufferOnly: bool) {…}
view->setFramebufferOnly(framebufferOnly)
View_setMultisampleColorAttachmentTextureUsage ¶
View_setMultisampleColorAttachmentTextureUsage :: proc "c" ( self: ^View, textureUsage: MTL.TextureUsage, ) {…}
view->setMultisampleColorAttachmentTextureUsage(textureUsage)
View_setPreferredFramesPerSecond ¶
View_setPreferredFramesPerSecond :: proc "c" ( self: ^View, preferredFramesPerSecond: NS.Integer, ) {…}
view->setPreferredFramesPerSecond(preferredFramesPerSecond)
View_setPresentsWithTransaction ¶
View_setPresentsWithTransaction :: proc "c" (self: ^View, presentsWithTransaction: bool) {…}
view->setPresentsWithTransaction(presentsWithTransaction)
View_setSampleCount ¶
View_setSampleCount :: proc "c" (self: ^View, sampleCount: NS.UInteger) {…}
view->setSampleCount(sampleCount)
Procedure Groups
This section is empty.
Source Files
Generation Information
Generated with odin version dev-2026-10 (vendor "odin") Windows_amd64 @ 2026-10-09 00:54:55.393225600 +0000 UTC