Caution
This is a pure-vibed project, so don't have too high expectations for it. If you really need it, it's better to just honestly use SPIR-V as an intermediate.
A GLSL-to-HLSL converter written in pure Zig 0.17.0. It does not call shaderc, SPIRV-Cross, or DXC: it preprocesses GLSL, parses it into an AST, and emits HLSL directly.
The project builds as a library with a C ABI and a header-only C++ wrapper. The C header requires C23; the C++ wrapper requires C++23 and is tested with C++26. Stage 1 covers common vertex and fragment shader constructs: uniforms and samplers, stage inputs and outputs, matrix and vector constructors, common intrinsics, texture sampling, and control flow.
- Zig 0.17.0
- C23 for C consumers
- C++23 or newer for C++ consumers; C++26 is tested
The installed headers reject older language standards at compile time.
zig build -Doptimize=ReleaseSafeArtifacts:
| Path | Contents |
|---|---|
zig-out\lib\glsl2hlsl.lib |
Static library |
zig-out\include\glsl2hlsl\glsl2hlsl.h |
C23 header |
zig-out\include\glsl2hlsl\glsl2hlsl.hpp |
C++23 header-only wrapper |
Use -Dshared=true for a DLL and import library, or -Dcli=true to also build the command-line tool.
#include <glsl2hlsl/glsl2hlsl.hpp>
glsl2hlsl::Result result =
glsl2hlsl::convert(source, glsl2hlsl::Stage::Fragment);
if (!result) {
for (const auto &diagnostic : result.diagnostics) {
// diagnostic.line / column / message
}
}
std::cout << result.output;The C ABI owns the result memory; release it with glsl2hlsl_result_free. The C++ wrapper handles that automatically.
glsl2hlsl_result result = {};
if (glsl2hlsl_convert(source, length, GLSL2HLSL_STAGE_FRAGMENT, &result)
== GLSL2HLSL_STATUS_OK) {
fwrite(result.output, 1, result.output_length, stdout);
}
glsl2hlsl_result_free(&result);Command-line tool:
zig build -Dcli=true
.\zig-out\bin\glsl2hlsl.exe shader.vert
.\zig-out\bin\glsl2hlsl.exe shader.frag -o shader.hlsl -s fragmentDetailed documentation is currently in Chinese:
- docs/README.md: project overview and layout
- docs/usage.md: CLI, stage inference, and Zig API
- docs/cpp-api.md: C ABI, C++ wrapper, linking, and ownership
- docs/design.md: implementation and design decisions
- docs/glsl-hlsl-mapping.md: GLSL-to-HLSL mapping rules
- docs/dxil.md: pure Zig DXIL compilation, reflection, OpenGL state mapping, and hardware acceptance
- docs/m4.md: memory VFS/macros, bounded sessions, Minecraft/Iris support matrix, and reproducible benchmarks
See README_zh.md for this README in Chinese.
zig build test
zig build c-test
zig build cpp-test
powershell -File tests/run.ps1cpp-test builds the same interoperability test with both -std=c++23 and -std=c++26. tests/run.ps1 also converts every shader under tests/shaders and examples, validating the output with dxc.exe when it is available.
The experimental DXIL backend compiles paired GLSL vertex/pixel sources directly to SM 6.5 / DXIL 1.5 or SM 6.9 / DXIL 1.9. It supports typed SSA, functions and control flow, float matrices, reflected uniforms, sampler2D descriptor tables, and configurable OpenGL coordinate/draw state. SM 6.9 retains native float/int vector arithmetic and supports explicitly selected direct descriptor heap indexing. Zig uses compileGraphics; C uses glsl2hlsl_dxil_compile_graphics or the extended _ex request; C++23/26 provides a move-only GraphicsResult. Upload uniforms using reflected offsets and strides, and query execution requirements before selecting device and root signature settings.
Run zig build test c-test cpp-test dxil-c-test dxil-source-fixtures, zig build dxil-source-bench -Doptimize=ReleaseSafe, or pwsh -NoProfile -File tests/dxil/run.ps1 for Windows validator and hardware acceptance, including the existing 10 shaders and 96 OpenGL state combinations. The script compares layouts, interfaces, pixels and depth across both targets and both SM 6.9 binding modes; it downloads a pinned Agility SDK for the test renderer and requires SM 6.9 hardware for full acceptance. The compiler core has no DXC/LLVM dependency; official tools are used only during development. General GLSL/package compatibility, non-std140 uniform blocks, SSBOs, sampler arrays, nonuniform resource indexing, and dynamic writes to local aggregates remain unsupported; see the support contract and SM 6.9 host requirements.
The DXIL v2 request adds memory includes, function macros, source mappings, bounded cache sessions and optional safe optimization, preserving existing C ABI layouts. C++ exposes CompileSession and additional GraphicsRequest fields. With the two supplied archives under example_shaderpack/, run pwsh -NoProfile -File tests/dxil/m4.ps1 -AuditOnly for the default pinned Minecraft 26.3 source audit; omit -AuditOnly for validator, benchmark and GPU acceptance. All 26/26 same-stem VS/PS pairs pass six target/optimization configurations, and all 312 Minecraft containers pass official validation. Eight unchanged host program pairs pass 428 distinct GPU scenes per configuration, covering color/fog/discard, R8_SINT clouds, official panorama faces/seams/corners, terrain RGSS/mips, entity lighting/overlay and upload sequences, lightmap clamp boundaries, the actual atlas blit pair and lightmap producer/consumer matrices. Packed vertex streams, RGBA8 fixtures, real block/entity pixels with final draw samplers, multidraw instances and selected blend/depth/cull states are exercised.
Twelve entity snapshots verify a synthetic DynamicTexture-compatible upload protocol on the same texture and descriptors: initial/full/unchanged/partial/cutout/restored states at 16×16 and 19×13; eight malformed-upload cases are rejected per configuration. These checks consume uploaded bytes with unchanged entity shaders; they do not execute Minecraft's NativeImage producer or OverlayTexture constructor. Full D3D acceptance includes the finite lightmap matrices across eight configurations: 3424 Minecraft comparisons, 4552 total GPU comparisons, plus 192 separately reported boundary observations, for 4744 GPU executions. All 816 runtime containers pass official validation; acceptance evidence is recorded in the M4 contract.
The lightmap chain uses unchanged screenquad/lightmap shaders to render a retained 16×16 RGBA8 GPU texture, then binds that same resource to unchanged packed terrain/entity consumers. Five producer snapshots and 40 consumer scenes cover initial-white skip, update A, changed-parameters skip, update B and restore A; skip/restore compare exact GPU bytes. A/B are asymmetric finite synthetic shader inputs, with independent CPU formulas, rather than a replay of the game's parameter producer. The native LightmapInfo payload is 92 bytes, its reflected std140 block is 96 bytes, and the D3D test host uses 256-byte CBV allocation/alignment. The GL reference harness uploads 96 bytes; it does not replay Minecraft's native allocation. Submissions wait for fences before reuse; asynchronous three-slot ring behavior remains pending.
Full 26.3 hardware acceptance also requires JDK 25 for test fixtures and the 54-class host bytecode audit. It uses unmodified client classes to generate both 2048×2048/five-mip and 2048×1024/four-mip blocks atlas profiles, each with 1310 sprites and pinned hashes. CPU assembly selects the first metadata animation frame, including index 16 for fire/soul_fire, and is checked with selected official sprite blits and unchanged terrain shaders; the controlled 32×16 single-mip regression fixture remains. F0–F7 and twelve lightmap boundary profiles have D3D evidence; their controlled inputs and partial source-factor reconstruction retain separate scope from the actual parameter and Overlay results described below. Animation, filtering configurations, complete game GPU atlas construction, general bindings, resource lifetimes and OIT have separate gates in the host contract. Java and its libraries are development tools only. Historical 1.21.4 remains selectable with -MinecraftVersion 1.21.4.
Run pwsh -NoProfile -File tests/dxil/m4.ps1 -OpenGLReference to add the lightmap OpenGL reference to full 26.3 acceptance. The 2026-11-03T06:29:01.2513112Z report passed on one NVIDIA GeForce RTX 5070 Laptop GPU WGL context: 40 GL receipts, 256 cross-API comparisons, 65536 texels, 432 matching zero-domain RGB components with 0 mismatches, maximum finite float error 2.980232238769531e-7, and maximum RGBA8 byte difference 1. This Windows x64/JDK 25/OpenGL 3.3 path uses the unmodified official GLSL→SPIR-V frontend and GlPipelineRecompiler; twenty RGBA8 and twelve boundary RGBA32_FLOAT results are compared with all eight D3D configurations, while the eight finite RGBA32_FLOAT results are observations only because D3D has no matching format. Source/dependency hashes, device identity, compile/link logs and raw bytes are retained under zig-out/m4/minecraft-26.3/lightmap-reference/. One GL context does not cover Intel OpenGL, actual game parameter production, joint reachability or whole-game equivalence; see reference scope.
An independent Java observer now captures bounded overworld-demo, nether-demo, and end-demo profiles in fresh 26.3 demo worlds, preserving the producer's method bytecode. Each profile records 256 consecutive events after 40 player ticks of dimension warmup, starting at a real production: 87/169, 89/167, and 86/170 produced/skipped events, respectively. Dimension, player ticks, effect absence, source float bits, the official Mth table, readiness/completion, and 92-byte writer payloads are independently verified. Start with pwsh -NoProfile -File tests/dxil/minecraft/26.3/prepare_lightmap_producer.ps1 -Profile nether-demo; see capture commands and scope for the selected positions and spectator mode.
The three profiles pass 57824 D3D comparisons across eight configurations and 4192 GL/D3D comparisons, including direct terrain/entity consumption, exact skip retention and restoration. Each replay validates 48 DXIL containers and rejects 48 damaged signatures. Use run_lightmap_replay.ps1 or provide both capture paths to m4.ps1, adding -OpenGLReference for GL. Full M4 with E0 passes; the separate three-profile matrix links its baseline and individual reports without mixing counters into the 428-scene baseline. Other effect combinations, zero-domain reachability, native game allocation/submission and other GL drivers remain pending. See replay commands and evidence.
E1 separately verifies end-flash-demo, end-flash-hidden-demo and end-flash-boss-demo: each contains 86 actual positive-flash productions and 170 skips. The observer records the actual default-clock argument, seeded flash parameters, sine lookup and boss events; independent checks reconstruct normal, hidden-option and real dragon-fog /3 branches. The three replays pass 57792 D3D comparisons and 4128 GL/D3D comparisons, each validating 48 DXIL containers and rejecting 48 damaged signatures. lightmap-e1-matrix.json links these reports to the existing passed E0 full M4 baseline; this round does not rerun full M4 or expand its counters. New collector tooling requires fresh preparation/captures; historical hashes remain intact. Later NV/CV and DARKNESS results are listed separately. See E1 evidence and scope.
Long/tail night vision and conduit/water vision pass actual source verification with 45/49/52 source rejection cases. Their independent replays pass 19272/153096/153104 D3D comparisons and 1392/10992/11008 GL/D3D comparisons, respectively, each accepting 48 DXIL containers and rejecting 48 damaged signatures. The completed effects matrix totals 325472 D3D / 23392 GL-D3D comparisons and rejects 18 damaged matrices. The domain inspector preserves every event; all three NV/CV captures are finite candidates. These results retain separate counters from the historical 428-scene baseline.
DARKNESS captures actual player effects at options 0/0.5/1 through one observation agent, preserving original extractor/blending code and recording actual packets, ticks, producer getters and cosine results. Each capture contains 1024 events: 452/572, 397/627 and 446/578 productions/skips. All three sources and classified replays pass: 77488/77048/77440 D3D executions and 7232/6352/7136 GL/D3D comparisons, with 48 accepted DXIL containers and 48 damaged signatures rejected per profile. The middle/full profiles contain 17/18 real zero-domain payloads; middle also retains boundary texel observations within those payloads. Twelve full-profile actual-readback corruption cases pass; finite, NaN/Inf, RGBA8 and direct-consumer counts remain separate. C++/C# classification agrees on 1320 inputs and 54 classified-evidence negatives pass. See actual DARKNESS commands.
Actual Wither screen-darkening sources pass 933/91 productions/skips, including natural boss add/remove packets, fade-in, steady state, fade-out and the original negative float32 tail. Thirty-two generic and 26 dedicated boss source negatives pass; classified replay passes 81336 D3D executions and 14928 GL/D3D comparisons, with 48 accepted containers and 48 damaged signatures rejected. Thirteen actual finite-readback corruption cases pass without additional GPU executions. The four-profile matrix verifies 313312 D3D executions / 35648 GL comparisons and 46 rejection cases. Isolated classified C5 passes full acceptance on 2026-11-04, retaining 428 scenes per configuration; its fresh actual DK-full replay separately records 77440 D3D executions / 7136 GL comparisons. Historical files and frozen inputs remain unchanged. Actual Overlay source verification passes two normal startups, each with 256 exact pixels / 1024 bytes / eight nested upload events, plus 59 source rejection cases. Frozen agent builds are byte-identical, with six audited classes and 144 original method-code projections. Original Overlay bytes also pass 1024 entity GPU comparisons across eight execution configurations, with 16 accepted containers and 16 damaged signatures rejected. Independent RGBA/color/depth checks and 63 GPU/provenance/parser rejection cases pass. Native startup failures, the debugger diagnostic and the incomplete first GPU run retain separate identities. Isolated C6 full M4 integration passes at 2026-11-04T05:51:48.24734Z, preserving the 428-scene baseline and reporting Overlay counts separately; its completion receipt pins the actual exit, frozen inputs and unchanged historical artifacts.
U6 actual game draw verification also passes: two isolated demos produce three nonempty native indexed draws / 126 ordered events, each draw with 396 indices, with both game processes exiting normally. Ten class audits, 236 original Code projections, 12 observed methods, deterministic builds and 50 dynamic rejection cases pass. The original upload texture joins the prepared view, named Sampler1, actual uniform index 5, texture unit 1, sampler state and native call return; indices and units are read from each running pipeline. These observations add no pixel GPU comparisons and preserve the C6 evidence. The declared Overlay gate is closed; animation and interpolation pass as described below. Current work is filtering, followed by bindings/lifetimes, OIT and Iris. See the 26.3 execution queue and upload commands and evidence.
Animation A1/A2 pass separately: four original sprites, 747 reproducible payload files, and two interpreted clients with 260 normal atlas cycles / 4131 native nonindexed draws / 35664 events, both exiting with code 0. Original Code projections, quantized nonzero firstVertex values and 36 UBO mip slices pass; 41 input rejection cases and 26 event rejection cases per profile pass. Earlier native exits and incomplete captures retain their own records. These capture phases add no pixel GPU comparisons.
A3/A4 now close the selected four-sprite animation gate: eight configurations pass 33048 native update submissions / 9432 complete mip snapshots / 13824 terrain consumers, totaling 23256 pixel-comparison scenes, with 64 official accepts / 64 damaged-signature rejects. Twenty-eight replay rejection cases, one legal representation and five integration-option rejections pass. A fresh isolated C7 exits with code 0 and preserves 428 scenes/configuration / 4744 baseline GPU executions / 1260 baseline artifacts, separately from the reused animation evidence. The completion is animation-replays/acceptance-a3-a4-20261104-a/completion.json; serial fences and the selected profiles retain their scope. See animation evidence and scope.
For OpenGL conversion with a nonzero first vertex, use glsl2hlsl_dxil_prepare_gl_draw_state(state, vertex_id_offset, prepared) or C++ prepare_gl_draw_state; pass the original first vertex to the draw as well. The compatibility upload supplies the offset used by gl_VertexID/gl_VertexIndex, while existing C structure sizes remain unchanged. The next filtering work package fixes mip levels 0–4, NONE/RGSS/ANISOTROPIC options, original atlas padding and device-limited sampler values before GPU acceptance.
Filtering F1 has reproducible contracts for 11 original classes / 14 methods / 25 representative requests and one measured WGL context with anisotropy limit 16 and texture limit 32768, using the original EXT rule. F2 passes: 20 original resource requests / 15 distinct atlas payloads / 140 byte-identical reproduced files, including a preparation started outside the repository. Each preparation independently checks 529399808 atlas pixel bytes / 78600 physical frame origins / 240 original UBO slices; 39 meaningful rejections and one legal representation pass. F1/F2 add no game draws or GPU comparisons.
F3 accepts ten axis-aligned NONE/RGSS profiles: 240 scenes across eight hardware configurations produce 1920 fresh GPU comparisons / 491520 pixels, independently checked against regenerated numerical expectations, all UBO bytes and raw color/depth readbacks. Official validation accepts 32 unchanged containers and rejects 32 rehashed damaged signatures; 44 semantic rejection cases, one legal JSON representation and five actual wrong-filter GPU draws pass their intended gates. Earlier development runs keep separate counts. Affine derivatives and device-specific implicit LOD references, anisotropic filtering, actual option transitions, final bindings and isolated integration retain separate acceptance gates.
The declared four affine derivative families also pass: 600 scenes per configuration add 4800 comparisons / 1228800 pixels. 200 independent DXC LOD reference draws account for device-dependent implicit sampling LOD; analytical per-pixel filtering bounds remain in force. All packed vertex bytes and six full UBOs are checked; seven rehashed evidence mutations, one legal representation and eight actual flattened-gradient draws reach their expected outcomes. Validation accepts another 32 converted containers and two DXC reference containers, rejecting 34 damaged signatures. Anisotropic bit1/2/3 references and the later host gates remain pending.
Historical producer verification and sampler observations now preserve the accepted archives while the shared host evolves: explicit pinned completions, 13 provenance rejections, two historical verifications and two frozen renderer rebuilds pass. Explicit MaxAnisotropy and complete descriptor captures pass 64 state observation draws across eight configurations on two devices, with 16 containers accepted and 16 damaged signatures rejected. These observations add zero pixel-equivalence comparisons; independent anisotropic DXC/GL references and the complete resource matrix remain pending.
Independent anisotropic D3D references subsequently pass the complete mip0–4/bit1–3 matrix: 1440 comparisons across eight configurations, plus 360 independent DXC reference draws. Per-device reference, depth and target/optimization results match exactly; 35 original containers pass validation, 35 damaged signatures and 18 CPU record mutations are rejected. Historical producer coverage also extends to the sampler archive, with three verifications/rebuilds and 16 provenance rejections. The new matrix has its own pinned historical report; GL references, intentionally incorrect GPU witnesses, setting transitions and isolated full integration retain separate pending gates. Results do not claim identical sampling kernels across devices.
Official terrain GL references now record 360 draws / 92160 pixel positions across two actual devices, plus eight coordinate probes, matched to the D3D archive by LUID and driver identity. Independent rebuilds, complete texture/upload/state/readback checks and 31 rejection cases per device, 62 total, pass. Cross-API pixel equivalence remains unaccepted at the fixed 0.0002 budget: NVIDIA has four affected scenes, maximum color difference 0.004318296909332275; Intel has 96, maximum 0.0696357786655426, plus 36 retention disagreements. The joint completion preserves observation status. A separately counted minLOD control experiment leaves all raw draw/mip bytes unchanged; upstream coordinates and frozen textureGrad replay have separate diagnostic gates before incorrect GPU witnesses and later host/Iris gates.
Full sampleNearest coordinate diagnostics separately record 360 GL, 360 converted D3D and 360 independent DXC draws / 92160 corresponding pixel positions. Independent executable/DXIL rebuilds, complete raw re-verification and 20 evidence rejection cases per device, 40 total, pass. Converted and DXC coordinates agree exactly on both devices. GL differs by four adjusted-UV and 32 signed-gradient components on NVIDIA, and two adjusted-UV components on Intel; rounded texels agree throughout. The matrix hits no round midpoints. These instrumented observations retain all original uploads, samplers, mip readbacks and native depth; their effects on color and cutout are measured separately by frozen replay.
Frozen textureGrad replay adds 8640 GPU draws: 2880 GL, 2880 converted D3D and 2880 independent DXC, with exact float input echoes. Same-API replay reproduces every original color and retention decision exactly; independent executable/DXIL rebuilds, raw re-verification and 132 CPU evidence rejection cases pass across both phases. Shared inputs remove all NVIDIA cross-API differences; horizontal-gradient substitutions reproduce the original four affected scenes. Intel's per-API outputs remain unchanged by every substitution, while shared-input comparisons retain maximum color error 0.0696357786655426 and 36 retention disagreements. The original 0.0002 budget and F3.4 observations remain in force.
Actual-sampling derivative diagnostics add 3360 full-matrix GPU draws: 1440 GL, 480 converted D3D and 1440 independent DXC. Default capture reproduces each API exactly; independent rebuilds, complete raw verification, 68 CPU evidence rejections, 22 artifact accepts and 22 damaged-signature rejections pass. Raw interpolated UV bits agree across APIs. NVIDIA's default GL matches fine derivatives; independent DXC fine removes every original color difference, while GL/D3D coarse select different quad rows. Intel's three modes produce unchanged per-API outputs and retain all 36 cross-API retention disagreements. D1's fine path is an independent reference; the converter implementation and its regression are recorded in P4. Intel filtering and actual round midpoints have separate S1/R1 results.
Mip/filter separation adds 19584 full-matrix GPU draws: 6528 each for GL, converted D3D and independent DXC. Exact shared-input replay, independent rebuilds, 84 CPU evidence rejections and 68 artifact accepts / 68 damaged-signature rejections pass. Intel reproduces all 96 original affected scenes; constant mip contributions differ by up to 0.08984375, including with anisotropy reduced to one. Explicit LOD agrees for native, linear and mip-point controls; min-point exposes separate spatial sampling differences. Mip-point gradient controls also agree exactly, while the original native sampler, 0.0002 budget and observation remain in force. Actual round midpoints pass R1 separately; the converter's MC fine policy has its own P4 contract.
Actual round midpoint coverage passes full independent joint acceptance on both devices: 32256 GPU draws—4608 GL, 4608 converted D3D and 23040 independent DXC—plus 110 CPU evidence rejections and 30 artifact accepts / 30 damaged-signature rejections. Every declared domain has actual adjacent float32 midpoint hits on both axes, across positive/negative values and 0.5/1/2 texel footprints. GLSL vector choices and HLSL ties-even pass separately; native color and retention agree exactly across APIs. Alternative allowed midpoint choices can alter sampling and cutout. Complete uploads/mips/state and independent rebuilds pass. Coarse remains the converter default; P4 records explicit MC fine selection, the versioned ABI, cache identity and regression across supported configurations.
Uniform blocks retain std140 layouts and separate bindings. C/C++ uniform_info and binding_info getters expose buffer ownership, scalar defaults and 2D/cube/typed-buffer resource types without extending existing result structures. iterationRP remains at 11/165 passing discard/no-op pairs; Complementary is 0/108, currently blocked by comparison samplers. A separate audit pins Iris 1.11.7+mc26.3 and its verified static macros, including MC_VERSION=260300, IRIS_VERSION=11107 and an empty IS_IRIS; run pwsh -NoProfile -File tests/dxil/iris/26.3/audit.ps1 -Validate. The legacy macro audit remains available; complete Iris device/feature environments and shader transformations are pending. See the M4 contract and next compatibility steps; these results do not provide whole-game or whole-pack compatibility.
The Iris audit creates a fresh zig-out/m4/iris-26.3/run-* directory; use -OutputDirectory <new-directory> to select one explicitly. Defaults monitor 1 GiB of working files, limit retained output to 64 MiB and downloads to 4 MiB, and preserve 4 GiB of free space. Per-run Zig caches are removed on completion; failed output is reduced to a small cleanup journal after ownership and process checks. See audit storage limits for scope and overrides.
DXIL requests support explicit coarse/fine derivatives: Zig .derivatives = .fine, C++ .derivatives = glsl2hlsl::Derivatives::Fine, or C glsl2hlsl_dxil_compile_graphics_v3 with nested v2 options. Coarse remains the default and the fixed policy of legacy C entries. The policy participates in cache identity; fine uses DXIL 85/86 and retains OpenGL Y handling. Update the C++ header and library together. See the ABI and ownership contract.
Matrix evaluation is also explicit: Zig .matrix_evaluation = .{ .association = .vector_first, .reduction = .fmad_1023 }, C++ MatrixAssociation::VectorFirst / MatrixReduction::FMad1023, or versioned C glsl2hlsl_dxil_compile_graphics_v4. Both controls default to source evaluation and participate in cache revision v5. Matrix-chain operands retain their original evaluation order and side effects; position additions and integer differences retain their source semantics. The C++ wrapper now requires the v4 library symbol. See the matrix contract for supported chains and device limits.
The versioned runtime helper glsl2hlsl_dxil_prepare_gl_state_v2 separates target memory rows from the captured GL clip origin, and maps viewport, signed scissor bounds, winding and vertex offsets together. Set struct_size and choose GLSL2HLSL_DXIL_BOTTOM_FIRST for the verified GL fine-derivative row representation; existing helpers remain top-first. C++ provides a prepare_gl_state overload. Preserve or explicitly transform the row orientation of produced textures before sampling; see the runtime state contract.
P4 original-input regression passes independent joint acceptance: 3840 converted GPU draws / 983040 pixel positions, 1440 artifact accepts / 1440 damaged-signature rejections and 34 CPU evidence rejections. Both producers compile and validate all six configurations; GPU replay covers NVIDIA's six and Intel's two SM6.5 configurations. Intel's four SM6.9 configurations report unsupported-target, with zero draws and no fallback. NVIDIA fine exactly matches the accepted GL colors and retention, resolving all four original affected scenes. Intel fine matches DXC but retains 36 GL retention disagreements and maximum color error 0.0696357786655426; the native sampler and 0.0002 budget remain in force. All 66 unit tests and C23/C++23/C++26 interoperability tests pass. F3.5 records actual wrong-state witnesses separately; option transitions, isolated integration and the remaining host/Iris gates are pending.
F3.5 actual wrong-state witnesses pass independent joint acceptance: 10240 converted GPU draws / 2621440 pixel positions, 960 mip readbacks, 2880 artifact accepts / 2880 damaged-signature rejections, 80 wrong-state rejection checks against actual GPU outputs, 42 CPU evidence rejections and 24 legal controls. Actual AF1 samplers, flattened du/dv and padding-only resources have distinguishable opaque witnesses, including both bit2/bit3 boundary directions; correct controls reproduce P4 exactly. GPU execution covers NVIDIA's six and Intel's two configurations; Intel's four SM6.9 targets compile/validate but remain unsupported for execution. Development smoke's 2048 draws remain separate. Intel's native GL filtering differences persist. The next F4 transition plan fixes T0–T9; its static source preflight passes, while live transitions, F5 integration and the remaining host/Iris gates are pending.
Stage 1 does not support UBO/SSBO blocks, geometry/tessellation/compute shaders, function overloading, dynamic matrix indexing, or image atomics. See the "Unsupported features" section of the mapping document for the full list.