Documentation ¶
Index ¶
- type Backend
- 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, desc driver.LoadDesc)
- func (b *Backend) BindImageTexture(unit int, tex driver.Texture)
- func (b *Backend) BindIndexBuffer(buf driver.Buffer)
- func (b *Backend) BindPipeline(pl driver.Pipeline)
- func (b *Backend) BindProgram(prog driver.Program)
- func (b *Backend) BindStorageBuffer(binding int, buf driver.Buffer)
- func (b *Backend) BindTexture(unit int, t driver.Texture)
- func (b *Backend) BindUniforms(buf driver.Buffer)
- func (b *Backend) BindVertexBuffer(buf driver.Buffer, offset int)
- func (b *Backend) BlendFunc(sfactor, dfactor driver.BlendFactor)
- func (b *Backend) Caps() driver.Caps
- func (b *Backend) CopyTexture(dst driver.Texture, dstOrigin image.Point, src 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(typ 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) SetBlend(enable bool)
- func (b *Backend) Viewport(x, y, width, height int)
- type SRGBFBO
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) BeginCompute ¶
func (b *Backend) BeginCompute()
func (*Backend) BeginFrame ¶
func (*Backend) BeginRenderPass ¶
func (*Backend) BindIndexBuffer ¶
func (*Backend) BindPipeline ¶
func (*Backend) BindProgram ¶
func (*Backend) BindStorageBuffer ¶
func (*Backend) BindUniforms ¶
func (*Backend) BindVertexBuffer ¶
func (*Backend) BlendFunc ¶
func (b *Backend) BlendFunc(sfactor, dfactor driver.BlendFactor)
func (*Backend) CopyTexture ¶
func (*Backend) DispatchCompute ¶
func (*Backend) DrawArrays ¶
func (*Backend) DrawElements ¶
func (*Backend) EndCompute ¶
func (b *Backend) EndCompute()
func (*Backend) EndRenderPass ¶
func (b *Backend) EndRenderPass()
func (*Backend) IsTimeContinuous ¶
func (*Backend) NewComputeProgram ¶
func (*Backend) NewFragmentShader ¶
func (*Backend) NewImmutableBuffer ¶
func (*Backend) NewPipeline ¶
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) NewVertexShader ¶
func (*Backend) PrepareTexture ¶
type SRGBFBO ¶
type SRGBFBO struct {
// contains filtered or unexported fields
}
SRGBFBO implements an intermediate sRGB FBO for gamma-correct rendering on platforms without sRGB enabled native framebuffers.
func (*SRGBFBO) Framebuffer ¶
func (s *SRGBFBO) Framebuffer() gl.Framebuffer
Click to show internal directories.
Click to hide internal directories.