triangle-headless

command
v0.26.7 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Command triangle-headless renders a triangle to an offscreen texture and writes the result to a PNG file. Useful for autonomous verification that the GPU stack can create a render pipeline and produce expected pixels — no window needed.

Usage:

GOGPU_GRAPHICS_API=dx12 GOGPU_DX12_DXIL=1 go run . [output.png]

Exit codes:

0 — rendered, PNG written, non-trivial pixel count found
1 — pipeline/render failed (D3D12 rejected DXIL, mapping failed, etc.)
2 — rendered but no non-background pixels (pipeline created but nothing drew)

Jump to

Keyboard shortcuts

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