virtual

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT, MIT Imports: 8 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

Overview

Package virtual is an output that exists only in memory: whatever backend runs the session, it renders offscreen with the session's renderer, paced by its own frame clock at its mode's refresh rate, and never presents.

Index

Constants

View Source
const (
	MaxEdge       = 16384
	MaxRefreshMHz = 1000000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Frame(o backend.Output) error
	Presented(o backend.Output, p backend.Presentation) error
}

type Output

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

func New

func New(l *loop.Loop, r render.Renderer, h Handler, name string, m backend.Mode) (*Output, error)

func (*Output) AbortFrame

func (o *Output) AbortFrame()

func (*Output) BeginFrame

func (o *Output) BeginFrame() (backend.Frame, error)

func (*Output) Close

func (o *Output) Close() error

func (*Output) Commit

func (o *Output) Commit(s backend.OutputState) error

func (*Output) CursorPlane

func (*Output) CursorPlane() (backend.CursorPlane, error)

func (*Output) Description

func (o *Output) Description() string

func (*Output) Frames

func (o *Output) Frames() uint64

func (*Output) Identity

func (*Output) Identity() edid.Info

func (*Output) Modes

func (o *Output) Modes() []backend.Mode

func (*Output) Name

func (o *Output) Name() string

func (*Output) PhysicalSize

func (*Output) PhysicalSize() image.Point

func (*Output) Present

func (o *Output) Present(render.Region) error

func (*Output) Renew

func (o *Output) Renew() error

func (*Output) ScheduleFrame

func (o *Output) ScheduleFrame() error

func (*Output) State

func (o *Output) State() backend.OutputState

Jump to

Keyboard shortcuts

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