device

package
v0.1.18 Latest Latest
Warning

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

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

Overview

Package device creates Direct3D 11 devices: the device of package d3d11's renderer, and that of the Windows backend, which shows the controls of windows with a material through DirectComposition without the renderer. It depends on nothing of Golet, so apps that draw no native UI link none of the renderer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (device, context uintptr, software bool, err error)

New creates a Direct3D 11 device and its immediate context, on the GPU or, when there is none, with Windows' software rasterizer (WARP), which software reports. The caller releases the device and the context.

func NewForVideo added in v0.1.18

func NewForVideo() (device, context uintptr, software bool, err error)

NewForVideo is New for a device that decodes and converts video, as Media Foundation's: one that supports Direct3D's video API where the GPU has it, else as New.

func NewOnGPU added in v0.1.18

func NewOnGPU() (device, context uintptr, err error)

NewOnGPU is New for a device on the GPU only: it fails where New would make one with WARP.

func SystemDir

func SystemDir() string

SystemDir returns the system directory, which system DLLs load from, never from the application directory or the search path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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