Documentation ¶
Index ¶
- type Backend
- 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(l driver.InputLayout)
- func (b *Backend) BindProgram(prog driver.Program)
- func (b *Backend) BindTexture(unit int, t driver.Texture)
- func (b *Backend) BindVertexBuffer(buf driver.Buffer, stride, offset int)
- func (b *Backend) BlendFunc(sfactor, dfactor driver.BlendFactor)
- func (b *Backend) BlitFramebuffer(dst, src driver.Framebuffer, srect, drect image.Rectangle)
- func (b *Backend) Caps() driver.Caps
- func (b *Backend) Clear(colR, colG, colB, colA float32)
- func (b *Backend) ClearDepth(d 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(src 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(vs driver.ShaderSources, layout []driver.InputDesc) (driver.InputLayout, error)
- func (b *Backend) NewProgram(vertShader, fragShader 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 Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend implements driver.Device.
func (*Backend) BeginFrame ¶
func (b *Backend) BeginFrame() driver.Framebuffer
func (*Backend) BindFramebuffer ¶
func (b *Backend) BindFramebuffer(fbo driver.Framebuffer)
func (*Backend) BindImageTexture ¶
func (b *Backend) BindImageTexture( unit int, tex driver.Texture, access driver.AccessBits, f driver.TextureFormat, )
func (*Backend) BindIndexBuffer ¶
func (*Backend) BindInputLayout ¶
func (b *Backend) BindInputLayout(l driver.InputLayout)
func (*Backend) BindProgram ¶
func (*Backend) BindVertexBuffer ¶
func (*Backend) BlendFunc ¶
func (b *Backend) BlendFunc(sfactor, dfactor driver.BlendFactor)
func (*Backend) BlitFramebuffer ¶
func (b *Backend) BlitFramebuffer( dst, src driver.Framebuffer, srect, drect image.Rectangle, )
func (*Backend) ClearDepth ¶
func (*Backend) DispatchCompute ¶
func (*Backend) IsTimeContinuous ¶
func (*Backend) MemoryBarrier ¶
func (b *Backend) MemoryBarrier()
func (*Backend) NewComputeProgram ¶
func (*Backend) NewFramebuffer ¶
func (*Backend) NewImmutableBuffer ¶
func (*Backend) NewInputLayout ¶
func (b *Backend) NewInputLayout( vs driver.ShaderSources, layout []driver.InputDesc, ) (driver.InputLayout, error)
func (*Backend) NewProgram ¶
func (*Backend) NewTexture ¶
func (b *Backend) NewTexture( format driver.TextureFormat, width, height int, minFilter, magFilter driver.TextureFilter, binding driver.BufferBinding, ) (driver.Texture, error)
func (*Backend) SetDepthTest ¶
Click to show internal directories.
Click to hide internal directories.