Versions in this module Expand all Collapse all v0 v0.1.0 Sep 27, 2026 Changes in this version + var ErrClosed = errors.New("gpuimage: renderer closed") + var ErrNoAdapter = errors.New("gpuimage: no GPU adapter available") + type Error struct + Err error + Op string + func (e *Error) Error() string + func (e *Error) Unwrap() error + type Frame struct + Color *wgpu.TextureView + Depth *wgpu.TextureView + Device *wgpu.Device + Encoder *wgpu.CommandEncoder + Height int + Seq uint64 + Width int + type Options struct + Backends gputypes.Backends + Depth bool + ForceFallback bool + Height int + Label string + PowerPreference gputypes.PowerPreference + Width int + type Renderer struct + func New(ctx context.Context, opts Options) (*Renderer, error) + func (r *Renderer) AdapterInfo() gputypes.AdapterInfo + func (r *Renderer) Close() error + func (r *Renderer) Do(f func(dev *wgpu.Device) error) error + func (r *Renderer) ReadPixels(ctx context.Context) (*image.NRGBA, Stats, error) + func (r *Renderer) Render(ctx context.Context, draw func(*Frame) error) (*image.NRGBA, Stats, error) + func (r *Renderer) RenderToTexture(ctx context.Context, draw func(*Frame) error) (Stats, error) + func (r *Renderer) Resize(w, h int) error + func (r *Renderer) Size() (w, h int) + func (r *Renderer) UploadTexture(src image.Image, opts TextureOptions) (*Texture, error) + type Stats struct + BytesPerRow int + Copy time.Duration + Draw time.Duration + Map time.Duration + Seq uint64 + Submit time.Duration + Total time.Duration + type Texture struct + func (t *Texture) BindGroup() *wgpu.BindGroup + func (t *Texture) BindGroupLayout() *wgpu.BindGroupLayout + func (t *Texture) Close() error + func (t *Texture) ReadPixels(ctx context.Context) (*image.NRGBA, error) + func (t *Texture) Size() (int, int) + func (t *Texture) Update(src image.Image) error + type TextureOptions struct + Filter gputypes.FilterMode