feedback

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: 12 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 feedback reads zwp_linux_dmabuf_feedback_v1 as a client: the device a compositor renders with and the format and modifier pairs each tranche of devices imports.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderNode

func RenderNode(dev uint64) (string, error)

Types

type Feedback

type Feedback struct {
	Main     uint64
	Tranches []Tranche
}

func Default

func Default(d *wlclient.Display, linux *ld.ZwpLinuxDmabufV1) (Feedback, error)

func (Feedback) Imports

func (f Feedback) Imports(fm gpu.FormatModifier) bool

func (Feedback) Modifiers

func (f Feedback) Modifiers(format fourcc.Format) []fourcc.Modifier

type Listener

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

func NewListener

func NewListener(done func(Feedback) error) *Listener

func (*Listener) Done

func (*Listener) FormatTable

func (l *Listener) FormatTable(_ *ld.ZwpLinuxDmabufFeedbackV1, fd int, size uint32) error

func (*Listener) MainDevice

func (l *Listener) MainDevice(_ *ld.ZwpLinuxDmabufFeedbackV1, b []byte) error

func (*Listener) TrancheDone

func (l *Listener) TrancheDone(*ld.ZwpLinuxDmabufFeedbackV1) error

func (*Listener) TrancheFormats

func (l *Listener) TrancheFormats(_ *ld.ZwpLinuxDmabufFeedbackV1, indices []byte) error

func (*Listener) TrancheTargetDevice

func (l *Listener) TrancheTargetDevice(_ *ld.ZwpLinuxDmabufFeedbackV1, b []byte) error

type Tranche

type Tranche struct {
	Target  uint64
	Formats []gpu.FormatModifier
	Flags   ld.ZwpLinuxDmabufFeedbackV1TrancheFlags
}

Jump to

Keyboard shortcuts

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