Documentation
¶
Index ¶
- type Engine
- func (eng *Engine) RenderToSurface(arena *mem.Arena, queue *wgpu.Queue, enc *encoding.Encoding, ...)
- func (eng *Engine) RenderToTexture(arena *mem.Arena, queue *wgpu.Queue, enc *encoding.Encoding, ...) *wgpu.CommandBuffer
- func (eng *Engine) RunRecording(arena *mem.Arena, queue *wgpu.Queue, recording renderer.Recording, ...) *wgpu.CommandBuffer
- type ExternalBuffer
- type ExternalImage
- type ExternalResource
- type Profiler
- type ProfilerGroup
- func (g *ProfilerGroup) Begin(enc *wgpu.CommandEncoder, label string) ProfilerSpan
- func (g *ProfilerGroup) Compute(arena *mem.Arena, label string) *wgpu.ComputePassTimestampWrites
- func (g *ProfilerGroup) End()
- func (g *ProfilerGroup) Nest(label string) *ProfilerGroup
- func (g *ProfilerGroup) Render(arena *mem.Arena, label string) *wgpu.RenderPassTimestampWrites
- func (g *ProfilerGroup) Start(label string) profiler.ProfilerGroup
- type ProfilerQuery
- type ProfilerQueryResult
- type ProfilerResult
- type ProfilerSpan
- type RendererOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
func (*Engine) RenderToSurface ¶
func (eng *Engine) RenderToSurface( arena *mem.Arena, queue *wgpu.Queue, enc *encoding.Encoding, surface *wgpu.SurfaceTexture, params *renderer.RenderParams, pgroup *ProfilerGroup, )
func (*Engine) RenderToTexture ¶
func (eng *Engine) RenderToTexture( arena *mem.Arena, queue *wgpu.Queue, enc *encoding.Encoding, texture *wgpu.TextureView, params *renderer.RenderParams, pgroup *ProfilerGroup, ) *wgpu.CommandBuffer
func (*Engine) RunRecording ¶
func (eng *Engine) RunRecording( arena *mem.Arena, queue *wgpu.Queue, recording renderer.Recording, externalResources []ExternalResource, label string, pgroup *ProfilerGroup, ) *wgpu.CommandBuffer
type ExternalBuffer ¶
type ExternalBuffer struct { Proxy renderer.BufferProxy Buffer *wgpu.Buffer }
type ExternalImage ¶
type ExternalImage struct { Proxy renderer.ImageProxy View *wgpu.TextureView }
type ExternalResource ¶
type ExternalResource interface { }
type Profiler ¶
type Profiler struct {
// contains filtered or unexported fields
}
func NewNopProfiler ¶
func NewNopProfiler() *Profiler
func NewProfiler ¶
func (*Profiler) Collect ¶
func (p *Profiler) Collect() []ProfilerResult
Collect returns all available profiler results. The return value is only valid until the next call to Collect.
func (*Profiler) Resolve ¶
func (p *Profiler) Resolve(enc *wgpu.CommandEncoder)
func (*Profiler) Start ¶
func (p *Profiler) Start(tag uint64) *ProfilerGroup
type ProfilerGroup ¶
func (*ProfilerGroup) Begin ¶
func (g *ProfilerGroup) Begin(enc *wgpu.CommandEncoder, label string) ProfilerSpan
func (*ProfilerGroup) Compute ¶
func (g *ProfilerGroup) Compute(arena *mem.Arena, label string) *wgpu.ComputePassTimestampWrites
func (*ProfilerGroup) End ¶
func (g *ProfilerGroup) End()
func (*ProfilerGroup) Nest ¶
func (g *ProfilerGroup) Nest(label string) *ProfilerGroup
func (*ProfilerGroup) Render ¶
func (g *ProfilerGroup) Render(arena *mem.Arena, label string) *wgpu.RenderPassTimestampWrites
func (*ProfilerGroup) Start ¶
func (g *ProfilerGroup) Start(label string) profiler.ProfilerGroup
type ProfilerQuery ¶
type ProfilerQuery struct { Label string // contains filtered or unexported fields }
type ProfilerQueryResult ¶
type ProfilerResult ¶
type ProfilerResult struct { Tag uint64 Label string CPUStart time.Time CPUEnd time.Time Queries []ProfilerQueryResult Children []ProfilerResult }
type ProfilerSpan ¶
type ProfilerSpan struct {
// contains filtered or unexported fields
}
func (ProfilerSpan) End ¶
func (span ProfilerSpan) End(enc *wgpu.CommandEncoder)
type RendererOptions ¶
type RendererOptions struct { SurfaceFormat wgpu.TextureFormat UseCPU bool }
Click to show internal directories.
Click to hide internal directories.