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)
Click to show internal directories.
Click to hide internal directories.