package vendor:darwin/MetalKit

⌘K
Ctrl+K
or
/

    Types

    ColorSpaceRef ¶

    ColorSpaceRef :: struct {}

    View ¶

    View :: struct {
    	using _: NS.View,
    }

    Bound Objective-C Methods

    Methods Inherited From NS.View
    Methods Inherited From NS.Object

    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_alloc :: proc "c" () -> ^View {…}
    view := View.alloc()

    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_device ¶

    View_device :: proc "c" (self: ^View) -> ^MTL.Device {…}
    device := view->device()

    View_draw ¶

    View_draw :: proc "c" (self: ^View) {…}
    view->draw()

    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_isPaused ¶

    View_isPaused :: proc "c" (self: ^View) -> bool {…}
    isPaused := view->isPaused()

    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_setDevice ¶

    View_setDevice :: proc "c" (self: ^View, device: ^MTL.Device) {…}
    view->setDevice(device)

    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_setPaused ¶

    View_setPaused :: proc "c" (self: ^View, isPaused: bool) {…}
    view->setPaused(isPaused)

    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