Versions in this module Expand all Collapse all v0 v0.0.1 Jan 21, 2024 Changes in this version + type Backend struct — linux/amd64 + func (b *Backend) BeginCompute() + func (b *Backend) BeginFrame(target driver.RenderTarget, clear bool, viewport image.Point) driver.Texture + func (b *Backend) BeginRenderPass(tex driver.Texture, d driver.LoadDesc) + func (b *Backend) BindImageTexture(unit int, tex driver.Texture) + func (b *Backend) BindIndexBuffer(buffer driver.Buffer) + func (b *Backend) BindPipeline(pipe driver.Pipeline) + func (b *Backend) BindProgram(prog driver.Program) + func (b *Backend) BindStorageBuffer(binding int, buffer driver.Buffer) + func (b *Backend) BindTexture(unit int, tex driver.Texture) + func (b *Backend) BindUniforms(buffer driver.Buffer) + func (b *Backend) BindVertexBuffer(buffer driver.Buffer, offset int) + func (b *Backend) Caps() driver.Caps + func (b *Backend) CopyTexture(dstTex driver.Texture, dorig image.Point, srcFBO driver.Texture, ...) + func (b *Backend) DispatchCompute(x, y, z int) + func (b *Backend) DrawArrays(off, count int) + func (b *Backend) DrawElements(off, count int) + func (b *Backend) EndCompute() + func (b *Backend) EndFrame() + func (b *Backend) EndRenderPass() + func (b *Backend) IsTimeContinuous() bool + func (b *Backend) NewBuffer(bindings driver.BufferBinding, size int) (driver.Buffer, error) + func (b *Backend) NewComputeProgram(src shader.Sources) (driver.Program, error) + func (b *Backend) NewFragmentShader(src shader.Sources) (driver.FragmentShader, error) + func (b *Backend) NewImmutableBuffer(typ driver.BufferBinding, data []byte) (driver.Buffer, error) + func (b *Backend) NewPipeline(desc driver.PipelineDesc) (driver.Pipeline, error) + func (b *Backend) NewTexture(format driver.TextureFormat, width, height int, ...) (driver.Texture, error) + func (b *Backend) NewTimer() driver.Timer + func (b *Backend) NewVertexShader(src shader.Sources) (driver.VertexShader, error) + func (b *Backend) PrepareTexture(tex driver.Texture) + func (b *Backend) Release() + func (b *Backend) Viewport(x, y, width, height int) + type Buffer struct — linux/amd64 + func (b *Buffer) Download(data []byte) error + func (b *Buffer) Release() + func (b *Buffer) Upload(data []byte) + type Pipeline struct — linux/amd64 + func (p *Pipeline) Release() + type Shader struct — linux/amd64 + func (s *Shader) Release() + type Texture struct — linux/amd64 + func (f *Texture) ImplementsRenderTarget() + func (t *Texture) ReadPixels(src image.Rectangle, pixels []byte, stride int) error + func (t *Texture) Release() + func (t *Texture) Upload(offset, size image.Point, pixels []byte, stride int)