vulkan

package
v1.2.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2026 License: MIT, Unlicense Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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
}

func (*Backend) BeginCompute

func (b *Backend) BeginCompute()

func (*Backend) BeginFrame

func (b *Backend) BeginFrame(target driver.RenderTarget, clear bool, viewport image.Point) driver.Texture

func (*Backend) BeginRenderPass

func (b *Backend) BeginRenderPass(tex driver.Texture, d driver.LoadDesc)

func (*Backend) BindImageTexture

func (b *Backend) BindImageTexture(unit int, tex driver.Texture)

func (*Backend) BindIndexBuffer

func (b *Backend) BindIndexBuffer(buffer driver.Buffer)

func (*Backend) BindPipeline

func (b *Backend) BindPipeline(pipe driver.Pipeline)

func (*Backend) BindProgram

func (b *Backend) BindProgram(prog driver.Program)

func (*Backend) BindStorageBuffer

func (b *Backend) BindStorageBuffer(binding int, buffer driver.Buffer)

func (*Backend) BindTexture

func (b *Backend) BindTexture(unit int, tex driver.Texture)

func (*Backend) BindUniforms

func (b *Backend) BindUniforms(buffer driver.Buffer)

func (*Backend) BindVertexBuffer

func (b *Backend) BindVertexBuffer(buffer driver.Buffer, offset int)

func (*Backend) Caps

func (b *Backend) Caps() driver.Caps

func (*Backend) CopyTexture

func (b *Backend) CopyTexture(dstTex driver.Texture, dorig image.Point, srcFBO driver.Texture, srect image.Rectangle)

func (*Backend) DispatchCompute

func (b *Backend) DispatchCompute(x, y, z int)

func (*Backend) DrawArrays

func (b *Backend) DrawArrays(off, count int)

func (*Backend) DrawElements

func (b *Backend) DrawElements(off, count int)

func (*Backend) EndCompute

func (b *Backend) EndCompute()

func (*Backend) EndFrame

func (b *Backend) EndFrame()

func (*Backend) EndRenderPass

func (b *Backend) EndRenderPass()

func (*Backend) IsTimeContinuous

func (b *Backend) IsTimeContinuous() bool

func (*Backend) NewBuffer

func (b *Backend) NewBuffer(bindings driver.BufferBinding, size int) (driver.Buffer, error)

func (*Backend) NewComputeProgram

func (b *Backend) NewComputeProgram(src shader.Sources) (driver.Program, error)

func (*Backend) NewFragmentShader

func (b *Backend) NewFragmentShader(src shader.Sources) (driver.FragmentShader, error)

func (*Backend) NewImmutableBuffer

func (b *Backend) NewImmutableBuffer(typ driver.BufferBinding, data []byte) (driver.Buffer, error)

func (*Backend) NewPipeline

func (b *Backend) NewPipeline(desc driver.PipelineDesc) (driver.Pipeline, error)

func (*Backend) NewTexture

func (b *Backend) NewTexture(format driver.TextureFormat, width, height int, minFilter, magFilter driver.TextureFilter, bindings driver.BufferBinding) (driver.Texture, error)

func (*Backend) NewTimer

func (b *Backend) NewTimer() driver.Timer

func (*Backend) NewVertexShader

func (b *Backend) NewVertexShader(src shader.Sources) (driver.VertexShader, error)

func (*Backend) PrepareTexture

func (b *Backend) PrepareTexture(tex driver.Texture)

func (*Backend) Release

func (b *Backend) Release()

func (*Backend) Viewport

func (b *Backend) Viewport(x, y, width, height int)

type Buffer

type Buffer struct {
	// contains filtered or unexported fields
}

func (*Buffer) Download

func (b *Buffer) Download(data []byte) error

func (*Buffer) Release

func (b *Buffer) Release()

func (*Buffer) Upload

func (b *Buffer) Upload(data []byte)

type Pipeline

type Pipeline struct {
	// contains filtered or unexported fields
}

func (*Pipeline) Release

func (p *Pipeline) Release()

type Shader

type Shader struct {
	// contains filtered or unexported fields
}

func (*Shader) Release

func (s *Shader) Release()

type Texture

type Texture struct {
	// contains filtered or unexported fields
}

func (*Texture) ImplementsRenderTarget

func (f *Texture) ImplementsRenderTarget()

func (*Texture) ReadPixels

func (t *Texture) ReadPixels(src image.Rectangle, pixels []byte, stride int) error

func (*Texture) Release

func (t *Texture) Release()

func (*Texture) Upload

func (t *Texture) Upload(offset, size image.Point, pixels []byte, stride int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL