C++ Renderer Improvement Campaign (2026-07)#

Working log of the “fix all” pass over Src/GraphicsEngineVulkan, driven by a three-way analysis (architecture/complexity, testing, performance). Each unit ships only after: container debug build green, the full commit suite (72 tests at campaign start, 697 as of 2026-10-01), and a validation-layer-clean runtime check where rendering changed.

Shipped#

Commit

Unit

Notes

675e5ee0

Consume the cascaded shadow map

Forward lighting now samples the cascaded shadow map it already rendered, picking a cascade by distance with PCF and cascaded_shadow_intensity. The same commit moved GLM_FORCE_DEPTH_ZERO_TO_ONE to the engine target, because the camera and CSM projections had used [-1,1] depth in a [0,1] API.

c2be278e

Real fuzzing + CI + ASan presets

ObjLoader::loadVertices now rejects negative or out-of-range indices and no longer calls exit() on a parse error. obj_parsing_fuzz_test mirrors the walk and runs in Linux CI, and the x64-ClangCL-Windows-Debug-ASan presets were added.

1a088886

Fail-fast ASSERT_VULKAN

The macro logged and continued, leaving null handles for later undefined behaviour. With exceptions disabled it now logs critical and calls abort(); every call site is a creation or allocation.

cb5989fb

Draw-loop perf

The invariant descriptor set is bound once instead of per mesh, and the per-draw std::vector<vk::Buffer> allocations are gone from the rasterizer and every CSM cascade loop.

cab3fa08

Deferred-path shadows

A shared common/cascaded_shadow.glsl gives the deferred lighting path the same cascades as forward.

f94a0b47

Pipeline cache

A pipeline cache persisted by VulkanDevice is used by every pipeline site; it is saved on graceful exit only.

325a7fb9 (folded in)

RAII leaf types

VulkanBuffer and VulkanImage became move-only with release in the destructor during the VMA rewrite.

70c2da4b

Staging ring + fence-synced uploads

Uploads wait on a per-submit fence instead of queue.waitIdle(), and share one persistently mapped staging buffer that grows geometrically.

325a7fb9

VMA adoption

The allocator moved into VulkanDevice, and VulkanBuffer/VulkanImage allocate through vmaCreateBuffer/Image with persistently mapped UBOs, keeping the ray-tracing device addresses intact.

5f07a019

glTF strip/fan triangulation

The primitive filter dropped every TRIANGLE_STRIP or TRIANGLE_FAN mesh. Both now triangulate into the list with correct winding and per-triangle material ids; points and lines are still skipped.

1b382036

glTF flat normals when NORMAL is absent

A glTF without normals lit every vertex as if facing up. The loader now computes per-triangle flat normals from world positions, as the OBJ path does, skipping degenerate triangles.

39698f7e

Swapchain recreate: oldSwapchain handoff + checked create

Recreation now hands the old swapchain to the new one and destroys it afterwards, instead of passing oldSwapchain=nullptr. The result of createSwapchainKHR is checked, so a failed create no longer leaves a null handle.

7923ffeb

glTF input-surface hardening + fuzz target

GltfLoader now checks buffer-view ranges against the buffer, fixes a base64 length underflow on short URIs and calls cgltf_validate. A new gltf_parsing_fuzz_test runs in both CI lanes.

07631be3

Single-pass multiview cascades

One multiview render pass over the cascade array replaces three passes and a pass-through geometry shader; gl_ViewIndex picks the matrix in the vertex shader, and union caster culling keeps each cascade’s casters.

6b423fbf

White-furnace golden

A KATAGLYPHIS_PT_FURNACE debug mode (uniform environment, albedo 1) makes an unbiased path tracer converge every pixel to the same value, which a new golden checks.

61df6ddf

Kompute playground gated OFF by default

The Kompute demo needs exceptions, which the project disables, so KATAGLYPHIS_BUILD_KOMPUTE_PLAYGROUND=OFF now skips both the target and Kompute’s configure.

e18dd19f

sRGB texture views

PNG and JPG textures are sRGB-encoded but were sampled through UNORM views, feeding gamma-space values into linear lighting. Uploads and the default texture now use eR8G8B8A8Srgb, so the hardware decodes at sample time.

cfca331b

glTF from the GUI + reloadModel hardening

The model picker listed only .obj, reloadModel sent every file to the OBJ parser, and add_model dereferenced null after a failed load. All three are fixed, and the listing test asserts the loadable set.

3b90b9b8

Deferred: world-position G-buffer target removed

The full-resolution world-position attachment stored what depth already encodes; the lighting subpass now reconstructs position from the depth input attachment. The pass dropped from six attachments to five.

fb6f53f9

Runtime glslc resolution + loud compile failures

The container’s baked glslc path made runtime shader compilation a silent no-op on the host. glslc is now resolved at call time (baked path, VULKAN_SDK, PATH), and a failed compile logs the stale SPIR-V being served.

126ccc9c

Multi-model textures + untextured-mtl Kd fix

Added models’ texture ids collided with model 0’s in the shared texture array; a per-model texture_offset in ObjectDescription fixes that. Materials without map_Kd also got texture id 0 instead of -1, rendering their Kd colour white.

81799ea2

PT estimator: 1/pi on NEE

Next-event estimation lacked the Lambertian 1/pi, so directly lit surfaces were pi times too bright. The cosine-sampled bounce path needed no change.

91269849

Traced world follows GUI transforms

GUI transforms updated object descriptions but not the acceleration structure, so RT and PT drew the old pose. The TLAS is now rebuilt before the descriptor update, which also resets path-tracing accumulation.

35472bb2

Materials reach the raster paths + loader OOB fix

Forward and deferred hard-coded roughness 0.9; both now use the material’s diffuse fallback and map shininess to roughness. ObjLoader also stops casting tinyobj’s -1 material id to uint32_t, which made every untextured material fetch read out of bounds.

b513d010

The GUI light reaches diffuse + HDR offscreen

Every BRDF applied the light’s colour and intensity to specular only, and rchit hard-coded the light; all five paths are fixed. Offscreen targets became FP16 in the same unit, because the brighter diffuse clamped at the UNORM ceiling.

68ac8866

PT quality controls + Russian roulette

Samples per pixel and the bounce cap were hard-coded; GUI sliders now drive them through push constants, and a slider change resets accumulation. Russian roulette starts at the fourth segment with survivors reweighted.

3a885f47

PT light transport: NEE + gradient sky

Path tracing’s only light was an accidental radiance-1 furnace, so the GUI light did nothing there. Each bounce now casts an NEE shadow ray toward the directional light, and misses return a soft gradient sky.

5a0d85c8

Compile-then-read shader ordering + TLAS dispatch guard

PathTracing and PostStage read SPIR-V before compileShader regenerated it, so edits reached the GPU one start late; the order is fixed. RT and PT recording now requires a built TLAS, so the async-load window no longer dispatches against unwritten descriptor sets.

cb387e2a

PT temporal accumulation - the mode finally converges

The path tracer redrew the same noisy frame forever. The frame index now seeds the RNG and a running mean accumulates in an rgba32f history image, reset on camera move, resize and acceleration-structure rebuild; PathTracingAccumulatesAndConverges checks it.

ecbf14ae

PT/RT correctness batch: normals, materials, degenerate scatter, t_min

Six defects in path_tracing.comp and raytrace.rchit: normals transformed as points, untextured materials sampling slot 0, object-space BRDF inputs, a missing degenerate-scatter guard and a ray-query t_min of 0. Unused BRDF includes were deleted.

27fddfd8

PT/RT: precomputed inverse matrices

The path-tracing kernel and raytrace.rgen inverted the view and projection matrices per pixel; they now read the precomputed inv_view/inv_projection from GlobalUBO, and the camera origin is hoisted out of the sample loop.

68f8b84a

BLAS compaction

BLAS are now built with eAllowCompaction and copy-compacted after the build, so VRAM no longer holds full build-size structures; a failed size query keeps the uncompacted BLAS with a warning. The TLAS is not compacted.

23f53622

Cascade texel snapping - shadow edges stop crawling

The cascade box was refitted to the frustum every frame, so shadow edges shimmered under camera motion. The stabilized path uses a world-fixed light basis, sizes the box from the slice’s bounding radius and snaps its centre to whole texels.

e5f67566

Single-time command buffers freed instead of leaked

endAndSubmitCommandBuffer waits for completion, yet never freed its command buffer, so every upload, transition and AS build leaked one. It is now freed on both the success and submit-failure paths.

3f80072a

First-frame delta_time clamp + first input-handling tests

The first frame’s delta covered the whole startup time, so a key held during load teleported the camera; clamp_frame_delta caps it. The first tests of keyboard and mouse input routing also landed.

d7fff8b8

Deferred mode was unreachable end-to-end; parity golden was vacuous

The GUI mode radios overwrote programmatic mode changes each frame, and the post pass kept presenting the forward image after a switch; both are fixed. The deferred-versus-forward golden now compares per-channel means and per-pixel differences.

4062f3da

Shadow pancaking via depth clamp

Casters between the light and a cascade’s near plane were clipped, so overhangs cast nothing. PipelineBuilder::setDepthClamp enables depth clamp on the CSM pipeline, keeping the depth range tight to protect contact shadows.

00bbebad

PipelineBuilder

The copy-pasted pipeline-construction blocks in five stages became kataglyphis.vulkan.pipeline_builder, so each stage states only what differs.

30ed20f5

glTF alphaMode MASK cutoff (increment 1)

ObjMaterial gained an alphaCutoff (-1 when not MASK) read from glTF, and forward and deferred shading discard texels below it. GltfParseUnit.MaskAlphaModeSetsTheCutoff covers the loader.

3e51d8ac

glTF COLOR_0 vertex colours

GltfLoader hard-coded white vertex colours and no fragment shader read them. It now reads COLOR_0, and forward and deferred shading multiply it into the base colour; GltfParseUnit.ReadsColor0VertexColours covers it.

5bbe0ac6

glTF MASK shadow casting (increment 1b)

MASK casters cast their solid quad’s shadow because the depth pass had no UVs or materials. The shadow pass now forwards UVs, fetches the material through the shared set and discards below the cutoff.

aaa1271b + 947e2316

Multi-mesh Model - a Model holds many Meshes (#10, L)

Model holds a vector of meshes, one object description per mesh. GltfLoader::parseCpu records a MeshRange per primitive, and uploadParsed slices each into its own mesh on the async path too; MultiPrimitiveGltfLoadsAsMultipleMeshes checks it through the render loop.

(feat)

glTF KHR_texture_transform (#11 increment 4a)

ObjMaterial carries uv_scale/uv_offset read from KHR_texture_transform on the base-colour texture, and the forward, deferred and shadow passes apply transform_uv. Rotation is deferred; KhrTextureTransformTilesTheTexture covers it.

(feat)

Forward material.doubleSided (#11 increment 2)

The forward pass now sets the cull mode dynamically per draw, disabling back-face culling for doubleSided glTF meshes. The flag travels from GltfLoader through MeshRange; MaskCardDoubleSidedRendersFromBehind covers it.

(golden)

Visual golden for forward MASK cut-out (#11 1b)

MaskCardDiscardsCutoutTexelsVisually confirms the forward MASK discard in the colour image: it adds the checkerboard mask card to the scene and checks that only the opaque squares change the frame.

d5b81523

OBJ shapes split into separate meshes (#10, the OBJ half)

ObjLoader merged every OBJ shape into one mesh; each shape now becomes its own mesh through a MeshRange. The vertex dedup map is reset per shape, so each shape’s vertices form a contiguous block, which ObjParseUnit.MultiShapeObjRecordsPerShapeMeshRanges checks.

c6e1bdb4 + c7621e36

Loaders’ MeshRange slice dedup (was queued #7)

The two loaders’ identical MeshRange structs and slice loops now live once in kataglyphis.vulkan.mesh_range as sliceMeshRange. meshRangeSliceSuite.cpp pins the re-basing arithmetic.

(refactor)

buildAttachmentDescription - render-pass attachment dedup

Eight hand-written attachment descriptions across five files became one constexpr helper in common/RenderPassHelper.hpp, with single-sample and don’t-care stencil ops baked in. renderPassHelperSuite.cpp pins every call site on the CPU.

2026-08-02 → 2026-08-03#

Commits

Theme

Notes

7e3f4e51, 768c18b3, 9078523d, 79fdbf1b, e0d88636, 3b417b36, 88c204d2, ac06961a

Create-info builder family

One shared helper each for render-pass, pipeline-layout, framebuffer, image-view and begin infos, subpass descriptions, compute-pipeline creation and framebuffer teardown, each replacing several hand-rolled call sites behind a BuildIntegrity gate.

82cc423c, 99e1b483, 00febd65, 6eb9df82

Resource-ownership hardening

VulkanBuffer, VulkanImage and VulkanImageView release their previous resource on create(). DescriptorSetGroup::create refuses a duplicate binding and releases its old layout and pool, and its single-descriptor writers refuse an array binding.

d63e2e1b, 643a010d, 899c3576, 31a78b3d

ibl.slang port regressions and their restorations

The Slang port of the IBL pipeline had dropped the cube downsample loads, GGX importance sampling in fs_prefilter/fs_brdf_lut, the forward pass’s ambient specular and IBL strength controls, and fs_irradiance’s quadrature; all four are restored.

3145d1a7, 27de8984, 7c835ecf, 11735ee3

Shader hot reload completed across all eight SPIR-V subsystems

Deferred, shadow, sky and cloud subsystems gained shader hot reload, four stages now destroy their pipeline layout on reload, and the ray-tracing SBT is rebuilt after one.

f5017f3f, ce428348, 52e22d96, bc748462

Model-loading dedup and correctness

Both loaders share deduplicated textures and samplers, the glTF loader walks only the default scene, and the two uploadParsed tails became one definition that also forwards MeshRange::doubleSided from OBJ.

3861e54b, 11828d7b, 1880ebe0, eb590cb1, 07e98a5b, 5abaeac8

Cascade/shadow fixes

The cascade light-matrix UBO is double-buffered, the stabilized box snaps to its real projection grid, PCF stays inside the shadow map, and the cascade attachment has one image view. Light matrices bind at set 1 on the fallback and no longer use a throwaway command pool.

90e7d7ba, ca989c14, 613e4225, b33e01c5

Input and GUI

Key and mouse releases are honoured under ImGui capture, and look mode ends on focus loss. The GUI model transform is a pure helper without a stale 60x scale, and the picker’s default index no longer disables the Position and Rotation controls.

2026-08-04#

Commits

Theme

Notes

(refactor)

destroyRenderPass - render-pass teardown dedup

Five stages’ hand-rolled render-pass teardown became one Kataglyphis::destroyRenderPass in common/RenderPassHelper.hpp. BuildIntegrity.RenderPassTeardownGoesThroughTheSharedHelper rejects a stray call outside it.

(refactor)

createColorAttachment - the colour twin of createDepthAttachment

Three hand-rolled colour image and view chains became createColorAttachment in renderer/ColorAttachment.ixx, kept apart from the depth helper because the two pick formats differently. BuildIntegrity.NoStageHandRollsTheColorAttachmentChain guards it, with a marker for the deliberate exceptions.

(perf)

G-buffer albedo widened to eR8G8B8A8Srgb

The albedo attachment stays 8-bit but switches from UNORM to sRGB, spending its precision where the eye needs it at the same bandwidth; the linear value reaching lighting is unchanged.

(feat)

Per-vertex tangent plumbing (normal-mapping prerequisite)

Vertex gains a vec4 tangent, mirrored in scene_types.slang. GltfLoader reads authored tangents or generates them with vertex::computeTangents, ObjLoader always generates them, and no shader uses them yet; vertexTangentSuite.cpp covers the generator.

2026-08-05#

Commits

Theme

Notes

(refactor)

Mesh’s unread model matrix deleted

Mesh lost its unread identity model matrix and getModel()/setModel(), which would silently return identity for a rotated model; the per-model transform belongs to Model through Scene. BuildIntegrity.MeshDoesNotHoldAModelMatrix keeps the dead state out.

e6b88dc2, 4c21bd26, 93084671, 9813dadf, ff958a92, 831fdfaf, 865943a2, 5a4398f4, a25837cd, 87cb77de, 118cff50, 7efffb3c, 56e06f5e, 1e817c1a, ac2477d4

glTF/OBJ material completion

Closed the material-slot gaps left after #11: glTF normal maps honour scale and colour space, metallic-roughness and KHR_materials_unlit reach all four shading paths, and KHR_texture_transform applies per slot. The OBJ loader gained normal, emissive, metallic/roughness and alpha maps, with GltfParseUnit/ObjParseUnit fixtures and BuildIntegrity gates per feature.

d8efb5f8, 8798b0ee, 0b01c0df, 74069e12, 6746f8d1, 86138954, b290e1c3

Shared-Slang-module consolidation

Moved the shaders onto shared Slang modules: common/material_rules.slang, common/raster_geometry.slang, named binding constants and one material_textures.slang owning the texture-slot samples and their resolved_* wrappers. Each step added a BuildIntegrity gate and was checked by spirv-dis diffs and the RT goldens.

4b05307a, ff3a2a83, 7dd78a63, 888ec105

Ray/path-tracing correctness

Traced object indices now use InstanceID() instead of the TLAS instance index (4b05307a), and path tracing’s committed hit adds the geometry index, fixing an out-of-bounds read on multi-mesh models (ff3a2a83). meshBaseOffsets became a tested helper (7dd78a63), and the bounce ray direction is normalized (888ec105).

af57e6ac, f34ecfaa, 4c2dc931, 03f479c0, f92b45c7, c5abc415

Clouds

Six cloud fixes: the noise-volume dispatch covers the whole volume and writes all four channels (af57e6ac), phase_HG and the powder term are corrected (f34ecfaa), march-step clamps agree between GUI and shader (4c2dc931, c5abc415), wrapping uses frac (03f479c0), and the unread model_to_world is gone (f92b45c7). Each fix added a BuildIntegrity gate.

8a1398a6, abb77ca5

Normal mapping and tangents

apply_normal_map applied the inverse TBN transform; it now multiplies mul(nTs, TBN) in both the shared module and the WGSL twin (8a1398a6). computeTangents now allocates only the touched vertex range instead of the whole model per primitive, measured by the new BM_ComputeTangents (abb77ca5).

10abd948, 6959e9fa

Input and window

The cursor-pos callback is installed unconditionally so ImGui tracks the mouse outside a drag, with camera motion gated by look_mode_active (10abd948). Look mode now hides and confines the cursor so a right-drag no longer stalls at the screen edge (6959e9fa).

e71d998a, e5280665, b8c86bcb, 62c840a8, b222ab9e, aec5abe0

Loader/renderer plumbing

Shared the loaders’ upload guards (e71d998a) and model-path resolution (e5280665), made seven submit sites react to a failed endAndSubmitCommandBuffer (b8c86bcb), deduplicated the sampler create info (62c840a8) and frame-texture teardown (b222ab9e), and removed a dead clear colour and a double sample in post (aec5abe0). Each landed with a gate.

cc6d70db, b4f7aeb5, 93cb3237, 4c72c9c8, e21ddfc2, ff57a216, 2edf7a43

Gates and tooling

Widened the line-number citation gate into SourceAndDocsCiteSymbolsNotLineNumbers over source, shaders and tests (cc6d70db, b4f7aeb5, 93cb3237), added a perf-baseline coverage gate (4c72c9c8), gated docs for clouds (e21ddfc2) and ObjMaterial fields (2edf7a43), and gave the clouds golden a real numerical oracle (ff57a216).

(perf)

transformAABB center/extent form

transformAABB now uses the Arvo center/extent form instead of walking eight corners, about 3.6x faster on BM_TransformAABB and equally exact for affine transforms. FrustumUnit.TransformAabbMatchesTheEightCornerReference pins it against the old walk.

(perf)

computeTangents finalizes each vertex once, not once per incident triangle

computeTangents now finalizes each shared vertex once via a finalized bitset instead of once per incident triangle, which pays off on closed meshes at load time though the disjoint-quad benchmark got slightly slower. VertexUnit.SharedVertexTangentIsIndependentOfIncidenceCount pins the result.

(feat)

Studio Pro editor frontend

The floating ImGui window became a docked editor on BeginViewportSideBar with menu bar, outliner, model library, inspector, profiler and status bar in a new theme. The docks publish scene_viewport, which updateUniforms remaps so the camera centres on the visible rect; focused panels no longer swallow WASD, and the golden harness hides the editor.

(fix)

Seven bugs found porting to Rust

Fixed seven C++ bugs found while porting to Rust: the cloud box shape, clouds stopping at scene depth, the cloud and sky composite, path-traced metallic factor, the loaded-model mark, the stale inspector transform after a load, and the shadow-pass and render-mode labels. Each comes with a test that fails with its fix reverted.

(fix)

The review’s ten findings, a GGX lobe for the path tracer, whole-frame back faces, fp16-safe HDR

Fixed the review’s ten findings, among them RT and PT unlit hits, one reselectable render-mode switch and editor naming of unlisted models. The path tracer gained a GGX lobe with mixture sampling (PathTracingPassesTheWhiteMetalFurnaceTest), back faces flip the whole normal-mapped frame, and every RGBA16F write clamps through common/hdr_safe.slang.

(fix)

The second review: an HDR furnace, the roughness floor, winding-side traced hits, clouds-only cloud depth

The white furnace test now reads the HDR target against white_directional_albedo, material roughness is floored at MIN_MATERIAL_ROUGHNESS, RT and PT take the hit side from triangle winding (TracedHitsTakeTheirSideFromTheTriangleWinding), and PT traces cloud depth only when clouds are on. Each fix has a test that fails when reverted.

(refactor)

Clouds on OxidANT’s shared module; OxidANT’s NDF fix

With the OxidANT pin at eb97c364, the C++ clouds call the shared volumetric_clouds.slang that the Rust renderer imports, gated by BuildIntegrity.CppCloudsMarchThroughTheSharedModule. The same pin’s brdf.slang floors GGX roughness and fixes a denominator guard that capped specular peaks.

(fix)

Mirrored model matrices: winding and tangent handedness

Ported OxidANT’s f2a28c5f: a model matrix with negative determinant now sets clockwise-front winding via setDynamicCulling, and mirrored_handedness flips the tangent sign in raster, RT and PT. MirroredModelKeepsItsWindingAndNormalMapRelief checks both.

(perf)

Incremental BLAS append, traced descriptors written on change, the tracers’ multi-object index proven

Adding a model now builds only its own BLAS, reusing the prefix the scene still owns (reusableBlasPrefix), and the RT descriptor set is written on change instead of every frame. TracedSecondModelResolvesItsOwnMeshAndTextures proves the tracers’ multi-object indexing; small cleanups dropped the compute-family queue and dead accessors.

(refactor)

Dynamic rendering and synchronization2 for every pass

Every pass now uses Vulkan 1.3 dynamic rendering and sync2 barriers, deferred split into geometry and lighting passes, and devices lacking either feature are rejected. RenderPassHelper.hpp and FramebufferHelper.hpp went, and BuildIntegrity.NoPassUsesARenderPassFramebufferOrLegacyBarrier keeps them out.

(fix)

Synchronization review after the sync2 move

A sync review after the sync2 move: sync validation now enables the load-op and shader-access checks that catch post’s sky and cloud barriers, the frame submit moved to vkQueueSubmit2, and wrong access masks on the TLAS upload and capture copies were fixed. BuildIntegrity gates pin the barrier shapes.

(feat)

glTF BLEND and TEXCOORD_1

glTF BLEND primitives now draw after opaque ones, sorted back to front with coverage-accumulating blending in forward and deferred, while RT and PT keep them opaque. TEXCOORD_1 is loaded and selected per material slot through slot_uv(), checked by BlendCardsCompositeInDepthOrderFromBothSides and EmissiveOnTexCoord1FollowsTheSecondUvSetInEveryMode.

(refactor)

Renderer-level RAII: teardown by ownership, a simulated device loss

VulkanDevice and VulkanInstance now own their resources and release them in their destructors, so the renderer and App::run tear down by scope; previously a lost device destroyed the allocator under live scene buffers. A test-only simulateDeviceLossForTesting() drives Integration.SimulatedDeviceLossEndsTheRunAsAFailureAndTearsDownCleanly.

(test)

Input-level editor tests

ImGuiInputDriver sends real cursor, button and key events through the window’s GLFW callbacks, so editor behaviour is tested from input rather than argued from ImGui’s source. editorInputSuite.cpp adds six Integration tests covering library loading, outliner rows, the View menu, the skybox toggle and F1.

(refactor)

OxidANT 78303c2: one path estimator, receiver-plane PCF, the new clouds

The OxidANT pin moved from eb97c364 to 78303c2: the path tracer uses the shared path_estimator.slang, shadows use receiver-plane PCF via pcf_visibility, and clouds use the shared march with the box sized by Scale alone. The furnace and cloud goldens were adjusted to the new estimator.

(refactor)

vkCheck replaces ASSERT_VULKAN

vkCheck replaces ASSERT_VULKAN, unwrapping a vk::ResultValue or checking a bare result with the same log-and-abort behaviour, and vkFail covers the unconditional aborts. VulkanResultsGoThroughVkCheckNotTheRetiredMacro keeps the macro out of Src/.

(perf)

resolveModelPath misses probe each Resources tree once

resolveResourceRelativePath probed up to eight ancestors for Resources/<relative> on every call; it now walks the ancestors once per working directory, caches the Resources roots found (cachedResourceRootsAbove) and probes only those, nearest first. New ResourcePathsUnit tests cover an outer tree, a file created after a miss and a working-directory change.

(test)

CPU benchmarks for the load and upload paths

Adds BM_ObjLoaderParseCpu_Suzanne, BM_GltfLoaderParseCpu_CubeTextured and BM_UploadCpuHalf for the load and upload paths. perfSuite.cpp no longer compiles its own tinyobj and cgltf, which would be defined twice once the engine loaders are linked, so the parse benchmarks time the engine’s builds.

(refactor)

The renderer reads app-owned settings, not the GUI

VulkanRenderer no longer holds a GUI*: App::run owns a RenderSettings and a RendererFeedback, the renderer reads the settings by const reference and writes its output into the feedback, and applyRendererFeedback applies its requests. BuildIntegrity.RendererAndItsStagesDoNotReachTheEditor keeps GUI imports out of the renderer.

(test)

Shadow placement and post encoding, asserted

GoldenMetrics.hpp gains an analytic ground-shadow predictor, a shadow-mask comparison and post_display_level (ACES then sRGB). New goldens ShadowFootprintMatchesTheAnalyticCaster, WidestPcfLeavesLitGroundLit and PostEncodesEachHdrTexelThroughAcesAndSrgb assert shadow placement and post encoding.

(test)

Per-host GPU pass budgets

Test-GpuTimingBudget.ps1 checks a KATAGLYPHIS_GPU_TIMING_JSON dump against a host entry in gpu-timing-budgets.json, failing a pass over its max_ms or its max_share of the summed passes. It never runs in CI, where timings stay ungated; the first profile is wsl-aarch64-llvmpipe.

(refactor)

OxidANT 026ef42: render graph v2, Basis transcoding, two dead shared symbols gone

The OxidANT pin moves to 026ef42: render graph v2 and Basis KTX2 transcoding in the Rust renderer, neither touching the C++ engine. Shared Slang drops geometry_smith and a dead import sky_model, so the Slang test and the EveryImportedSlangModuleIsUsed bookkeeping follow; basisu and ruzstd licences reach the wasm demo.

(fix)

The C++ clouds lit by the sky they draw

clouds_main took its ambient from OxidANT’s analytic sky; it now gets a CloudAmbient averaged per hemisphere from the loaded skybox (cloudAmbientOfCubemap) through two new SceneUBO vectors, or the navy with the skybox off. GoldenRender.CloudsAreLitByTheSkyTheyDraw checks a cloud lit by ambient alone.

(feat)

Wind for the C++ clouds

fillSceneUboClouds wrote zero wind; it now packs cloudWindOffset, the editor’s wind velocity times RenderSettings::time_seconds, wrapped at the noise period of 256. GoldenRender.CloudWindMovesTheNoiseAndRepeatsWithItsPeriod and BuildIntegrity.CloudWindWrapsAtTheNoisePeriod cover it.

(refactor)

A stage registry: adding a pass no longer means editing VulkanRenderer

kataglyphis.vulkan.render_stage_registry holds ordered RenderStages with record, resize and hot-reload closures; record_commands now records the five built-in passes only through it, and addRenderStage/removeRenderStage take a pass from outside the class. RecordCommandsRecordsPassesOnlyThroughTheStageRegistry rejects a pass recorded directly.

(test)

A record_commands benchmark per render mode

BM_RecordCommands{Forward,Deferred,Raytracing,PathTracing} time record_commands on the golden scene through recordCommandsUnsubmittedForBenchmark(), never submitting. Without a display or Vulkan device they report skipped, so no CI gate counts them; BuildIntegrity.UnsubmittedRecordingIsCalledOnlyByBenchmarks keeps the seam out of engine code.

(refactor)

OxidANT 216b0a1: indirect draws from a GPU draw cull, mip streaming

The OxidANT pin moves to 216b0a1: the Rust renderer draws indirectly from a GPU draw cull and streams material mips, neither touching the C++ engine. Compare-RendererTimings.ps1 now requires the new DrawCull Rust pass, and draw_cull.slang joins the imported manifest.

(perf)

Half-resolution clouds, through the stage registry

Ports OxidANT’s half-resolution clouds: with the sky inspector’s switch on, clouds_main marches a half-size target and a new cloud_upsample stage upsamples it with a depth-aware bilinear weight. GoldenRender.HalfResolutionCloudsKeepOffTheSlabAndCloseToTheFullMarch checks it stays off foreground geometry and close to the full march.

(feat)

A path-traced bounce sees the drawn sky

A path-traced bounce that misses now samples the skybox cube map, or the disabled sky’s navy, times 0.35, matching OxidANT’s bounce_sky (owner decision 2026-11-16), through a new SKYBOX_CUBEMAP_BINDING; a skybox toggle restarts the mean. GoldenRender.PathTracedMirrorReflectsTheSkyboxItDraws checks it.

(perf)

Half-resolution clouds by default

cloud_half_resolution defaults to true (owner decision 2026-11-16), as OxidANT flips its own default. The tests assert the new default and record a full-resolution frame explicitly; every other cloud golden passes at half resolution with unchanged thresholds.

(feat)

Raster shadows for point and spot lights

Point and spot lights get raster shadows: PunctualShadowMaps renders up to four lights into a depth cube array in a new punctual_shadows stage, one multiview pass per light, and punctual_lights.slang samples it with PCF. GoldenRender.PunctualLightShadowsTheCardOntoThePlane{InForward,InDeferred} and PunctualShadowUnit.* cover it.

(spike)

One glTF loader: OxidANT’s, behind KATAGLYPHIS_GLTF_LOADER=rust

OxidANT’s CPU glTF loader moved into kataglyphis_assets, and load_gltf_flat feeds GltfLoader behind KATAGLYPHIS_GLTF_LOADER=rust, cgltf staying the default. GltfLoaderDiff.* compares both parsers and found defects on both sides, fixed here and in OxidANT.

(decision)

The Rust glTF loader is the default

gltfParserFromEnvironment returns Rust unless KATAGLYPHIS_GLTF_LOADER=cgltf (owner decision 2026-11-18), since the Rust loader parsed Colosseum-gltf faster and steadier with no difference from cgltf. cgltf goes once every lane has passed on it.

(decision)

cgltf is gone: OxidANT’s loader is the only glTF parser

With every lane green on the Rust default (f5107baf), cgltf, its fuzz target and benchmarks, the parser switch and GltfLoaderDiff.* are removed (owner decision 2026-11-18). Fuzzing glTF input now belongs to OxidANT’s load_flat proptest (OxidANT 0b9e638).

(decision)

The skybox is Poly Haven’s CC0 kloofendal_43d_clear_puresky

The DOOM2016 skybox, which carried no licence, is replaced by AssetANT’s CC0 kloofendal_43d_clear_puresky-v1 (owner decision 2026-11-18), pinned in Resources/skyboxes.lock and extracted by FetchAssets.cmake into Resources/Textures/Skybox. Its licence gets a third-party-licenses.txt row.

(decision)

A missing skybox is OxidANT’s procedural sky, not black

A missing skybox folder now bakes sky_model.slang’s gradient into the cube map through SkyBox::loadAnalyticSky instead of drawing black (owner decision 2026-11-18), so every reader of the cube map agrees; KATAGLYPHIS_SKYBOX_DIR names another folder. BuildIntegrity.AnalyticSkyMatchesOxidantsSkyModel pins the copied constants.

(fix)

F5 restarts the path tracer’s running mean

The Main stage’s hot-reload hook rebuilt the path-tracing pipeline but kept pathTracingAccumulatedFrames, mixing the old and new kernels’ samples; it now resets it, as OxidANT does. RendererFeedback reports the mean’s length to the editor, and GoldenRender.ShaderHotReloadRestartsThePathTracedMean checks it.

(fix)

glTF’s mipmap-less min filters read level 0

toSamplerDesc dropped GltfSampler::mipmaps, so a bare NEAREST or LINEAR min filter minified through the whole mip chain with anisotropy. Without mips the sampler now clamps the LOD to level 0 and drops anisotropy, as Rust does; GoldenRender.AMipmaplessMinFilterSamplesOnlyTheBaseLevel checks it.

(fix)

Oversized textures and skybox faces fit the device

Textures and skybox faces larger than the device’s image limits made vkCheck abort; fitRgba8ToLimit and fitCubemapFacesToLimit now halve them with Rust’s mip box filter until they fit, and non-square cube faces are rejected. BuildIntegrity.OversizedTexturesAreFittedBeforeTheirImageIsCreated holds both call sites to it.

(fix)

Material texture indices are non-uniform

Material texture indices vary per invocation, which SPIR-V leaves undefined without NonUniform; the 14 sample sites now wrap them in NonUniformResourceIndex, and the device enables shaderSampledImageArrayDynamicIndexing. BuildIntegrity.EveryMaterialTextureIndexIsNonUniform guards it.

(fix)

A double frame clock and non-finite guards

App::run kept its timestamp in a float, so frame deltas coarsened after long uptime; frame_delta now takes it in double and drops non-finite readings, as Rust’s FrameClock does. The light direction and the GUI model transform also fall back on non-finite inputs like their Rust counterparts.

(fix)

A glTF’s first directional light is the Sun

Following OxidANT’s take_sun (OxidANT 398021a, owner decision 2026-11-18), a glTF’s first directional light becomes the editor’s Sun instead of a punctual light, so the Colosseum no longer gets a second unattenuated sun. GoldenRender.AGltfDirectionalLightBecomesTheSunInsteadOfAPunctualLight checks it.

(fix)

The bridge unwinds in every build, and reports back as values

Every non-Debug build now links the bridge with OxidANT’s unwinding [profile.bridge] (owner decision 2026-11-18), so guarded() turns a loader panic into a failed parse instead of an abort. common/OxidantDiagnostics forwards bridge logs to spdlog and the version to --version, and utf8PathBytes fixes glTF loads under non-ASCII Windows paths.

(perf)

glTF uploads from the bridge’s arrays, not a copy of them

Plan I13: GltfLoader keeps the bridge’s GltfModel and uploads from std::span views of its arrays instead of copying them, lowering the Colosseum parse’s peak memory. BuildIntegrity.GltfLoaderUploadsTheBridgeArraysWithoutACopy and GltfParseUnit tests guard the no-copy path and moved-from loaders.

(refactor)

Main’s GPU time split by the scope that drew

Plan I5: GpuTimedPass gains Forward, GBuffer, DeferredLighting, RayTrace and PathTrace, nested inside Main and exported with nested_in, matching the Rust renderer’s taxonomy; GpuTimingSubsystem owns the stamps and averages 32 frames. BuildIntegrity.GpuTimingMatchesTheRustRenderersTaxonomy reads OxidANT’s gpu_timing.rs.

(test)

The engine checks its settings, matrices and frustum against OxidANT’s

Plans B10 step 1 and I5: new bridge files settings.rs and parity.rs let SceneSettingsDrift.* and RendererParity.* compare the engine’s setting defaults, editor bounds, viewport remap, projection and model transform with OxidANT’s. FrustumUnit.ReachesEverySharedVerdictOxidantsFrustumReaches reads OxidANT’s shared frustum verdicts.

(test)

One glTF fixture set, and the loader reads no environment

Plans X5 and X14: GltfFixtureRoundTrip.* parses every glTF fixture in OxidANT’s crates/assets/tests/assets, replacing GltfTest’s duplicates. GltfLoadOptions is passed down from App::run, which alone reads KATAGLYPHIS_MIKKTSPACE_TANGENTS, so the loader reads no environment.

(fix)

The bridge review’s rules: one frustum, editor clamps with default fallbacks, the Sun bridged, aspect 1 for an empty frame, an empty MikkTSpace variable

Applies the owner’s bridge-review rules: OxidANT’s frustum adopts the engine’s culling rules, sanitize clamps cloud fields to the editor’s bounds with default fallbacks, OxidANT’s Sun is bridged as a named difference, viewportAspectRatio returns 1 for a zero width, and an empty KATAGLYPHIS_MIKKTSPACE_TANGENTS counts as unset.

(feat)

The sky in the HDR scene target, from OxidANT’s sky.slang

Plan C2: the sky is now drawn by OxidANT’s sky/sky.slang into the HDR scene target in every mode but path tracing, instead of untonemapped into the swapchain with post reconstructing it. Post loses its sky and ACES inverse, the sky stage goes, and SkyFillsTheHdrTargetInEveryModeButPathTracing checks the fill.

(feat)

FXAA for the C++ raster, from OxidANT’s fxaa.slang

Plan C3: the C++ renderer had no anti-aliasing. A new FxaaStage after post runs OxidANT’s fxaa.slang over a UNORM post intermediate, draws the GUI and presents; fxaaMode picks Off, Raster or Always (the default), and GoldenRender.FxaaSmoothsTheRasterStaircaseAndLeavesFlatRegionsAlone checks it smooths edges only.

(feat)

Multiple-scattering GGX compensation, from OxidANT’s brdf.slang

Plan N1, OxidANT pin d392a78. Single-scatter GGX lost the energy bouncing between microfacets, so rough metals came out dark; brdf.slang now scales specular by multiscatter_gain and gives diffuse 1 - specular_albedo, which every C++ shading path takes, and the furnace goldens now expect 1.

(test)

OxidANT’s shared Slang kernels against one vector file, on this engine’s device

Plan X3. The compile-only brdf_test.slang and noise_test.slang guards became OxidANT’s vector kernels; Integration.SharedSlangKernelsMeetTheirVectors dispatches each on a surfaceless compute device and checks every component against its f64 reference within tolerance.

(fix)

A double-click at any frame rate

Integration.LibraryDoubleClickLoadsTheRow failed under QEMU because ImGui’s double-click time was capped at 2 s while two slow frames outlasted it. gui/DoubleClickWindow.hpp’s doubleClickWindow keeps the frame-time rule without the cap, covered by DoubleClickWindowUnit.OutlastsTheTwoFramesBetweenThePressesAtAnyFrameRate.

(fix)

The Phase 3 review: FXAA’s fallback, placement controls for the furnaces, a stricter vector runner

OxidANT pin d392a78. fxaaFilters now takes FxaaStage::ready, so an unready FXAA stage no longer leaves the swapchain unwritten; the furnace goldens first prove their card is actually hit, and the vector runner skips through SKIP_WITHOUT_HEADLESS_DEVICE and rejects kernels not 1x1x1.

(fix)

A glTF’s default morph pose, non-finite cascade fields, the multi-primitive golden’s pixels

OxidANT pin 7951bd0. load_flat bakes a primitive’s default morph weights into its vertices, and computeCascadeDataInto replaces a non-finite shadowDistance or splitLambda with the GUI defaults; MultiPrimitiveGltfLoadsAsMultipleMeshes now checks each quad’s colour, and 66 parser cases moved to OxidANT.

(perf)

The GGX energy fit once per shading point

OxidANT d0433b1. brdf_smith_k evaluated the 14 x 14 energy spline on every call; OxidANT’s BRDF functions now take a precomputed energy, evaluated once per pixel, hit or path vertex, with identical values so no golden moves.

(feat)

VSync on by default, with a switch

Plan X15. chooseBestPresentationMode(modes, vsync) returns Fifo for on and Mailbox, else Immediate, for off, where it always preferred Mailbox; handleVsyncChange rebuilds the swapchain when the editor’s switch changes, checked by GoldenRender.VsyncTogglesBetweenFifoAndAnUncappedMode.

(feat)

debug_utils without the validation layer, and object names

Plan X8. VK_EXT_debug_utils was enabled only with the validation layer, so Profile and Release captures had no labels; enablesDebugUtils now enables it wherever the loader lists it, and debug::nameObject names the pass targets and pipelines. Integration.DebugLabelsAndNamesWorkWithoutTheValidationLayer covers it.

(fix)

GPU timings restart with new geometry; the deferred G-buffer was never slow

Forward’s averages and the timing export included the sky-only frames drawn while the model parsed, which made the G-buffer look slow by comparison. GpuTimingSubsystem::restart, called on load, reload and addModel, clears the readings, and the llvmpipe budgets in gpu-timing-budgets.json were re-derived.

(test)

A perf row for every bridged entry

Plan X7’s remainder: perfTestSuite now benchmarks every function the engine reaches through the cxx bridge, guarded() included, and win-9070xt-32core.json gets a labelled placeholder row for each.

(feat)

Quantized glTF and posed skins through the bridge

OxidANT pin 5551f29. load_flat reads KHR_mesh_quantization integer attributes by their normalized flag and bakes a skin’s rest pose; GltfParseUnit.QuantizedFixturesArriveAsTheirFloatTwins compares the quantized fixtures with their float twins.

(refactor)

Shared Slang leaf modules

OxidANT pin 2d604b4 (plan I8). hdr_safe, HDR_MAX, PI, MIN_ROUGHNESS, the secondary-ray bounds and the ACES inverse now live once in OxidANT, and this repo’s copies and literals take the shared names; every value was equal, so no frame moves, and NoShaderCopiesASharedLeafModule guards against new copies.

(fix)

Traced camera rays start at the near plane

OxidANT pin f2360d5 (plan I8). The seven camera-ray copies now share OxidANT’s camera_ray.slang, so a traced camera ray runs from the near to the far plane as raster clips, instead of from the eye to 10000; GoldenRender.TracedCameraRaysStartAtTheNearPlane checks it.

(refactor)

OxidANT’s WebGPU passes are target-neutral, the histogram is Slang

OxidANT pin e817d6c (plan I12). OxidANT’s ibl.slang takes fullscreen_vs, so a SPIR-V build would not mirror its faces, and histogram.wgsl is generated from histogram/histogram.slang; no pass here binds them, so no frame changes.

(fix)

A skin mirrored by its joints keeps its winding

OxidANT pin d0b6725. The rest-pose bake left mirrored skins drawn inside out; load_flat now reverses a triangle whose blended joint matrix has a negative determinant at two or more corners, checked by GltfFixtureRoundTrip over skinned_mirrored.gltf.

(feat)

An analytic ambient term, and one set of defaults with OxidANT

OxidANT pin 8d2bc42 (plan C4 stage 1 and I6). Shadowed ground was black, so forward, deferred and raytrace.rchit now add OxidANT’s analytic_ambient scaled by a Sun Ambient slider, and the Sun takes OxidANT’s defaults and towards-the-Sun convention; GoldenRender.TheSkyLightsShadowedGroundInEveryRasterAndRayTracedFrame checks it.

(fix)

The ambient leaves the sun to brdf_direct; the Sun’s ranges hold at run time

OxidANT pin 6054002. analytic_ambient added the sun disk after the shadow, so shadowed glossy surfaces kept the sun’s glint; it now reflects the gradient alone (GoldenRender.AMirrorInTheSunsShadowReflectsTheSkyAndNoSun), sliders clamp typed values, and a glTF’s Sun is sanitized at load.

(fix)

The Sun’s colour picker holds [0, 1]

ImGui’s ColorEdit3 let typed RGB or HSV values outside [0, 1] reach the light. The Sun tab now uses studioColorEdit3, which clamps each channel, and BuildIntegrity.EditorColourEditsHoldTheirRange fails a raw ImGui::ColorEdit or ColorPicker.

(refactor)

One OBJ reader, OxidANT’s: tinyobjloader and ObjLoader are gone

Plan B6, OxidANT pin 7d1bea4. .obj now loads through the bridge’s load_obj_flat, the reader the WebGPU renderer uses, keeping tinyobjloader’s tolerance and the owner’s material rules; ObjLoader, third_party/TINY_OBJ_LOADER and their tests and benchmarks went, after ObjLoaderDiff (4c31c056) compared both readers on 34 OBJ files.

(feature)

Textures decoded in Rust, KTX2 included

Plan B5 steps 1-2, OxidANT pin d83dca1. Textures arrive as full RGBA8 mip chains decoded off the render thread, Texture::createFromLevels uploads them level by level, and KHR_texture_basisu is transcoded, so basisu-only glTFs are textured (GoldenRender.BasisuOnlyTextureDrawsItsRampInEveryMode).

(feature)

A scene starts at its own camera; its credit is in About

Plan B9, OxidANT pin c3d555a. A loaded scene starts at its own active camera, or is fitted to its bounds when the default pose would need too far a far plane, through the bridged frame_scene; its credit shows in About, checked by GoldenRender.ASceneWithItsOwnCameraIsDrawnFromIt.

(refactor)

One home for every shared limit and binding slot; the SPIR-V contract checks sizes and strides

Plan I7, OxidANT pin 5ef2ab6. C++ now includes the Slang files that define the binding slots and limits, and BuildIntegrity.SharedShaderConstantsHaveOneHome fails a second definition; SharedStructOffsetsMatchTheCompiledSpirv also checks struct sizes and array strides, and no layout moved.

(refactor)

One material Slang for both renderers; an explicit alpha mode; 68-byte push constants

Plan I9, OxidANT pin 5d8f56a. OxidANT’s common/gltf_material.slang now owns texture transform, normal mapping, the material clamps and the MASK test for both renderers; ObjMaterial::alphaBlend became alphaMode, and PushConstantRasterizer shrank to 68 bytes, so MeshDrawRecorder no longer inverts a matrix per model.

(refactor)

Shared shadow and lighting Slang; Rust’s G-buffer packing

Plan I10, OxidANT pin e129c0b. OxidANT’s shared cascade, punctual-shadow, surface-lighting, G-buffer and cloud-upsample modules replace this engine’s copies, and the deferred G-buffer takes Rust’s packing; each shared function has a vector kernel both runners check.

(feature)

The skybox lights the scene through its bake; the occlusion map darkens the sky’s share

Plan C4 stages 2-3, OxidANT pin e965d1e. AmbientMaps bakes OxidANT’s ibl.slang irradiance, prefiltered and BRDF maps from the skybox so forward, deferred and ray tracing light through scene_sky_ambient, falling back to the analytic sky when the bake fails; the new occlusion map scales only that ambient term (TheOcclusionMapDarkensTheSkysLightAndNotTheSuns).

(refactor)

One path tracer for both renderers; one hit fetch for the C++ tracers

Plan I11, OxidANT pin c84c4ea. The path tracer now runs OxidANT’s shared common/path_integrator.slang through an ITracedScene, so both renderers share one integrator; camera misses show the drawn sky, bounce misses the IBL or analytic sky times Ambient, and the new common/traced_hit.slang gives the closest-hit shader and path tracer one hit fetch.

(feature)

The skybox’s bake leaves its sun to the directional Sun

OxidANT pin 44c7703. The photo sky’s saturated sun lit the scene through the IBL on top of the directional Sun, so OxidANT’s new common/sun_mask.slang finds the sun in the bake’s environment and ibl.slang masks a 10-degree disk around it; AMirrorFacingThePhotoSunReflectsTheSkyAroundIt checks the result.

(build)

A warning in the engine is an error; every Linux build holds the rest in a census

Hub CON295 (c) steps 2-3, owner decision D11. Every own GCC, clang and clang-cl warning was fixed, VulkanEngineCore and GraphicsEngine set COMPILE_WARNING_AS_ERROR with foreign headers SYSTEM, and each Linux build’s log is graded against scripts/linux/warning-census.txt; createTLAS now keeps the previous TLAS instead of truncating instanceCustomIndex.

(build)

The suites and fuzz targets build like the product; the Windows lanes hold a census

Hub CON295 (c), owner decision D11. The three suites built with -w and the fuzz targets with no warning set, hiding dozens of own warnings; all are fixed without changing assertions, both now set COMPILE_WARNING_AS_ERROR with GoogleTest, Google Benchmark and FuzzTest SYSTEM, and Build-Windows.ps1 -WarningCensus grades each clang-cl build through the hub’s census.

(build)

The two giant suites split by subject; GCC compiles the renderer’s importers one at a time

goldenRenderSuite.cpp split into seven subject files over GoldenRenderHarness.hpp and buildIntegritySuite.cpp into 24 over BuildIntegrityScan, with the same test names. Golden units that import the renderer could OOM a 12 GB container under GCC, so they now compile in a GCC-only Ninja pool of one.

(feature)

A KTX2 uploads as the blocks the device samples

Plan B5 step 3, OxidANT pin f0a325e. VulkanDevice enables the BC, ETC2 and ASTC families it fully supports and passes them to the bridge, which transcodes Basis KTX2 to the best one and keeps BCn as stored, so block textures upload compressed and cut Colosseum’s KTX2 chains to a quarter; checked by BasisTextureUploadsAsTheDevicesBlocksAndDrawsAsItsRgba8Chain.

(feature)

WebP textures

OxidANT pin 12ff01e. OxidANT decodes lossy and lossless WebP and its glTF import accepts EXT_texture_webp, where a glTF requiring it failed to load before; the engine receives an RGBA8 chain unchanged, and the bridge’s runtime package budget grows from 60 to 62.

(feature)

Exposure and auto exposure

Plan C5 step 1. ExposureStage keeps the Rust renderer’s [adapted EV, target EV] buffer, written from the manual EV or a histogram reduction for auto exposure, and post.slang scales radiance by exposure_scale before ACES; defaults match Rust and the harness pins 0 EV, so no golden moved.

(feature)

Bloom

Plan C5 step 2. BloomStage ports OxidANT’s bloom with its bright pass and both blurs at half resolution, and post adds the result times bloom_strength before ACES; the harness pins strength 0, so no golden moved, and BloomSpreadsABrightCardsEnergyAndConservesIt checks energy conservation.

(feature)

SSAO on the ambient light only

Plan C5 step 3. SsaoStage draws half-resolution occlusion from the deferred G-buffer’s depth or a new forward depth prepass, and lighting applies it to the ambient term only, matching the Rust renderer’s new rule; SsaoDarkensTheAmbientLightAndNeverTheDirectLight checks it, and the llvmpipe timing budget was re-derived.

(refactor)

One set of scene targets

Plan C6 step 1. The HDR target, G-buffer and FXAA intermediate were per swapchain image and both raster paths’ targets always existed; now one set serves every frame in flight, only the drawn raster path’s targets exist, all sized by sceneExtent(), and cross-frame order moves to barriers, cutting scene-target memory by about three quarters.

(test)

GPU-assisted validation of the BDA reads

Plan X6. The raster and traced passes read through raw buffer device addresses that robustBufferAccess does not bound, so a weekly gpu-av job runs eight goldens on llvmpipe with GPU-assisted validation and fails on an out-of-buffer read; Invoke-SyncValidation.ps1 -GpuAssisted is the host-GPU run.

(feature)

EXT_meshopt_compression

Plan N4, OxidANT pin 354ea61. kataglyphis_assets decodes the extension’s bitstreams and filters in safe Rust, in place before any accessor reads them, with layout and size limits checked first and no new crate; MeshoptCompressedCubesDrawLikeTheirUncompressedOriginal draws the compressed cubes beside the original.

(feature)

Device-loss breadcrumbs and VK_EXT_device_fault

Plan C10. GpuBreadcrumbs writes a buffer marker or NV checkpoint at every command-label scope, and after the first VK_ERROR_DEVICE_LOST the renderer logs, per submitted frame, where the GPU stopped plus VK_EXT_device_fault details; the extensions are requested only where offered, and swapchain recreation now handles a lost device instead of dropping the result.

(feature)

The path tracer dispatches in tiles and sample chunks; White furnace and Restart in the editor

Plan C8. planPathTracingDispatches ports Rust’s plan(), splitting the path tracer into 256 px tiles and sample chunks capped at 4 M path segments with a global barrier between dispatches, and per-sample seeding keeps the mean independent of the split; the editor gains Rust’s White furnace row and Restart accumulation button.

(feature)

Editor parity: F12, a model argument, drop, fly speed, sky label

Plan C9, matching the Rust viewer: F12 saves the scene viewport as a PNG without the editor, a positional model argument and drag-and-drop load a model through the async loader, a fly speed slider sets camera travel, and the sky label reports whether a cube map loaded.

(feature)

Material shaders for a device without non-uniform indexing

Plan C15. Material modules always declared non-uniform indexing, invalid on devices without it, so subscripts now go through material_texture_index and uniform-index twins of four entry points compile alongside; VulkanDevice picks the variant from the device features, and the twins draw byte-identical frames on llvmpipe.

(test)

The two renderers’ frames, compared in Linux CI

Plan X1. GoldenMetrics.hpp gives the goldens and the renderer comparison one luma and bucket rule, compareRendererFrames grades two PNGs, and scripts/linux/compare-renderer-pixels.sh renders Dinosaurs with both renderers on llvmpipe as the static-analysis job’s last step, failing on a failed capture or missing frame.

(feature)

Render scale with the Rust AutoScaler

Plan C6 step 2, OxidANT pin 98ca856. OxidANT’s render_scale.rs and its AutoScaler moved into kataglyphis_render_core and reach C++ through the bridge; scene stages now render at the scaled scene extent while FXAA, the editor and F12 stay at the output’s, with Rust’s Renderer-tab rows and Integration.SceneTargetsFollowTheRenderScale plus GoldenRender.HalfRenderScaleDrawsTheFullScalePictureInEveryMode as tests.

(fix)

Both renderers build a texture’s chain alike; an animated WebP is its first frame

OxidANT pin 2d97f01. Both renderers now build texture chains the C++ way: a partial-block Basis base keeps the file’s levels, a short decoded chain is completed to 1x1, and an animated WebP decodes to its first frame with a warning. No C++ code changed; GltfParseUnit cases and the round-trip fixtures pin what the bridge hands over.

(fix)

Both renderers build a texture’s chain alike; an animated WebP is its first frame

OxidANT pin 8d3c2dc. As the row before, plus a BC5 in a colour slot now reads linear where decoded too, since BC5 has no sRGB variant and the C++ engine uploaded its decode as sRGB. a_ktx2_chain_is_the_one_the_cpp_engine_s_loader_builds compares both renderers’ chains, colour space included; GltfParseUnit.ABc5Ktx2InAColourSlotReadsLinearWhereDecodedAndWhereSampled pins the bridge.

(feature)

The skybox’s bake feathers its sun mask

OxidANT pin 8ec3cdc. The skybox bake’s sun mask cut off hard at 10 degrees, so a near-mirror facing the sun showed a circle; OxidANT’s sun_masked now fades the cap from 10 to 12 degrees with a smoothstep. sun_mask.json gains six feather cases run through Integration.SharedSlangKernelsMeetTheirVectors.

(feature)

A tonemapper choice and dither

Plan N2, OxidANT pin ee4d8a5. OxidANT’s common/tonemappers.slang adds ACES, Khronos PBR Neutral and AgX plus an 8x8 Bayer dither, which post.slang uses and the Renderer tab exposes as Rust’s rows. ACES stays the default and the skybox stays ACES’s inverse, so no golden moved; vector, oracle and golden tests cover each tonemapper and the dither.

(fix)

The timing dump leaves out the load frame; the llvmpipe budget names its build

The KATAGLYPHIS_GPU_TIMING_JSON export now leaves out the load frame after GpuTimingSubsystem::restart, which on llvmpipe pays the pipeline compiles; renderer/GpuTimingExportTotals.hpp marks and skips that slice. The wsl-aarch64-llvmpipe budget now records its Debug+ASan build, since a Profile dump passes it unproven; GpuTimingExportUnit.TheDumpLeavesOutTheSliceTheLoadFrameRecorded is the key test.

(feature)

The editor lists every adapter and restarts on another

BACKLOG P2. vulkan_base/AdapterChoices.hpp ports OxidANT’s adapter.rs: VulkanDevice lists every physical device with why an unusable one fails, --adapter can pick any usable device including a CPU one, and the Renderer tab’s ADAPTER section relaunches the program on another. Tests: AdapterChoicesUnit, BuildIntegrity.AdapterChoicesFollowRustsAdapterRs and two Integration adapter tests.

(perf)

The C++ frame path stalls less

Plan C7. The editor’s library pick now loads asynchronously through beginModelReplaceAsync, PSD and PIC decode on the parse thread, a model’s textures upload through one staging ring, and a model-0 move updates the TLAS in place instead of draining and rebuilding. A VUID-VkAccelerationStructureGeometryInstancesDataKHR-sType-sType error in the first in-frame update was fixed by assigning the struct whole.

(feat)

Every device object carries a name

Plan X8’s remainder. Buffer, image, view, texture and descriptor-set creation take a mandatory debug::ObjectName, and debug::nameAllocated names VMA allocations alike, so nearly every device object carries a name in captures and VMA statistics. Integration.EveryObjectOfARenderedFrameCarriesAName and BuildIntegrity.EveryBufferCreationPassesAName hold it.

(assets)

Colosseum-web v2: the demo’s GLB through gltfpack

BACKLOG P2. AssetANT’s scripts/meshopt/gltfpack_glb.py runs gltfpack 1.3 over v1’s GLB, shrinking it from 61.2 to 25.1 MB while keeping active_camera and restoring the copyright; the quantization is slightly lossy. Resources/assets.lock names the v2 URL, live once published.

(perf)

The last load stalls end; every idle wait ends the run on a loss

BACKLOG P2 and P3, following C7 and C10. Meshes now stage through the same UploadBatch ring as textures, and model replaces no longer drain: FrameRetireQueue releases replaced models, buffers, shadow cubes and acceleration structures once the frames that used them retire. Every idle wait but the destructor’s goes through waitForDeviceIdleOrEndRun, so a device loss ends the run.

(fix)

The renderer comparison draws one view

BACKLOG P2, OxidANT pin 1205c4f. The comparison read the Rust frame 1.87 times brighter because headless_render used a different camera, sky and post than the golden, not because either renderer was off. headless_render now takes the golden’s view, BuildIntegrity.RendererComparisonDrawsTheRustFrameFromTheGoldensView pins it, and the ratio band tightened from 0.5-4 to 0.9-1.1.

(feature)

F12 at Rust’s size

BACKLOG P3. F12 now renders an offscreen 1920x1080 shot without the editor after the frame is presented, as Rust’s viewer does, then resizes the stages back and keeps the path-traced history. RenderStageFrame’s swapchain fields became output fields; GoldenRender.F12RendersTheSceneOffscreenAtRustsSize is the key test.

(feature)

Rust’s quality presets

BACKLOG P3, OxidANT pin 67ae598. OxidANT’s QualityPreset and its knobs moved into kataglyphis_render_core and reach C++ through the bridge’s quality.rs; gui/QualityPreset.ixx maps the C++ settings onto them, and the Renderer tab gains Rust’s QUALITY row with Low, Medium, High, Ultra and Custom. Tests include QualityPresetUnit and Integration.AQualityPresetPressSetsItsKnobsAndAnEditIsCustom.

(feature)

KHR_meshopt_compression

BACKLOG P3, OxidANT pin fdfbe3f. OxidANT’s meshopt decoder gains the attribute codec’s version 1 and the COLOR filter, with each view held to the EXT or KHR extension it names, and no crate added. GoldenRender.MeshoptCompressedCubesDrawLikeTheirUncompressedOriginal draws a KHR-compressed cube against its original.

(fix)

The decided cross-renderer shadow rules

Plan C11, OxidANT pin 9e801d9. Cascaded shadows now fall back to the first coarser cascade box holding a point (OxidANT’s find_cascade), and BLEND casts an opaque shadow in every mode in both renderers. ShadowUnderTheEditorDocksTakesACoarserCascade and BlendSlabCastsAnOpaqueShadowInEveryMode pin the two rules.

(feature)

The WebGPU demo on a phone, installable and offline

OxidANT pin 1ef3aa5. OxidANT’s demo now lays egui out at the surface’s real size, folds the editor into one menu on small screens, enlarges touch rows and pans with two fingers. A manifest and service worker make it installable and offline, staged last by docs-build-web.sh so a scene-only release refreshes the cache. No C++ changed.

(feature)

The editor starts at the adapter’s preset, as Rust’s viewer does

BACKLOG P3, OxidANT pin d9dec5f. Rust’s quality::for_adapter moved into kataglyphis_render_core, and App::run applies the bridge’s native_startup_preset to the adapter in use, as Rust’s viewer does; natively that is High on every class, so nothing changes today. The bridge contract now also rejects a C++ keyword as a parameter name.

(measure)

The docked cascade fit and F12’s resizes, measured

BACKLOG P3, measurement only; neither behaviour changes. The cascade fit keeps the scene rect’s frustum under the opaque docks, which ShadowUnderTheEditorDocksTakesACoarserCascade now checks through VulkanRenderer::cascadeFit(). F12’s double resize costs about 1 % of a real shot, so a second set of scene targets is not worth its memory.

(fix)

Twin adapters stay apart, the relaunch keeps a --, and Rust seeds each path sample from its index

BACKLOG P3, OxidANT pin 72ed5a2. Two devices with the same label are now numbered #1 and #2 in both renderers, a whole-entry match beats a partial one, and Rust’s relaunch puts --adapter before the --. Rust’s traced.slang seeds each path sample from its index, as path_tracing.slang does; AdapterChoicesUnit.TwinAdaptersAreNumberedAndARelaunchFindsTheOneItNamed is the key test.

(perf)

A move that changes the light count drains nothing

BACKLOG P3, follows the stalls item. handleModelTransformChange drained before its full refresh when queueTransformUpdate could not update in place (another light count, reallocated punctual cubes, no TLAS). The refresh already retires the punctual-light buffer, cubes and TLAS through FrameRetireQueue and marks the scene descriptors stale, so the drain went. GoldenRender.ALightCountChangeOnAMoveRetiresInsteadOfDraining{InForward,WhenRaytraced} count the drains and check the pools follow each edit.

(feature)

Rust’s Frame the scene button and its startup notice

BACKLOG P3. The Camera tab’s Frame the scene and View > Frame scene raise frame_scene_requested; the renderer applies startView(frameScene(...)), the bridge’s framing (OxidANT’s frame_for_cpp) or the fixed pose for a scene C++ keeps there, and publishes its field of view and fly speed, leaving the shadow distance as Rust’s apply_framing does. startupNotice turns what the startup chain could not use into Rust’s one Notice::Hint line, which the status bar draws in amber until a load starts (beginModelReplace). Tests: Integration.FrameTheSceneReturnsToTheStartViewAndRefitsTheFlySpeed, Integration.TheStatusBarShowsTheStartupNoticeUntilTheNextLoad, SceneFramingUnit.FrameTheSceneReturnsToTheStartViewAndItsFlySpeed, two CommandLineUnit cases.

(fix)

A library row shows its scene’s credit before a load, and Rust credits from ATTRIBUTION.txt

BACKLOG P3, OxidANT pin 1f9c2ac. The library row’s tooltip now names the credit between the path and the double-click, as Rust’s does, read through the bridge’s model_credit at the row’s first hover. Rust’s library, status bar and About now fall back to the ATTRIBUTION.txt beside the model, as the engine’s loader does, so its OBJ scenes are credited. Integration.ALibraryRowsTooltipShowsTheCreditBeforeALoad is the key test.

(perf)

Uploads off the graphics queue’s fences

BACKLOG P3. A model’s staging-ring fills were fence-waited on the graphics queue, so a load waited out the frames in flight; UploadQueue now submits them without a wait, on a transfer-only family, else a compute one without graphics, with release and acquire barriers where the device has one, and tracks them on timeline semaphores. Integration.AModelUploadSubmitsWithoutTheCpuWaitingForTheGpu fails on any fence or GPU wait in the upload.

(perf)

BLAS builds without a CPU wait

BACKLOG P3, follows the uploads item. ASManager built a load’s BLAS, queried their compacted sizes, copied them compacted, uploaded the TLAS instances and built the TLAS in five fence-waited submits; the BLAS and the TLAS now share one submit tracked on a timeline semaphore, which frees its scratch once the GPU is done, and a later frame compacts the BLAS and updates the TLAS in place in a submit of its own. The object-description and light uploads before the build still wait. Integration.ALoadOnARayTracingDeviceBuildsItsAccelerationStructuresWithoutACpuWait and Integration.ABlasBuildKeepsItsScratchUntilTheGpuIsDone count the waits, the submits and the scratch held.

(perf)

The rest of the scene targets lazily

BACKLOG P3, follows plan C6 step 1. ensureFeatureTargets allocates the path tracer’s RGBA32F history and the traced depth only while a traced mode draws, the clouds’ full and half targets only while the clouds draw, and the forward SSAO prepass depth only while SSAO runs in a raster frame, as Rust’s transient pool does; a switch off retires them through FrameRetireQueue, and only the raster-traced switch still drains, for the clouds’ depth. A raster frame without clouds drops from 54.5 to 24.5 B/px forward and from 70.5 to 40.5 deferred. With the clouds off post’s and the bloom’s cloud binding names the HDR target.

(perf)

Depth-only shadow casters

BACKLOG P3. Why ShadowCascades took 180 ms against Forward’s 76 on llvmpipe (Release with the commit suite, Dinosaurs, 3 cascades at 2048): one view alone costs 58-62 ms for every cascade, the pass without its fragment stage 112-119, vertex and clipping about 35 (a 1x1 viewport, 41 with the clear), the clear 6; every Dinosaurs mesh lies in every cascade. The alpha-test fragment stage ran for every caster, so the cascades now draw a caster without a MASK material through a second, depth-only pipeline on the same layout: 110-120 ms. Per-cascade culling would skip nothing here, and a geometry shader would not lower the per-view raster cost. GoldenRender.MaskCardCastsItsCutoutIntoTheCascades compares a MASK card’s shadow with its OPAQUE twin’s and counts the alpha-tested draws. The Debug ASan pass fell from about 1350 ms to 456-511, so the wsl-aarch64-llvmpipe budget is re-derived.

(measure)

A GPU timing budget for the post chain; the adapted EV in the editor

BACKLOG P3. The budget file holds workloads: frame and post-chain, whose golden RendersNonBlankFrameThroughThePostChain turns auto exposure on and bloom, SSAO and the dither to their defaults, which the harness pins away; wsl-aarch64-llvmpipe budgets it from five dumps: Main 951-971 ms and 0.67-0.68 of the frame (Ssao 464-472 inside it), against the frame workload’s 0.52-0.54, re-derived after the depth-only cascade casters. ExposureStage copies the exposure state into a per-image host-visible readback in every reduce, which the renderer reads after that image’s fence into RendererFeedback::exposureEv; the POST panel’s Adapted row shows it under auto exposure (EditorShowsTheAdaptedExposure).

(feature)

A failed load and the load in flight on the notice line

BACKLOG ideas, OxidANT pin 4681734. Scene keeps the last ModelLoadFailure (path, OxidANT’s parse error or the upload’s) and names the pending model (pendingModelLoadPath); the renderer turns them into Rust’s lines through the bridge’s load_failed_text and load_progress_text (OxidANT’s render_core::load_notice), RendererFeedback::noticeKind and loadProgress. noticeLine is Rust’s notice_text order: the load in flight muted, else the notice, amber for a hint and red for an error. A refused drop is an error too; a failed startup load keeps the startup notes. Tests: Integration.TheStatusBarShowsAFailedLoadUntilTheNextLoadStarts, the extended Integration.TheStatusBarShowsTheStartupNoticeUntilTheNextLoad, three LoadNoticeUnit cases.

(fix)

Checked Vulkan calls return their result instead of asserting

BACKLOG P3. Under VULKAN_HPP_NO_EXCEPTIONS the enhanced end(), reset(), waitIdle(), getFenceStatus(), four-argument acquireNextImageKHR() and setDebugUtilsObjectNameEXT(info) assert in resultCheck, so the frame’s, the screenshot’s, the benchmark seam’s, endAndSubmitCommandBuffer’s and the object names’ checks never ran, and an out-of-date acquire or a lost device in an idle wait aborted a Debug build. common/ResultReturningCalls.hpp takes the raw entries (UploadQueue’s endCommands moved there), and a frame whose reset, begin or end fails is dropped instead of ending the run. ScopedDispatchFault.hpp, moved out of the material suite, fails the calls in six Integration tests and one ObjectNamesUnit test; BuildIntegrity.CheckedVulkanCallsTakeTheOverloadThatReturnsTheirResult knows a command buffer by its declaration.

(perf)

Depth-only casters for the punctual shadow cubes

BACKLOG P3. PunctualShadowMaps takes the cascades’ split: a caster without a MASK material draws through a second, depth-only pipeline on the same layout, a MASK one keeps shadow_fs_main’s alpha test, on all six faces of each light. On llvmpipe (Release with the commit suite, point_light.gltf with a card, two lights at 512) PunctualShadows went from 4.2-4.4 ms to 3.7-4.1 on that two-caster scene; every shadow and punctual-light golden logs the same values. GoldenRender.MaskCardCastsItsCutoutIntoThePunctualShadowCubes compares a MASK card’s shadow under the red point light with its OPAQUE twin’s and counts the alpha-tested draws. No GPU timing budget covers the pass.

(feature)

Editor parity, part 2: orbit, wheel zoom and one key table

Plan C9, OxidANT pin 3631fa4. A left drag over the scene orbits the camera about a target radius ahead of the eye and the wheel dollies toward it, with kataglyphis_render_core::orbit_controls’s 0.25 degrees per logical point, 0.1 power-law step and radius clamp, which the Rust OrbitController now uses too; framing::orbit_reach puts the target at the depth of the scene’s centre after each load and Frame the scene. KeyBindings.ixx is the one table the CONTROLS list draws and every handler of a listed key, button or the wheel reads, the look’s focus drop included. The source-reading test that matched the list to the handlers gave way to BuildIntegrity.OnlyTheKeyTableNamesABoundKey, EveryControlInTheKeyTableHasAHandler and a row-for-row parity with Rust’s KEY_BINDINGS.

In progress#

(nothing: renderer-level RAII, the last item, shipped; see the table.)

Queued (design notes)#

  1. Prebuilt SPIR-V consumption — done. The VkPipelineCache half shipped (f94a0b47); the mtime-gated compile skip and runtime glslc resolution it superseded are gone entirely with the Slang migration (see docs/source/shader-sharing.md) — there is no runtime compile path left to skip. Shaders are Slang sources compiled ahead of time to SPIR-V/WGSL by Build-SlangShaders.ps1/compile-slang-shaders.sh, and the C++ engine loads the generated (gitignored) .spv via plain file I/O (Kataglyphis::Shared::readBinaryFile). What remains is only a micro-optimisation: pipelines still read the .spv and create shader modules at startup rather than consuming a fully cached pipeline binary, which the VkPipelineCache already covers on the second run.

  2. vk::raii teardown migration — done. Leaf types and render stages were already move-only with destructor release; the renderer-level half (shared device and instance ownership, no hand-ordered cleanUp(), no device-lost branch in App.cpp) is the “Renderer-level RAII” row above.

  3. Redundant same-layout swapchain barrier — done (the NOTE: a same-layout swapchain barrier comment before the post pass in VulkanRenderer.cpp). A sync-validation run (VK_LAYER_KHRONOS_validation with VALIDATION_CHECK_ENABLE_SYNCHRONIZATION_VALIDATION) confirmed the post render pass’s external dependency already covers the ordering, so the barrier was removed and the comment left in its place records why.

  4. Per-pass GPU timestamps + debug labels — DONE. GpuTimedPass brackets Clouds/ShadowCascades/Main/Sky/Post with timestamp-query pairs, ScopedCmdLabel names every pass for RenderDoc, and the KATAGLYPHIS_GPU_TIMING_JSON export produces per-pass averages - the before/after evidence for every perf unit in the table above (the G-buffer and multiview-cascade units cite its numbers directly).

Verification pattern#

The canonical description of the per-unit verification loop - container build (tar-pipe transport by default), running build-clangcl-debug/commitTestSuite.exe directly from the repo root, the fresh-container rule for module-interface and shared-header changes, the validation-grep runtime check, and the cheap shader-only iteration path - lives in docs/source/gpu-golden-testing.md. AGENTS.md links there rather than restating it.

The instrument playbook (earned, not designed)#

Every unit above that says “measured” went through some of these; they are the difference between a golden and a vacuous golden.

  • Red/green or it did not happen. Every fix ships with a probe that restores the defect and a test that fails on it. Three probes this campaign found the TEST broken instead of proving the fix - which is the point.

  • Identical-to-the-digit metrics across a “change” mean the change never reached the GPU. The renderer is deterministic per frame index. This signature found the stale-spv consumption, the Copy-Item mtime trap (PowerShell preserves the source mtime; ninja skips the recompile - restore with bash cp or touch after), and one shader probe that silently no-oped.

  • Look at the pixels, and count rather than average. The frame-layout and metric cautions (ImGui panel coverage, the panel-free right edge, amplified diff-map dumps, counting metrics for sparse signals) live in docs/source/gpu-golden-testing.md’s cautions section.

  • Differential oracles beat colour signatures: render the with/without-defect pair in-process and count what moved, with an explicit exclusion for the object’s own body.

  • A test encodes the behaviour of the day it was written. The listing test asserted OBJ-only; the parity golden compared forward to forward; survey findings pointed at dead files. Liveness-check before fixing, re-derive contracts before trusting.