Versions in this module Expand all Collapse all v0 v0.0.6 May 16, 2021 Changes in this version + type Backend struct — windows/amd64 + func (b *Backend) BeginFrame() driver.Framebuffer + func (b *Backend) BindFramebuffer(fbo driver.Framebuffer) + func (b *Backend) BindImageTexture(unit int, tex driver.Texture, access driver.AccessBits, f driver.TextureFormat) + func (b *Backend) BindIndexBuffer(buf driver.Buffer) + func (b *Backend) BindInputLayout(layout driver.InputLayout) + func (b *Backend) BindProgram(prog driver.Program) + func (b *Backend) BindTexture(unit int, tex driver.Texture) + func (b *Backend) BindVertexBuffer(buf driver.Buffer, stride, offset int) + func (b *Backend) BlendFunc(sfactor, dfactor driver.BlendFactor) + func (b *Backend) Caps() driver.Caps + func (b *Backend) Clear(colr, colg, colb, cola float32) + func (b *Backend) ClearDepth(depth float32) + func (b *Backend) DepthFunc(f driver.DepthFunc) + func (b *Backend) DepthMask(mask bool) + func (b *Backend) DispatchCompute(x, y, z int) + func (b *Backend) DrawArrays(mode driver.DrawMode, off, count int) + func (b *Backend) DrawElements(mode driver.DrawMode, off, count int) + func (b *Backend) EndFrame() + func (b *Backend) IsTimeContinuous() bool + func (b *Backend) MemoryBarrier() + func (b *Backend) NewBuffer(typ driver.BufferBinding, size int) (driver.Buffer, error) + func (b *Backend) NewComputeProgram(shader driver.ShaderSources) (driver.Program, error) + func (b *Backend) NewFramebuffer(tex driver.Texture, depthBits int) (driver.Framebuffer, error) + func (b *Backend) NewImmutableBuffer(typ driver.BufferBinding, data []byte) (driver.Buffer, error) + func (b *Backend) NewInputLayout(vertexShader driver.ShaderSources, layout []driver.InputDesc) (driver.InputLayout, error) + func (b *Backend) NewProgram(vertexShader, fragmentShader driver.ShaderSources) (driver.Program, error) + func (b *Backend) NewTexture(format driver.TextureFormat, width, height int, ...) (driver.Texture, error) + func (b *Backend) NewTimer() driver.Timer + func (b *Backend) Release() + func (b *Backend) SetBlend(enable bool) + func (b *Backend) SetDepthTest(enable bool) + func (b *Backend) Viewport(x, y, width, height int) + type Buffer struct — windows/amd64 + func (b *Buffer) Download(data []byte) error + func (b *Buffer) Release() + func (b *Buffer) Upload(data []byte) + type Framebuffer struct — windows/amd64 + func (f *Framebuffer) Invalidate() + func (f *Framebuffer) ReadPixels(src image.Rectangle, pixels []byte) error + func (f *Framebuffer) Release() + type InputLayout struct — windows/amd64 + func (l *InputLayout) Release() + type Program struct — windows/amd64 + func (p *Program) Release() + func (p *Program) SetFragmentUniforms(buf driver.Buffer) + func (p *Program) SetStorageBuffer(binding int, buffer driver.Buffer) + func (p *Program) SetVertexUniforms(buf driver.Buffer) + type Texture struct — windows/amd64 + func (t *Texture) Release() + func (t *Texture) Upload(offset, size image.Point, pixels []byte)