device

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 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 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