Skip to content

AcceptedOwner sparkles:shadersReviewed 2026-10-20

sparkles:shaders — Testing and evidence ​

Oracles, acceptance scenarios and the evidence ledger for the requirements in SPEC.md and its topic pages. The library spans three implementations — the vocabulary, the compiler's graphics stages and the build step — so each requirement says which of them it checks and which oracle backs it.

Oracles ​

OracleIndependent becauseChecks
Hand-derived valuesWorked from the GLSL specification's definitions, not from this library's codeevery built-in at ordinary, boundary and sign-changing inputs (SHV5, SHV6)
Two host compilersDMD and LDC compile the vocabulary with different representations (SHV2) and different math librarieshost behaviour that must not depend on the compiler (SHV1–SHV6)
spirv-valThe Khronos reference validator, a separate implementation of the SPIR-V rulesthe compiler's device module (SHP4)
glslangValidatorThe Khronos reference GLSL front endevery generated file is a valid, complete shader (SHP6)
SPIR-V disassemblyspirv-dis output read as text, independent of the compiler's code generatorinterface variables, locations, bindings, names and handle storage (SHF1–SHF3, SHF5, SHF6)
GPU readbackA GL driver (the software rasterizer in CI) executes the generated GLSL; the host executes the D functionhost/device agreement within the D12 bounds (SHV7, SHF4); the fragment stage's built-ins and operations on each GL profile (SHF8, SHV11)
Recorded dub behaviourScratch dub packages whose configurations are resolved by dub itself and inspected with dub describeconfiguration selection and leakage (SHB5, SHB6)
A build without the device compilerA Nix sandbox or CI leg whose toolchain lacks ldc2-vulkan: an opt-in that leaks cannot build theredefault configurations need no device compiler (SHB5, SHB6, SHT4)
Vulkan readbackA Vulkan driver (lavapipe, the software rasterizer, in CI) executes the generated SPIR-V; the host executes the D vertex functionstage interface, built-ins and push constants as a pipeline sees them (SHF1–SHF3, SHF8, SHR4); bindings once a consumer has descriptors; the fragment stage's operations, demote included (SHV11)
The OpenGL 4.6 layout rulesOffsets worked by hand from §7.6.2.2 for a table of structs, not computed by layoutOfstd140 and std430 offsets, strides and sizes (SHR6)
spirv-val per environmentThe reference validator under Vulkan 1.3's rules for vulkan1.3, universal rules for the GL profileseach profile's module (SHP4, SHP6)

The compiler is both the subject of the entry-point and resource requirements and the tool that produces the evidence for it, so its output is checked by readers that share no code with it: the Khronos validators and the SPIR-V disassembly. Differential tests against GLSL that a person writes by hand are not used; they would test the person.

Scenarios ​

Vocabulary (SHV1–SHV11) ​

  • Construct each vector type with each constructor, read every component and swizzle, and compare with hand-written expectations, under DMD and LDC.
  • For each built-in, evaluate negative, zero, positive and non-integer inputs, and inputs on both sides of each discontinuity (floor at −0.5, mod with a negative dividend, step at its edge, smoothstep at both edges). Expectations come from GLSL's definitions.
  • Agreement. A probe unit with one fragment entry point per group of built-ins is compiled by the build step; each probe reads its arguments from a float texture, one sample per texel, and writes four results to a float render target. The results are read back and compared with the same functions evaluated on the host, within the D12 bound for each operation (ui_raylib.shader_readback.hostAndDeviceAgree, run in CI under a virtual display on the software rasterizer). Both dialects are read back: the GLSL ES 1.00 output through the driver's GLSL ES front end, linked with a GLSL ES vertex stage, in the same desktop context; the software rasterizer computes in single precision whatever the qualifiers, so highp itself is D15's.
  • Compile a module that uses every vocabulary symbol and a @compute attribute with DMD, without a device target, and check that it builds and that no device rule fires.
  • Construct and combine int2, int3 and int4 with every operator SHV9 defines, under DMD and LDC, and check that / on an integer vector does not compile.
  • The fragment stage. Draw a triangle over an 8×8 target, its clip-space corners counter-clockwise with y up, then reversed, with fragment entry points that return the window position over the size and the facing; one that discards the left half; one that returns derivatives of the window position; and, on Vulkan, one that demotes every odd column and returns a fine derivative. Read each pixel back on a GL driver for gl330 and gles100 and on lavapipe for vulkan1.3: the position grows with the row read back first on both (its origin the lower left on GL and the upper left on Vulkan, where each driver's first row is), the counter-clockwise triangle is front-facing and the reverse is not, discarded and demoted pixels hold the clear colour, and every derivative is one per pixel, including an even column's whose neighbour was demoted. On the host, each operation stops the program, naming its capability and cpu.

Device modules (SHM1–SHM6) ​

  • Classify modules spelled with each mode, with @compute qualified, preceded by comments, deprecated and other attributes, and with hostAndDevice appearing outside @compute's arguments or inside a string; expect the classification SHM5 defines.
  • Seed each device rule's violation into a device module and expect the device compilation to fail with LDC's message. The editor analysis checks the same rules separately (TGT7).
  • Under vulkan1.3, index a local static array filled element by element by an int, and check that the module declares no Int64; a size_t remainder, a size_t offset index and a long addition each fail with a diagnostic at their D source line, and the compiler does not crash (SHM6).

Entry points (SHF1–SHF9) ​

  • Compile fragment entry points with zero, one and several parameters of each kind, in interleaved orders, for gl330 and for vulkan1.3, and check in the disassembly that each @input has the next location in parameter order, each uniform the parameter's name, the output finalColor at location 0, and the bindings SHR7 gives each profile: under gl330 the sampler at 0 and each Sampler2D the next binding from 1, whatever precedes it.
  • Compile a vertex output and the fragment input it feeds, of one name, into one module, and check that both variables exist with their own storage classes; compile an @input and a resource of one name, and a uniform block field lowered under gl330 that clashes with another uniform, and expect a diagnostic naming both declarations for each.
  • Compile a vertex entry point whose result struct has a position field and two outputs, and check in the disassembly the Position built-in and the outputs at locations 0 and 1 named after the fields; compile one without a position field, a built-in in the wrong stage or with the wrong type, and a stage the profile does not grant, and expect a diagnostic for each.
  • Assert stagesLink!(V, F) for the triangle's pair, and its negation for pairs whose names, types or locations differ in one field each, whose push-constant blocks differ, and whose stages put different kinds of resource at one binding.
  • Compile a parameter with no marker, a parameter the calling convention rewrites, and a stage attribute with an unknown value, and expect a diagnostic for each.
  • Check in the disassembly that no image or sampler type appears as a member of a composite or as the pointee of a Function-storage variable, including for a Sampler2D reached through an interface struct.

Resources (SHR1–SHR8) ​

  • Layout. Compare layoutOf!(T, Rule) with hand-worked offsets for a table of structs that exercise every rule of §7.6.2.2 that differs between the two layouts and from D's: a float3 followed by a float, arrays of scalars and of vectors, nested structs, a trailing scalar after an array. writeLayout of a value, read back by those offsets, gives the value.
  • Lowering. Build one entry point with @uniform parameters, a UniformBlock!T and a PushConstants!T for vulkan1.3 and for gl330; check that the Vulkan module declares each uniform block as its struct T, decorated Block with no struct around it (D25), with the offsets and array strides of layoutOf, the bindings of SHR7 and the default block's names of SHR8, and that the GLSL declares one uniform per field under its D name, and no block.
  • Default blocks. Build two fragment entry points with different @uniform lists for vulkan1.3 and check that each has its own default uniform block, named after it; an entry point with no @uniform has none.
  • Bindings. A @binding(3) on the second of three resources: the others take 1 and 2, skipping 3. A @binding(0) fails, naming the reserved binding; two resources at one binding fail, naming both. An entry point with a uniform block and no image declares no sampler and puts the block at 1. A @resources struct with fixed bindings shared by two entry points at different positions builds; without them, it fails SHF2's rule.
  • Host values. An entry point taking a UniformBlock!T and a PushConstants!T is called on the host with host values.
  • Push-constant size. A block whose std430 size is exactly 128 bytes and whose D size is larger builds; one byte more fails.
  • Unchanged output. Regenerate sparkles:ui's effects with the M6 toolchain from the source and recipe before the slice and after it, and expect byte-identical GLSL; read back every effect on the GPU and expect the readback before the slice.
  • Rejections. A push-constant block over 128 bytes, two push-constant blocks, two resources at one binding, an interface struct with a field of another kind, and two flattened resources sharing a name: each fails, naming what SHR1–SHR7 say.

Profiles (SHC1–SHC10) ​

  • Unit-test the capability table: implications are closed, every profile's set is closed under them, and each profile denies what SHC2 says it does.
  • Compile a module with @profiles(vulkan13) on one entry point and the module default gl330, gles100; check the manifest names each entry point with its stage and profiles, that the Vulkan-only entry point is absent from the GL modules, and that each entry point produced exactly its files.
  • A branch on activeProfile that only compiles under vulkan1.3 builds the GL profiles; the same code without the branch fails them.
  • Audit. A module made to declare Int64 under a profile that denies it fails the build step with exit 1, naming the capability and the profile.
  • An unknown profile name in @profiles, and an unknown active profile, each fail with the diagnostic SHC3 and SHC4 require.
  • __traits(getTargetInfo, "shaderProfile") evaluates to each profile's name in its compilation and to "cpu" in a host compilation by the fork; activeProfile is cpu under DMD.
  • A unit whose manifest lists no entry point fails with exit 2.
  • A module valid under the universal SPIR-V rules and rejected under Vulkan 1.3's fails the vulkan1.3 profile only, naming it, and writes nothing.
  • Requirements. An entry point whose helper's helper calls a function marked @requires(derivatives) fails a profile that denies it, at the entry point, with each call of the chain at its line; granted, it builds. A @vertex entry point that reaches a @requires(fragmentStage) function fails under a grant of both stages, while a fragment entry point reaching it builds. A call of unsupported!c reached from an entry point fails the same way; one an entry point the compilation does not emit reaches does not, and nor does anything without a grant. Through the build step, a fragment entry point using fwidth fails gles100, and one using dpdxFine fails gl330 and builds for vulkan1.3.
  • The library's copy of the capability vocabulary compiles under the device compiler, which asserts it names the compiler's capabilities in order.

The first consumer ​

  • The triangle of sparkles:vulkan-wsi, built for vulkan1.3, is rendered offscreen by lavapipe at three aspect ratios, with the validation layer loaded. At pixel centres inset two pixels from each vertex toward the centroid, and at the centroid, the colour is the host's barycentric blend of the vertex function's colours within 2 in 8-bit units; pixels two or more pixels outside every edge are uncovered; the layer reports nothing. The window examples render it as before.

The build step (SHP1–SHP10) ​

  • Parse dub describe output with resolution chatter before it, repeated flags and several targets, and check the settings, the target and the sources taken from it.
  • Point the step at an unknown configuration, one without -mdcompute-targets, one naming two targets and one without a device-only module, and expect exit 2 with the cause; with no ldc2-vulkan on PATH, and with that and an unknown configuration, expect exit 3 and instructions; at a stock LDC, expect exit 3 from the capability probe.
  • Edit an input while the step compiles and expect the stamp to be stale.
  • Run with DFLAGS set to a host-only flag (--threads=3, -fsanitize=address) and expect identical output.
  • Generate twice, from two directories, and expect byte-identical files and provenance comments; the SPIR-V files carry the provenance text in an OpModuleProcessed instruction.
  • Each generated .spv declares one OpEntryPoint and no interface variable its entry point does not use.
  • A stale *.frag, *.vert and *.spv in the output directory that no entry point produces are removed.
  • A unit whose vulkan1.3 compilation fails after its GL profiles succeed leaves the output directory and its stamp as they were.
  • Run several instances of the step against one output directory at once and expect complete files and a stamp that vouches only for them.

Build integration (SHB1–SHB7) ​

  • Generate, then change each kind of input in turn — a device module, a dependency's device module, a contributing recipe — and expect the stamp to go stale after each; delete an output and expect the same.
  • Write a prebuilt stamp and expect freshness with no compiler present.
  • Add a device module that no existing input imports and expect the stamp to go stale, then remove it and expect the same (SHB4). Compute the stamp's digest for the same tree in two directories and on two platforms and expect it to be identical.
  • Resolve, with dub, a consumer that selects the opt-in configuration in a parent configuration it does not use, and expect the dependency's default configuration.

Evidence ledger ​

Statuses follow Writing Specification Docs: verified means the named tests passed for the named configuration, partial names the missing case, unverified has no evidence yet, planned is scheduled in PLAN.md, and deferred waits for a prerequisite PLAN names. Host tests run under DMD and LDC on every CI leg; device evidence comes from the builds that generate GLSL, on x86_64 Linux, aarch64 Linux and aarch64 macOS.

RequirementStatusEvidenceGap
SHV1, SHV3, SHV4verifiedshaders.types.constructAndRead, shaders.types.arithmeticIsComponentWiseAndBroadcasts, shaders.types.allEqualIsOneBool (the same bool under DMD and LDC)—
SHV2verifiedshaders.types.oneLayoutOnBothSides asserts every vector's size and alignment, a struct and an array holding vec3, and the packed variants, under DMD and LDC; every generated-shader build compiles the device vec3—
SHV5, SHV6verifiedshaders.math.builtinsMatchGlslDefinitions (hand-derived values); shaders.math.vectorFormsArePerComponent (each vector and widened-scalar form equals the scalar one per component); ui_raylib.shader_readback.hostAndDeviceAgree (sin, cos, exp and pow, and in probeVectorForms the vector forms, against the GPU's, within the D12 bounds)—
SHV7verifiedui_raylib.shader_readback.hostAndDeviceAgree: every built-in, read back from the GLSL 3.30 and the GLSL ES 1.00 output on the software rasterizer, within the D12 bounds (CI x86_64 Linux); breaking the ES vertex stage fails it—
SHV8 (as accepted)verifiedshaders.attributes.standInsCompileAsPlainD (every stand-in, on a function a host calls); ui.effect.builtins.areHonouredByACellGrid (host-and-device shader code under DMD)— (the revised part has its own row)
SHM1, SHM2partialshaderCompile.unitOf.repositoryUiAsDubDescribesIt; ui_raylib.effect_gpu.builtinsCarryTheirGpuHalf passes only when the device build ranno test compiles a deviceOnly module and checks it is absent from the host build
SHM3partialthe pinned compiler's own pass; dmd_lsp.testing.dcompute.rules mirrors itno seeded-violation test of the device build itself
SHM4partiala violating module fails the device build (SHM3)nothing flags it before the device build does
SHM5verifiedshaders.compute_mode.computeModeOf (qualified names by their last component, a byte-order mark, comments and other attributes skipped)—
SHF1, SHF3verifiedshaderCompile.fragment.interfaceFromTheSignature: the generated GLSL of an entry interleaving every parameter kind and of a void one equals apps/shader-compile/tests/golden/; shaderCompile.cli.interfaceContractIsEnforced (a second tint rejected, naming both definitions)—
SHF2 (as accepted)verifiedshaderCompile.fragment.interfaceFromTheSignature (names in the golden GLSL; input locations and bindings in the module); shaderCompile.cli.interfaceContractIsEnforced (an unmarked parameter, two markers, a marked Sampler2D, reserved names smooth, gl_x, spvGain, a__b and field filter, and two entries giving fragColor different locations or scale different types, each rejected naming it); the fork's lit tests (binding clashes, temporary and non-ASCII names, near misses that are accepted)— (the revised part has its own row)
SHF4verifiedui_raylib.shader_readback.hostAndDeviceAgree (probeSample returns each texel exactly, in both dialects)—
SHF5 (as accepted)verifiedshaderCompile.cli.interfaceContractIsEnforced (an int input, a uint uniform, an array input, a vec3 return, a struct holding a Sampler2D: rejected with the reason); shaderCompile.fragment.whatMayCrossIsDeclared (a vec3 input, an integer-vector uniform and an array uniform, declared in both dialects); ui_raylib.shader_readback.hostAndDeviceAgree (probeUniforms: an int and a struct of float, int and vec3, set by name and read back)— (the revised part has its own row)
SHF6 (as accepted)verifiedshaderCompile.cli.interfaceContractIsEnforced (a uniform struct holding a Sampler2D is rejected); the golden GLSL of shaderCompile.fragment.interfaceFromTheSignature holds no local sampler— (the revised part has its own row)
SHF7verifiedshaderCompile.cli.interfaceContractIsEnforced: a stage attribute with the value 1 is rejected, reporting it—
SHP1 (as accepted)verifiedshaderCompile.parseDescribe.rootSettingsAndEverySource; shaderCompile.cli.exitCodes (exit 2 for a configuration without the target flag)— (the SPIR-V 1.6 sentence has its own row)
SHP2verifiedshaderCompile.withoutHostFlags.dropsDflagsOnly; CI test legs, whose DFLAGS carry --threads=N, generate successfully—
SHP3partialshaderCompile.unitOf.repositoryUiAsDubDescribesIt (sparkles:ui's unit as the step resolves it); shaderCompile.unitOf.picksComputeModulesByTheirHead (the filter, without a toolchain); shaderCompile.cli.exitCodes (no device-only module: exit 2)that the unit compiles in one invocation is read from run, not tested
SHP4verifiedshaderCompile.cli.aFailedValidationWritesNothing (exit 1, the earlier output and stamp untouched)—
SHP5verifiedshaderCompile.fragment.interfaceFromTheSignature (both dialect files of one entry equal their golden GLSL, combined samplers named after the Sampler2D parameters); shaderCompile.outputFile.followsTheProfileTable; shaderCompile.vertex.vulkanTriangle (one SPIR-V module per entry point)—
SHP6verifiedevery generated-shader build runs glslangValidator; shaderCompile.cli.aRejectedTranslationWritesNothing (a validator that rejects: exit 1, the earlier output and stamp untouched)—
SHP7verifiedshaderCompile.header.namesTheEntryModulesRelativeToTheirPackage; the golden files of shaderCompile.fragment.interfaceFromTheSignature, generated from a scratch directory—
SHP8verifiedshaderCompile.cli.staleOutputGoesAndConcurrentRunsAgree (a stale file and a dead run's temporary removed, a live run's temporary kept, four concurrent runs leave complete output and a fresh stamp)—
SHP9, SHP10verifiedshaderCompile.cli.exitCodes (0 generated and fresh; 2 for a stray argument, an unknown configuration, one without the target flag, a source library (no build target), one naming two targets, an invalid Vulkan version, one without a device-only module; 3 without the compiler, also over a configuration error, and without spirv-cross, each named; 1 for a compile error); shaderCompile.cli.stockCompilerIsAToolchainError (3 by the capability probe)—
SHB1–SHB3verifiedshaderCompile.stamp.freshUntilAnInputChanges (a module, the package's recipe and a dependency's recipe; an unknown or malformed line, a version line alone, no inputs or no outputs: stale; prebuilt, trailing blank lines aside: fresh); shaderCompile.cli.exitCodes (a stamp the step wrote is fresh, and needs no compiler); shaderCompile.cli.anInputEditedDuringTheRunLeavesItStale—
SHB4deferredM2a new device module is unseen until another input changes
SHB5verifiedui.effect.builtins.carryOnlyTheirCpuHalfWithoutGpuEffects, ui_raylib.effect_gpu.builtinsCarryTheirGpuHalf—
SHB6verifiedCI builds the tui-only examples in a sandbox without ldc2-vulkan; ui_raylib.effect_gpu asserts hasGpuEffects; the recipes that add the backend select the configuration beside it (Trace D)—
SHB7partialthe consumer recipes run the step with dub run, whose target dub replaces by linking; shaderCompile.cli.staleOutputGoesAndConcurrentRunsAgree runs the built step in four processes at once on one output directoryconcurrent dub run --temp-build builds of the step are not exercised
SHT1, SHT2 (pinning)verifiedthe flake pins every component (flake.lock, dlang.nix pkgs/llvm-spirv)—
SHT1 (pin-change gate)verifiedCI runs every device check on a pin change: the toolchain tests, the GPU readback of both dialects, and shader-reproducibility; re-run green for the pins of #691—
SHT3verified.github/workflows/ci.yml shader-reproducibility: the content hashes of ui-shaders built on x86_64 Linux, aarch64 Linux and aarch64 macOS agree, and the job fails unless all three report; shaderCompile.cli.outputIsTheSameInAnyDirectory (the same package in two directories)—
SHT4verifiedCI test legs: generated-shader builds on x86_64 Linux, aarch64 Linux and aarch64 macOS; default configurations on Windows—
SHV1, SHV2 (float* names), SHV9verifiedshaders.types.intVectorsAddSubtractMultiply (float3 is vec3; int2, int3, int4 with the device's size and alignment, + - * and broadcasts, under DMD and LDC); every vertex-stage build compiles the device's int vectors—
SHF1, SHF3, SHF8 (vertex)verifiedshaderCompile.vertex.vulkanTriangle (a vertex and a fragment entry point, one valid Vulkan 1.3 module each); vulkan_wsi.triangle_readback.hostAndDeviceAgree (the triangle's vertex function, read back from lavapipe at three aspects, agrees with its host evaluation)—
SHF8 (fragment), SHV11verifiedui_raylib.shader_readback.hostAndDeviceAgree (gl330 and gles100: the window position's lower-left origin, facing, discard, derivatives); vulkan_wsi.triangle_readback.theFragmentStageAsVulkanDefinesIt (vulkan1.3: the upper-left origin, facing, discard, plain, coarse and fine derivatives, and demote with its quad's derivatives defined); shaderCompile.fragment.stageOperationsInEveryOutput (each operation's GLSL and SPIR-V); the fork's lit tests vulkan_fragment_operations.d and dcompute_vulkan_vertex_interface.d (the built-ins' stage and type)—
SHF7 (per profile)verifiedshaderCompile.vertex.withoutAProfileFails (a vertex entry point with no profile, and one naming gl330: exit 1, naming the entry point and the profile); the fork's lit test of -capabilities (a vertex entry point the grants do not cover, refused at its line)—
SHF9verifiedstages.stagesLink.matchesNamesTypesAndLocations (names, types, locations, push-constant blocks and descriptor bindings); shaders.resources.inParametersAreTheirTypes (in parameters)—
SHF2 (revised)verifiedthe fork's lit tests: one interface variable per stage, direction and name across the module; within an entry point, the compiler's own names (finalColor, the default uniform block's), the default block's members and a vertex entry point's outputs claimed, each clash naming both declarations—
SHF5 (revised)verifiedthe fork's lit tests: a vertex output int refused, a built-in of the wrong type, stage or direction refused, an integer vertex input refused where intVertexInputs is not granted and accepted where it is; shaderCompile.vertex.vulkanTriangle (an int built-in input)—
SHF6 (revised)verifiedshaderCompile.resources.aSamplerInAnInterfaceStructIsItsOwnVariable (a Sampler2D in a @resources struct: a sampler2D uniform of its name on OpenGL, an image at binding 1 beside the shared sampler on Vulkan, valid for Vulkan 1.3); shaderCompile.cli.interfaceContractIsEnforced (a uniform struct holding a Sampler2D refused)—
SHV8 (revised)verifiedshaders.attributes.standInsCompileAsPlainD; shaders.attributes.blockStandInsWrapTheirStruct (a host calls an entry point with a PushConstants!T, and a @resources struct holding a UniformBlock!T with a @binding and a @uniform, under DMD and LDC)—
SHP1 (SPIR-V 1.6)verifiedshaderCompile.vertex.vulkanTriangle (the written modules validate for Vulkan 1.3, which is SPIR-V 1.6)—
SHM6verifiedshaderCompile.audit.int64NamesTheDLines (a size_t remainder under vulkan1.3: exit 1, the D line named); the fork's lit test of -mdcompute-report-int64 (arithmetic, a widening add, conversions; an index widening unreported)—
SHT3 (SPIR-V)verifiedshader-reproducibility (CI): the hashes of ui-shaders and vulkan-wsi-shaders agree on x86_64 Linux, aarch64 Linux and aarch64 macOS—
SHR1–SHR5, SHR7, SHR8verifiedshaderCompile.resources.blocksOnVulkanUniformsOnOpenGL (one declaration: a block of T itself, the push-constant block and the default uniform block on Vulkan, one uniform per field on OpenGL, with their names and bindings); resources.UniformsOf.collectsUniformsInOrder, resources.PushConstantsOf.findsTheBlockOrVoid, resources.descriptorBindingsOf.numbersBySHR7; the fork's lit tests (flattening and its depth, bindings and their clashes, a push-constant block over 128 bytes and a second one, @binding ignored by OpenGL, a block nested in another)—
SHR1, SHR7, SHR8 (samplers of their own)verifiedvulkan_wsi.triangle_readback.eachImageReadsThroughTheSamplerItNames (one image read through a nearest and a linear sampler on lavapipe, each column as each filter gives it, and wrong with the two swapped); shaderCompile.resources.samplersOfTheirOwn (the bindings on Vulkan, one sampler2D per image and sampler on OpenGL); resources.descriptorBindingsOf.samplersOfTheirOwn; shaderCompile.renameCombinedSamplers.givesTheImageItsNameBack; the fork's lit test vulkan_sampler_states.d—
SHR6verifiedlayout.layoutOf.std140AndStd430, layout.layoutOf.nestedStructsAndTrailingScalars, layout.layoutOf.aStructWithAnArrayFieldIsAStruct, layout.writeLayout.placesEachFieldAtItsOffset (hand-derived offsets); vulkan_wsi.triangle_readback.aStd140BlockReadsAsWritten (a std140 block written by writeLayout, read back field for field from lavapipe; written as std430 it fails); vulkan_wsi.triangle_readback.hostAndDeviceAgree (a std430 push constant)—
SHC1–SHC3, SHC9verifiedshaderCompile.profileFlags.passTheProfileAndWhatItGrants (each profile's name and grants); shaderCompile.audit.rejectsWhatTheProfileDoesNotGrant; shaderCompile.audit.int64NamesTheDLines; shaderCompile.capabilities.theVocabularyIsTheCompilers (the library's vocabulary is the compiler's, in order); shaders.capabilities.stageOperationsPerProfile (what each profile grants of the fragment stage's operations, and its origin); the fork's lit test of -capabilities (an unknown name or domain refused, listing the valid ones)—
SHC4–SHC6, SHC10verifiedshaderCompile.parseManifest.readsEntriesStagesAndProfiles; shaderCompile.manifest.anEntryPointMayNotDependOnTheProfile (reading activeProfile where the manifest lists entry points fails; a body that branches on it compiles per profile); shaderCompile.outputFile.followsTheProfileTable; shaderCompile.vertex.vulkanTriangle—
SHC2 (vulkan1.1), SHP1, SHP4 (per Vulkan version)verifiedshaderCompile.vertex.vulkan11IsSpirv13 (a vertex and a fragment entry point built for both Vulkan profiles: SPIR-V 1.3 and 1.6 modules, each valid for its environment, named apart; demote refused for vulkan1.1 with its chain); vulkan_wsi.triangle_readback.theFragmentStageOnVulkan11 (the vulkan1.1 modules read back on lavapipe as vulkan1.3's do); shaderCompile.targetFor.aVulkanProfileItsOwnVersion; shaders.capabilities.stageOperationsPerProfile; LLVM's lit test vulkan1.1-spirv1.3.ll, in the vendored patch spirv-vulkan-1.1-triple.patchthe readback runs on a Vulkan 1.3 device, whose dynamic rendering a 1.1 device lacks; a 1.1 device draws through render passes, the phone terminal's to exercise
SHP3–SHP8, SHP10 (per profile)verifiedshaderCompile.vertex.vulkanTriangle (one module per entry point, its provenance, no GLSL for Vulkan-only entry points; the entry points in the unit's only device-only module); shaderCompile.header.namesTheEntryModulesRelativeToTheirPackage (the device-only modules, and a host-and-device entry point's own); shaderCompile.singleEntry.keepsOneEntryPointAndRecordsItsOrigin; shaderCompile.cli.exitCodes; vulkan_wsi.triangle_readback.hostAndDeviceAgree (sparkles:vulkan-wsi's unit has no device-only module)—
SHV10verifiedVector.layout, Matrix.layout and the rest of sparkles.math.testing (under DMD and LDC); shaders.types.oneLayoutOnBothSides, shaders.types.constructAndRead; vulkan_wsi.triangle_readback.hostAndDeviceAgree and vulkan_wsi.triangle_readback.theFragmentStageAsVulkanDefinesIt (every vulkan-wsi stage on lavapipe, under DMD and LDC); ui_raylib.shader_readback.hostAndDeviceAgree (the effects' and probes' GLSL on the software rasterizer); the fork's lit tests vulkan_vector_type.d (every interface position, std140 offsets), dcompute_vulkan_vector_type.d, vulkan_typed_copies.d and vulkan_struct_conditional.d—
SHC7, SHC8verifiedthe fork's lit test dcompute_requirements.d (a chain of three calls named at each line; a vertex entry point reaching a fragmentStage function under a grant of both stages; a reached unsupported!c; an unemitted entry point unchecked; nothing checked without a grant); shaderCompile.requirements.anEntryPointMayReachOnlyWhatItsProfileGrants (through the build step: fwidth fails gles100 with the chain, dpdxFine fails gl330 and builds for vulkan1.3); shaders.attributes.requiresIsAPlainAttribute; shaders.fragment.theHostIsNotGrantedTheFragmentStage—
SHX1–SHX3plannedM11the executor, once its contracts are refined