Versions in this module Expand all Collapse all v1 v1.0.1 Jun 29, 2023 Changes in this version + type BlendFactor uint8 — darwin/amd64 + const BlendFactorBlendAlpha + const BlendFactorBlendColor + const BlendFactorDestinationAlpha + const BlendFactorDestinationColor + const BlendFactorOne + const BlendFactorOneMinusBlendAlpha + const BlendFactorOneMinusBlendColor + const BlendFactorOneMinusDestinationAlpha + const BlendFactorOneMinusDestinationColor + const BlendFactorOneMinusSource1Alpha + const BlendFactorOneMinusSource1Color + const BlendFactorOneMinusSourceAlpha + const BlendFactorOneMinusSourceColor + const BlendFactorSource1Alpha + const BlendFactorSource1Color + const BlendFactorSourceAlpha + const BlendFactorSourceAlphaSaturated + const BlendFactorSourceColor + const BlendFactorZero + type BlendOperation uint8 — darwin/amd64 + const BlendOperationAdd + const BlendOperationMax + const BlendOperationMin + const BlendOperationReverseSubtract + const BlendOperationSubtract + type BlitCommandEncoder struct — darwin/amd64 + func (bce BlitCommandEncoder) CopyFromTexture(sourceTexture Texture, sourceSlice int, sourceLevel int, sourceOrigin Origin, ...) + func (bce BlitCommandEncoder) Synchronize(resource Resource) + func (bce BlitCommandEncoder) SynchronizeTexture(texture Texture, slice int, level int) + type Buffer struct — darwin/amd64 + func (b Buffer) CopyToContents(data unsafe.Pointer, lengthInBytes uintptr) + func (b Buffer) Length() uintptr + func (b Buffer) Native() unsafe.Pointer + func (b Buffer) Release() + func (b Buffer) Retain() + type CPUCacheMode uint8 — darwin/amd64 + const CPUCacheModeDefaultCache + const CPUCacheModeWriteCombined + type ClearColor struct — darwin/amd64 + Alpha float64 + Blue float64 + Green float64 + Red float64 + type ColorWriteMask uint8 — darwin/amd64 + const ColorWriteMaskAll + const ColorWriteMaskAlpha + const ColorWriteMaskBlue + const ColorWriteMaskGreen + const ColorWriteMaskNone + const ColorWriteMaskRed + type CommandBuffer struct — darwin/amd64 + func (cb CommandBuffer) Commit() + func (cb CommandBuffer) MakeBlitCommandEncoder() BlitCommandEncoder + func (cb CommandBuffer) MakeRenderCommandEncoder(rpd RenderPassDescriptor) RenderCommandEncoder + func (cb CommandBuffer) PresentDrawable(d Drawable) + func (cb CommandBuffer) Release() + func (cb CommandBuffer) Retain() + func (cb CommandBuffer) Status() CommandBufferStatus + func (cb CommandBuffer) WaitUntilCompleted() + func (cb CommandBuffer) WaitUntilScheduled() + type CommandBufferStatus uint8 — darwin/amd64 + const CommandBufferStatusCommitted + const CommandBufferStatusCompleted + const CommandBufferStatusEnqueued + const CommandBufferStatusError + const CommandBufferStatusNotEnqueued + const CommandBufferStatusScheduled + type CommandEncoder struct — darwin/amd64 + func (ce CommandEncoder) EndEncoding() + type CommandQueue struct — darwin/amd64 + func (cq CommandQueue) MakeCommandBuffer() CommandBuffer + func (cq CommandQueue) Release() + type CompareFunction uint8 — darwin/amd64 + const CompareFunctionAlways + const CompareFunctionEqual + const CompareFunctionGreater + const CompareFunctionGreaterEqual + const CompareFunctionLess + const CompareFunctionLessEqual + const CompareFunctionNever + const CompareFunctionNotEqual + type CompileOptions struct — darwin/amd64 + type DepthStencilDescriptor struct — darwin/amd64 + BackFaceStencil StencilDescriptor + FrontFaceStencil StencilDescriptor + type DepthStencilState struct — darwin/amd64 + func (d DepthStencilState) Release() + type Device struct — darwin/amd64 + Headless bool + LowPower bool + Name string + func CreateSystemDefaultDevice() (Device, error) + func (d Device) Device() unsafe.Pointer + func (d Device) MakeBufferWithBytes(bytes unsafe.Pointer, length uintptr, opt ResourceOptions) Buffer + func (d Device) MakeBufferWithLength(length uintptr, opt ResourceOptions) Buffer + func (d Device) MakeCommandQueue() CommandQueue + func (d Device) MakeDepthStencilState(dsd DepthStencilDescriptor) DepthStencilState + func (d Device) MakeLibrary(source string, opt CompileOptions) (Library, error) + func (d Device) MakeRenderPipelineState(rpd RenderPipelineDescriptor) (RenderPipelineState, error) + func (d Device) MakeTexture(td TextureDescriptor) Texture + func (d Device) RespondsToSelector(sel objc.SEL) bool + func (d Device) SupportsFamily(gpuFamily GPUFamily) bool + func (d Device) SupportsFeatureSet(fs FeatureSet) bool + type Drawable interface — darwin/amd64 + Drawable func() unsafe.Pointer + type FeatureSet uint16 — darwin/amd64 + const FeatureSet_iOS_GPUFamily1_v1 + const FeatureSet_iOS_GPUFamily1_v2 + const FeatureSet_iOS_GPUFamily1_v3 + const FeatureSet_iOS_GPUFamily1_v4 + const FeatureSet_iOS_GPUFamily1_v5 + const FeatureSet_iOS_GPUFamily2_v1 + const FeatureSet_iOS_GPUFamily2_v2 + const FeatureSet_iOS_GPUFamily2_v3 + const FeatureSet_iOS_GPUFamily2_v4 + const FeatureSet_iOS_GPUFamily2_v5 + const FeatureSet_iOS_GPUFamily3_v1 + const FeatureSet_iOS_GPUFamily3_v2 + const FeatureSet_iOS_GPUFamily3_v3 + const FeatureSet_iOS_GPUFamily3_v4 + const FeatureSet_iOS_GPUFamily4_v1 + const FeatureSet_iOS_GPUFamily4_v2 + const FeatureSet_iOS_GPUFamily5_v1 + const FeatureSet_macOS_GPUFamily1_v1 + const FeatureSet_macOS_GPUFamily1_v2 + const FeatureSet_macOS_GPUFamily1_v3 + const FeatureSet_macOS_GPUFamily1_v4 + const FeatureSet_macOS_GPUFamily2_v1 + const FeatureSet_macOS_ReadWriteTextureTier2 + const FeatureSet_tvOS_GPUFamily1_v1 + const FeatureSet_tvOS_GPUFamily1_v2 + const FeatureSet_tvOS_GPUFamily1_v3 + const FeatureSet_tvOS_GPUFamily1_v4 + const FeatureSet_tvOS_GPUFamily2_v1 + const FeatureSet_tvOS_GPUFamily2_v2 + type Function struct — darwin/amd64 + func (f Function) Release() + type GPUFamily int — darwin/amd64 + const GPUFamilyApple1 + const GPUFamilyApple2 + const GPUFamilyApple3 + const GPUFamilyApple4 + const GPUFamilyApple5 + const GPUFamilyApple6 + const GPUFamilyApple7 + const GPUFamilyApple8 + const GPUFamilyMac2 + type IndexType uint8 — darwin/amd64 + const IndexTypeUInt16 + const IndexTypeUInt32 + type Library struct — darwin/amd64 + func (l Library) MakeFunction(name string) (Function, error) + type LoadAction uint8 — darwin/amd64 + const LoadActionClear + const LoadActionDontCare + const LoadActionLoad + type Origin struct — darwin/amd64 + X int + Y int + Z int + type PixelFormat uint16 — darwin/amd64 + const PixelFormatBGRA8UNorm + const PixelFormatBGRA8UNormSRGB + const PixelFormatRGBA8UNorm + const PixelFormatRGBA8UNormSRGB + const PixelFormatStencil8 + type PrimitiveType uint8 — darwin/amd64 + const PrimitiveTypeLine + const PrimitiveTypeLineStrip + const PrimitiveTypePoint + const PrimitiveTypeTriangle + const PrimitiveTypeTriangleStrip + type Region struct — darwin/amd64 + Origin Origin + Size Size + func RegionMake2D(x, y, width, height int) Region + type RenderCommandEncoder struct — darwin/amd64 + func (rce RenderCommandEncoder) DrawIndexedPrimitives(typ PrimitiveType, indexCount int, indexType IndexType, indexBuffer Buffer, ...) + func (rce RenderCommandEncoder) DrawPrimitives(typ PrimitiveType, vertexStart, vertexCount int) + func (rce RenderCommandEncoder) Release() + func (rce RenderCommandEncoder) SetBlendColor(red, green, blue, alpha float32) + func (rce RenderCommandEncoder) SetDepthStencilState(depthStencilState DepthStencilState) + func (rce RenderCommandEncoder) SetFragmentBytes(bytes unsafe.Pointer, length uintptr, index int) + func (rce RenderCommandEncoder) SetFragmentTexture(texture Texture, index int) + func (rce RenderCommandEncoder) SetRenderPipelineState(rps RenderPipelineState) + func (rce RenderCommandEncoder) SetScissorRect(scissorRect ScissorRect) + func (rce RenderCommandEncoder) SetVertexBuffer(buf Buffer, offset, index int) + func (rce RenderCommandEncoder) SetVertexBytes(bytes unsafe.Pointer, length uintptr, index int) + func (rce RenderCommandEncoder) SetViewport(viewport Viewport) + type RenderPassAttachmentDescriptor struct — darwin/amd64 + LoadAction LoadAction + StoreAction StoreAction + Texture Texture + type RenderPassColorAttachmentDescriptor struct — darwin/amd64 + ClearColor ClearColor + type RenderPassDescriptor struct — darwin/amd64 + ColorAttachments [1]RenderPassColorAttachmentDescriptor + StencilAttachment RenderPassStencilAttachment + type RenderPassStencilAttachment struct — darwin/amd64 + type RenderPipelineColorAttachmentDescriptor struct — darwin/amd64 + AlphaBlendOperation BlendOperation + BlendingEnabled bool + DestinationAlphaBlendFactor BlendFactor + DestinationRGBBlendFactor BlendFactor + PixelFormat PixelFormat + RGBBlendOperation BlendOperation + SourceAlphaBlendFactor BlendFactor + SourceRGBBlendFactor BlendFactor + WriteMask ColorWriteMask + type RenderPipelineDescriptor struct — darwin/amd64 + ColorAttachments [1]RenderPipelineColorAttachmentDescriptor + FragmentFunction Function + StencilAttachmentPixelFormat PixelFormat + VertexFunction Function + type RenderPipelineState struct — darwin/amd64 + func (r RenderPipelineState) Release() + type Resource interface — darwin/amd64 + type ResourceOptions uint16 — darwin/amd64 + const ResourceCPUCacheModeDefaultCache + const ResourceCPUCacheModeWriteCombined + const ResourceHazardTrackingModeUntracked + const ResourceStorageModeManaged + const ResourceStorageModeMemoryless + const ResourceStorageModePrivate + const ResourceStorageModeShared + type ScissorRect struct — darwin/amd64 + Height int + Width int + X int + Y int + type Size struct — darwin/amd64 + Depth int + Height int + Width int + type StencilDescriptor struct — darwin/amd64 + DepthFailureOperation StencilOperation + DepthStencilPassOperation StencilOperation + StencilCompareFunction CompareFunction + StencilFailureOperation StencilOperation + type StencilOperation uint8 — darwin/amd64 + const StencilOperationDecrementClamp + const StencilOperationDecrementWrap + const StencilOperationIncrementClamp + const StencilOperationIncrementWrap + const StencilOperationInvert + const StencilOperationKeep + const StencilOperationReplace + const StencilOperationZero + type StorageMode uint8 — darwin/amd64 + const StorageModeManaged + const StorageModeMemoryless + const StorageModePrivate + const StorageModeShared + type StoreAction uint8 — darwin/amd64 + const StoreActionCustomSampleDepthStore + const StoreActionDontCare + const StoreActionMultisampleResolve + const StoreActionStore + const StoreActionStoreAndMultisampleResolve + const StoreActionUnknown + type Texture struct — darwin/amd64 + func NewTexture(texture objc.ID) Texture + func (t Texture) GetBytes(pixelBytes *byte, bytesPerRow uintptr, region Region, level int) + func (t Texture) Height() int + func (t Texture) Release() + func (t Texture) ReplaceRegion(region Region, level int, pixelBytes unsafe.Pointer, bytesPerRow int) + func (t Texture) Width() int + type TextureDescriptor struct — darwin/amd64 + Height int + PixelFormat PixelFormat + StorageMode StorageMode + TextureType TextureType + Usage TextureUsage + Width int + type TextureType uint16 — darwin/amd64 + const TextureType2D + type TextureUsage uint8 — darwin/amd64 + const TextureUsagePixelFormatView + const TextureUsageRenderTarget + const TextureUsageShaderRead + const TextureUsageShaderWrite + const TextureUsageUnknown + type Viewport struct — darwin/amd64 + Height float64 + OriginX float64 + OriginY float64 + Width float64 + ZFar float64 + ZNear float64