Versions in this module Expand all Collapse all v2 v2.0.7 Mar 14, 2021 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 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) 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 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) WaitUntilCompleted() + type CommandEncoder struct — darwin/amd64 + func (ce CommandEncoder) EndEncoding() + type CommandQueue struct — darwin/amd64 + func (c CommandQueue) Release() + func (cq CommandQueue) MakeCommandBuffer() CommandBuffer + type CompileOptions struct — darwin/amd64 + 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) 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) 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 + const MacOSGPUFamily1V1 + const MacOSGPUFamily1V2 + const MacOSGPUFamily1V3 + const MacOSGPUFamily1V4 + const MacOSGPUFamily2V1 + const MacOSReadWriteTextureTier2 + type Function struct — darwin/amd64 + func (f Function) Release() + 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 + 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) 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 + type RenderPipelineColorAttachmentDescriptor struct — darwin/amd64 + BlendingEnabled bool + DestinationAlphaBlendFactor BlendFactor + DestinationRGBBlendFactor BlendFactor + PixelFormat PixelFormat + SourceAlphaBlendFactor BlendFactor + SourceRGBBlendFactor BlendFactor + type RenderPipelineDescriptor struct — darwin/amd64 + ColorAttachments [1]RenderPipelineColorAttachmentDescriptor + FragmentFunction Function + 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 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 unsafe.Pointer) 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