Help us shape the future of Go! Take the 2026 Go Developer Survey

internal/

directory
v0.21.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT

Directories

Path Synopsis
cmd
corpussync command
Command corpussync maintains the Rust naga test corpus vendored under snapshot/testdata (ADR-006).
Command corpussync maintains the Rust naga test corpus vendored under snapshot/testdata (ADR-006).
Package consteval evaluates WGSL const-expressions: the shader-creation-time evaluation that the WGSL specification requires for const declarations and that naga also applies to constant operands in function bodies.
Package consteval evaluates WGSL const-expressions: the shader-creation-time evaluation that the WGSL specification requires for const declarations and that naga also applies to constant operands in function bodies.
Package d3d holds cross-backend constants and helpers shared between naga's text backends (HLSL) and binary backends (DXIL) that both target the D3D ecosystem.
Package d3d holds cross-backend constants and helpers shared between naga's text backends (HLSL) and binary backends (DXIL) that both target the D3D ecosystem.
Package dxcvalidator wraps Microsoft's IDxcValidator (dxil.dll) so naga can run real DXIL validation against generated containers from Pure Go.
Package dxcvalidator wraps Microsoft's IDxcValidator (dxil.dll) so naga can run real DXIL validation against generated containers from Pure Go.
bitcheck
Package bitcheck implements a minimal LLVM 3.7 bitstream reader that walks a DXIL container far enough to verify the `!dx.entryPoints` named metadata is well-formed — specifically that every entry-point tuple has a non-null function reference in operand 0.
Package bitcheck implements a minimal LLVM 3.7 bitstream reader that walks a DXIL container far enough to verify the `!dx.entryPoints` named metadata is well-formed — specifically that every entry-point tuple has a non-null function reference in operand 0.
Package entrypoint selects the entry point a backend writes, the meaning of every backend's Options.EntryPoint (backend.EntryPointSelector).
Package entrypoint selects the entry point a backend writes, the meaning of every backend's Options.EntryPoint (backend.EntryPointSelector).
Package irutil holds the IR helpers and passes that naga's own frontends, backends and pipeline-constant processing share and that are not part of the public ir package: ir keeps the data model, validation, type resolution and the few helpers a frontend or backend outside naga needs (ADR-010 B7).
Package irutil holds the IR helpers and passes that naga's own frontends, backends and pipeline-constant processing share and that are not part of the public ir package: ir keeps the data model, validation, type resolution and the few helpers a frontend or backend outside naga needs (ADR-010 B7).
Package overrides replaces pipeline-overridable constants by their values: a port of Rust naga's back::pipeline_constants::process_overrides on the shared constant evaluator (ADR-008).
Package overrides replaces pipeline-overridable constants by their values: a port of Rust naga's back::pipeline_constants::process_overrides on the shared constant evaluator (ADR-008).
Package readback reads the GPU readback corpus under testdata/readback: small compute shaders with the values a GPU must write when it runs them.
Package readback reads the GPU readback corpus under testdata/readback: small compute shaders with the values a GPU must write when it runs them.
Package registry provides type deduplication for the naga IR.
Package registry provides type deduplication for the naga IR.
Package ssa holds the two expression kinds the DXIL backend adds to a function when it promotes local variables to SSA values: Alias and Phi.
Package ssa holds the two expression kinds the DXIL backend adds to a function when it promotes local variables to SSA values: Alias and Phi.
Package testcorpus records and verifies the provenance of the test corpus under snapshot/testdata (ADR-006).
Package testcorpus records and verifies the provenance of the test corpus under snapshot/testdata (ADR-006).
Package testtools gives tests one policy for external tools (spirv-val, spirv-dis, dxc, ...), in the spirit of Go's internal/testenv.
Package testtools gives tests one policy for external tools (spirv-val, spirv-dis, dxc, ...), in the spirit of Go's internal/testenv.
Package textutil provides shared text writing utilities for naga codegen backends.
Package textutil provides shared text writing utilities for naga codegen backends.
Package typifier types the expressions of an IR function: Rust naga's Typifier (front/mod.rs) with the rules of proc::ResolveContext::resolve (proc/typifier.rs).
Package typifier types the expressions of an IR function: Rust naga's Typifier (front/mod.rs) with the rules of proc::ResolveContext::resolve (proc/typifier.rs).
Package unsupported builds the backends' refusals: errors that wrap backend.ErrUnsupported while keeping their message as written.
Package unsupported builds the backends' refusals: errors that wrap backend.ErrUnsupported while keeping their message as written.

Jump to

Keyboard shortcuts

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