dx12

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: GPL-3.0 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

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasRendererShaders added in v1.2.0

func HasRendererShaders() bool

HasRendererShaders reports whether the build embeds the renderer's compiled entry points, a file in the directory besides the placeholder.

func Open

func Open(shaders fs.FS) (hostgpu.Device, error)

Open creates the device on the first hardware adapter with the compiled entry points in shaders, by name: RendererShaders for the renderer, a test's own set for the conformance entries. Every failure is an error, and one that means no usable device wraps ErrUnavailable.

func RendererShaders

func RendererShaders() fs.FS

RendererShaders is the renderer's compiled entry points by name, or the reporting set when the directory holds only the placeholder.

func Warm added in v1.2.0

func Warm() error

Warm opens a device and closes it, so the libraries, the adapter's driver, and the fill pipeline are loaded and built once before the first Open the renderer makes. A failure is returned; Open reports the same failure when it is made.

Types

This section is empty.

Jump to

Keyboard shortcuts

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