gpu

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GPUInfo

type GPUInfo struct {
	Vendor GPUVendor
	Name   string
	Driver string // radeonsi, nouveau, i965, etc.
}

GPUInfo contains information about the detected GPU

func DetectGPU

func DetectGPU() GPUInfo

DetectGPU attempts to detect the GPU vendor and driver using multiple methods

func (GPUInfo) GetAV1HardwareCapabilities added in v0.6.0

func (g GPUInfo) GetAV1HardwareCapabilities() map[string]bool

GetAV1HardwareCapabilities returns detailed AV1 capabilities for the GPU

func (GPUInfo) GetVAAPIDriverName

func (g GPUInfo) GetVAAPIDriverName() string

GetVAAPIDriverName returns the appropriate VA-API driver name for the GPU vendor

func (GPUInfo) String

func (g GPUInfo) String() string

String returns a string representation of the GPU info

func (GPUInfo) SupportsAV1Hardware added in v0.6.0

func (g GPUInfo) SupportsAV1Hardware() bool

SupportsAV1Hardware returns true if GPU has hardware AV1 decoding support

func (GPUInfo) SupportsVAAPI

func (g GPUInfo) SupportsVAAPI() bool

SupportsVAAPI returns true if the GPU vendor supports VA-API

type GPUVendor

type GPUVendor string

GPUVendor represents GPU vendor types

const (
	GPUVendorAMD     GPUVendor = "amd"
	GPUVendorNVIDIA  GPUVendor = "nvidia"
	GPUVendorIntel   GPUVendor = "intel"
	GPUVendorUnknown GPUVendor = "unknown"
)

Jump to

Keyboard shortcuts

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