Current output and timing boundaries (2026-11-15)
The public HDR recipe below remains a WebGL2 ForwardPipeline helper. Experimental WebGPU selection and native createAirMRTTarget do not make createAirPostProcess a WebGPU compositor. Preserve that distinction when choosing a path; do not infer a backend from an exported symbol.
Compare fixed-time captures with native pacing paused and one createStepClock. Retain first-frame and settled-frame images, raw values, backend/renderer, SDK and tool/source fingerprints, plus every failed attempt. Current Intel ANGLE D3D11 HDR exact redraw equality remains an open failure: source HDR values and a few final pixels differ between redraws. SwiftShader reference-profile equality passed in its explicit software configuration; it does not clear the hardware gate, justify tolerance changes or imply a performance result. Water and MRT scoped scene checks are separate evidence.
Optional GPU timers live in development tooling, outside the default runtime. WebGL TIME_ELAPSED cannot overlap; rejected nested regions must not end the outer query. WebGPU timestamps require optional feature negotiation before device creation and explicit instrumented command encoding/submission; they do not automatically profile Forward passes. Distinguish GPU Pass sum from earliest/latest timestamp span, CPU submit, completion waiting and compositor presentation. Unsupported/lost/abandoned results are unavailable, while a valid quantized zero is not proof of speed.
Checkout details: docs/guides/gpu-timing.md and docs/guides/visual-regression.md. Historical inventories below retain their original dates and claims; they are not current acceptance evidence.
Code First HDR output
Current entry: createAirPostProcess, exported by the main cocosair.js runtime. Read this section for Bloom/ACES/Reinhard; the older source inventories below describe their recorded snapshots and are not a reason to hand-build the same chain. The AIR helper and native camera.postProcess settings are different paths.
import { createAirPostProcess } from 'cocosair.js';
// After createAirApp(); camera can be assembled before app.run(scene).
const post = createAirPostProcess(camera, {
levels: 6, exposure: 0.85, toneMapping: 'aces',
bloom: { intensity: 0.55, threshold: 1.1, softKnee: 0.6, scatter: 0.78 },
});
post.setOptions({ toneMapping: 'reinhard' });
post.setOptions({ bloom: { enabled: false } });
console.log(post.info); // Effective dimensions/levels/samples and owned resource counts.
post.dispose(); // Idempotent; restores the previous camera target.The chain is linear RGBA16F capture → soft-knee prefilter/downsample → tent upsample → additive Bloom → exposure → tone curve → one sRGB output. Custom effects emit linear radiance, including values above 1; do not clamp, encode sRGB or tone-map in their fragment output. Native standard/unlit output conversion is camera-scoped. Other cameras retain their behavior. exposure is a post gain; native lighting may already incorporate camera exposure. ACES means the fitted curve, not the full ACES color-management pipeline. none still clamps and encodes for display.
Defaults: five levels, exposure 1, ACES, Bloom intensity .6, threshold 1, knee .5, scatter .7. Levels 1–8, resolutionScale (0,1], samples 1/2/4/8 are creation options. Runtime updates accept exposure 0–64, intensity 0–32, threshold 0–65504, knee/scatter 0–1 and boolean enabled. Inspect actual samples rather than assuming a requested 4× was allocated. Unsupported float attachments fail; there is no silent LDR fallback. This helper currently requires the default WebGL2 ForwardPipeline, not WebGPU or an arbitrary custom pipeline.
Ownership: one handle per camera. Do not externally replace its target or dispose its source. setEnabled(false) restores the target and retains resources; dispose releases owned targets/materials/geometry/PSOs. Camera-node destruction also disposes the handle. Four fixed effect/layout/shader caches are shared, not per-instance leaks. Output is color-only; it does not transfer scene depth to the destination. Do not stack the old LDR attachAirBloom helper on the same camera.
Make a light study, not a white screen
- Establish one silhouette and reserve dark negative space. Use two emission hues with a clear hierarchy; avoid giving every window, particle and surface equal intensity. Design framing, material response and depth before increasing Bloom.
- Keep emitter radiance and output exposure separate. A useful starting point is linear 3–6 for a small emissive tube, threshold near 1, intensity .4–.7 and ACES exposure .7–1. These are art-direction starting points, not engine defaults or universal physical units. A dim scene with no values above threshold will not acquire an optical halo by increasing levels.
- Put a dark, shaped surface near the emitter: rim-lit metal, an occluding core, a pedestal, and a restrained reflection give the light scale and contrast. Preserve dark interiors instead of making every surface emissive. Thin bright geometry needs enough longitudinal curve segments: in
primitives.torus,tubularSegmentsfollows the major arc;radialSegmentsfollows the tube cross-section. - For a real planar reflection, mirror the camera position and look target across the plane, invert its up vector, render before the main camera into a linear float target, and project world positions through that camera's view-projection matrix when sampling. Exclude the floor from capture to avoid feedback. Resize/rebind the target and refresh the reflected projection before drawing; camera matrices from the preceding aspect ratio can stretch an otherwise valid image. This single horizontal-plane example is not SSR or a general arbitrary-plane clip implementation.
- Motion, orbit, tone/exposure/Bloom controls and small-screen framing should serve the sculpture. Honor reduced-motion preference and use meaningful HTML labels; avoid a giant diagnostics panel over the focal point.
Checkout references: examples/afterlight/ is the procedural light sculpture; examples/neon-city/ retains the denser city study. The sculpture uses actual native meshes, a mirrored capture and the same public HDR chain; no external model, texture or runtime dependency. See docs/guides/hdr-post-processing.md for the public contract. An installed skills copy may not include those checkout files; the recipe above is self-contained.
Prove the result
Use a paused native pacer and createStepClock for fixed-time captures. Verify numeric HDR (>1) in post.source.readColor, then inspect final screenshots for emitter shape, halo outside the geometry, single output encoding and preserved dark regions. Compare Bloom off/on, ACES/Reinhard and exposure at the same camera/time. Do not let DOM FPS text or real rAF advance contaminate a deterministic scene comparison. Source readback alone is not a final screenshot or compositor-presentation proof.
Check portrait resize by examining actual shape/projection, not just target width fields. Validate orbit/reset, pause/resume and disposal/re-entry independently. Confirm underlying texture deletion as well as registration counts, and distinguish intentionally shared caches. Checkout probes: tools/verify/hdr-post-process.cjs --out=output/new-hdr-attempt and tools/verify/afterlight-example.cjs --out=output/new-afterlight-attempt; each needs the current main bundle, Playwright/browser and its documented Node dependencies, writes a fresh local attempt, and does not publish canonical example evidence. A local Chromium result is not a full multi-browser release claim.
Surface fidelity before glow
A light study can pass every functional test and still look like a prototype. Inspect it with Bloom disabled: metal needs shaped reflections, differentiated roughness and visible construction (lips, housings, fasteners), while the emitting insert should remain distinct from its non-emitting carrier. Avoid hiding a small tube completely inside an opaque torus; place it on the exposed face and parent both to the same moving assembly. Do not add equally bright decorative objects to compensate for a weak silhouette.
For procedural machining, use derivative-aware filtering (fwidth) and fade frequencies above pixel resolution; MSAA alone does not remove shader-pattern aliasing. Keep floor reflections slightly rougher/dimmer than the source and distinguish analytic studio-light lobes from a captured environment. AFTERLIGHT uses analytic softboxes on metal/core and a separate real mirrored-camera texture on the floor; it does not claim full environment-map PBR.
Promote a fixed HTML overlay into an explicit stacking/compositing layer above a continuously rendering canvas when testing reveals disappearing text; verify actual screenshots rather than relying only on the DOM tree. Let browser layout/compositing settle independently while keeping the engine step clock paused. Check the final live dev-server URL as well as the isolated collector route.
Liquid-glass surfaces in a light study
Use real linear-HDR background capture for screen-space refraction, with the transmitting surface excluded from that camera. Keep the capture graph acyclic: in AFTERLIGHT the background capture excludes the reflective floor as well, then the mirrored capture samples the completed background through the core, then the main camera samples both. Reuse native cameras/targets, update projection and bindings on resize, and unbind before disposing every owned texture.
A liquid impression needs slowly varying geometry and matching normals, Fresnel edge reflection, thickness-dependent absorption and restrained dispersion. Displacing vertices while leaving sphere normals unchanged makes the highlight slide incorrectly. A mostly black background hides transmission; a small actual light guide behind the glass makes bending observable. Thin saturated emitters exaggerate RGB splitting, so start with sub-percent channel offsets. Keep metal housings opaque and state that a screen-space single-refraction approximation is not full volumetric ray tracing. Compare a real glass/opaque control at fixed time outside its DOM panel, then verify the new capture's dimensions and GFX destruction.
Historical pipeline inventory
The following original text is retained intact for provenance. Its dates, counts and lack-of-entry conclusions are historical; prefer the scoped public helper above for current Code First HDR work.
Derived from tools/build/build.cjs, src/cc.config.json, src/exports/air.ts, src/exports/custom-pipeline.ts, src/exports/custom-pipeline-post-process.ts, src/exports/legacy-pipeline.ts, src/air/app.ts, src/air/bootstrap.ts, src/cocos/game/game.ts, src/cocos/game/director.ts, src/cocos/root.ts, src/cocos/core/platform/macro.ts, src/cocos/rendering/define.ts, src/cocos/rendering/custom/index.ts, src/cocos/rendering/legacy/index.ts, src/cocos/rendering/post-process/index.ts, src/cocos/rendering/post-process/post-process-builder.ts, src/cocos/rendering/post-process/components/post-process.ts, src/cocos/rendering/post-process/components/post-process-setting.ts, src/cocos/rendering/post-process/components/bloom.ts, src/cocos/rendering/post-process/components/color-grading.ts, src/cocos/rendering/post-process/components/fsr.ts, src/cocos/misc/camera-component.ts, src/cocos/render-scene/scene/camera.ts, docs/reference/owner-decisions.md, docs/reference/api-stability.md, docs/reference/web-features.md, docs/manual/rendering-contracts.md, examples/camera-viewport-props/src/main.ts, examples/camera-geometry-extras/src/main.ts, test/smoke/competitive-early-effect.test.ts, build/cocosair.module.js, build/cocosair.module.d.ts, docs/evidence/examples-verified.json, docs/evidence/examples/rendering-contracts/, src/cocos/rendering/forward/, src/cocos/rendering/deferred/, src/cocos/rendering/shadow/, src/cocos/rendering/reflection-probe/, src/cocos/rendering/render-pipeline.ts, src/cocos/rendering/pipeline-scene-data.ts, src/cocos/rendering/pipeline-state-manager.ts, src/cocos/rendering/index.ts, src/cocos/misc/, src/cocos/core/platform/index.ts, src/cocos/core/index.ts, src/cocos/core/global-exports.ts, src/exports/base.ts, tools/debug/render-queue.ts, tools/debug/probes/light-contribution-probe/main.js (as of 2026-10-09).
Three capability layers stay separate throughout this file: source export (a symbol exists in src/exports/*), default-bundle reachable (the name appears in the built ESM export block), browser-verified (a recorded browser report exists for it).
Default feature set as configured now
AIR_FEATURES is a literal array in tools/build/build.cjs:24-:44; 26 units are selected by default. Count 26 derives twice independently: the table below lists one row per array element (26 rows), and parsing the literal between tools/build/build.cjs:24 and :44 yields 26 quoted names.
| # | Feature unit | Literal line |
|---|---|---|
| 1 | air |
:25 |
| 2 | base |
:26 |
| 3 | gfx-webgl2 |
:26 |
| 4 | gfx-empty |
:26 |
| 5 | 3d |
:26 |
| 6 | animation |
:26 |
| 7 | skeletal-animation |
:26 |
| 8 | primitive |
:27 |
| 9 | tween |
:27 |
| 10 | custom-pipeline |
:27 |
| 11 | legacy-pipeline |
:27 |
| 12 | profiler |
:29 |
| 13 | video |
:29 |
| 14 | webview |
:29 |
| 15 | 2d |
:32 |
| 16 | physics-2d-framework |
:32 |
| 17 | particle-2d |
:34 |
| 18 | tiled-map |
:34 |
| 19 | ui |
:34 |
| 20 | spine-3.8 |
:34 |
| 21 | spine-4.2 |
:34 |
| 22 | dragon-bones |
:34 |
| 23 | physics-2d-box2d |
:41 |
| 24 | physics-builtin |
:41 |
| 25 | physics-cannon |
:41 |
| 26 | custom-pipeline-post-process |
:43 |
src/cc.config.json declares 33 feature units. Declared but not in the default set (7): marionette, procedural-animation, physics-2d-builtin, audio, physics-ammo, physics-physx, physics-2d-box2d-wasm.
| Build-face rule | Detail | Line |
|---|---|---|
| Override | AIR_FEATURES env var replaces the default list; empty env keeps the literal |
tools/build/build.cjs:48, :57 |
| Unknown-name fail | an effective name absent from src/cc.config.json aborts the build, because ccbuild would silently ignore it and emit bytes identical to the default |
tools/build/build.cjs:57-:64 |
| Variant isolation | a covered feature set or a redirected AIR_OUT_DIR marks the run a variant: no shared incremental cache, no release side products in build/ |
tools/build/build.cjs:49-:52 |
| JIT off | build flag SUPPORT_JIT: false for CSP without unsafe-eval |
tools/build/build.cjs:94 |
| Doc pointer | feature declarations come from src/cc.config.json, the default set from tools/build/build.cjs; variant builds do not auto-refresh default artifacts or run evidence |
docs/reference/web-features.md:15 |
How a name reaches the built ESM face
| Fact | Value | Source |
|---|---|---|
air unit aggregate file |
src/exports/air.ts (42 lines), re-export list :6-:42 |
src/exports/air.ts:6-:42; tools/build/build.cjs:25 |
| Post-process unit re-exported by the aggregate file | yes, export * from './custom-pipeline-post-process'; |
src/exports/air.ts:39 |
| Custom-pipeline unit re-exported by the aggregate file | no; the only custom-pipeline mention in src/exports/air.ts is line :39, the post-process unit |
src/exports/air.ts:39 |
| Built default bundle export face | exactly one export { ... } block, 626 entries, 92 of them X as Y aliases (parsed, not regex-grepped) |
build/cocosair.module.js |
| Names present in that block | rendering, postProcess, ForwardPipeline, RenderPipeline, RenderFlow, RenderStage, Camera, MeshRenderer, PipelineSceneData, PipelineStateManager, cclegacy, renderer, macro, sys, game, director, Root, createAirApp |
bundle parse |
| Names absent from that block | Model, SubModel, Pass, SetIndex, PipelineGlobalBindings, ModelLocalBindings, RenderPassStage, RenderPriority, bindingMappingInfo, globalDescriptorSetLayout, localDescriptorSetLayout, legacy_rendering, deviceManager |
bundle parse |
postProcess on the delivery face
| Surface | Detail | Source |
|---|---|---|
| Namespace export | import * as postProcess from '../cocos/rendering/post-process'; export { postProcess }; |
src/exports/custom-pipeline-post-process.ts:1-:3 |
| Default bundle | postProcess resolves by symbol name in the export block (alias form index as postProcess) |
build/cocosair.module.js |
| Declarations | export namespace postProcess { with PostProcessSetting, PostProcess, FSR members |
build/cocosair.module.d.ts currently :55146-:55170 |
| Component classes | PostProcess extends Component components/post-process.ts:11; PostProcessSetting extends Component components/post-process-setting.ts:8; Bloom components/bloom.ts:13; ColorGrading components/color-grading.ts:12; FSR components/fsr.ts:11 |
listed paths under src/cocos/rendering/post-process/ |
| Object a user touches | camera.postProcess getter/setter typed @type(PostProcess), and camera.usePostProcess getter/setter, both mirrored onto the render-scene camera |
src/cocos/misc/camera-component.ts:520-:529, :531-:539, :741-:742 |
| Render-scene fields | postProcess typed PostProcess | null defaulting to null, usePostProcess = false, pipeline = '', pipelineSettings typed object | null defaulting to null |
src/cocos/render-scene/scene/camera.ts:832-:835 |
| Builder registration | module side effects setCustomPipeline('Forward', new PostProcessBuilder()) and setCustomPipeline('Custom', new PostProcessBuilder()) |
src/cocos/rendering/post-process/index.ts:9-:10 |
| Builder-side reads | cam.usePostProcess = cam.projectionType === CameraProjection.PERSPECTIVE :121; copy from origin camera :131; if (!pipelineName && camera.usePostProcess) :201 |
src/cocos/rendering/post-process/post-process-builder.ts |
| Legacy-pipeline reads | the legacy forward pipeline has no postProcess reader: the only match under src/cocos/rendering/legacy is the re-export of PostProcessStage from the deferred stage at legacy/index.ts:34 |
src/cocos/rendering/legacy/index.ts:34 |
| Feature-gate meaning | the default custom-pipeline-post-process unit (tools/build/build.cjs:43) compiles the module and registers its dependent assets (src/cc.config.json key of the same name); it does not select a pipeline |
tools/build/build.cjs:43; src/cc.config.json |
| Example-level probe | postProcess presence is read back as a string on a live camera; no pass is asserted |
examples/camera-viewport-props/src/main.ts:76-:78; examples/camera-geometry-extras/src/main.ts:162, :262, :289 |
custom-pipeline: compiled into the default bundle, not selectable by default
Owner decision #6, ID D11 / LV12-17, docs/reference/owner-decisions.md:42: post-processing is unreachable in the current shipping posture, attributed to three gates; the ratified answer is option (b), variant-build-level evidence, recorded in the r46 table row docs/reference/owner-decisions.md:121. docs/reference/api-stability.md:56 records that custom pipeline and post-process sit inside the default code and export face but are not yet graded per item.
Verified current state of each gate:
| Gate | Fact | Source |
|---|---|---|
| Unit compiled | custom-pipeline is element 10 of the default AIR_FEATURES |
tools/build/build.cjs:27 |
| Namespace face | export { rendering }; plus side effect legacyCC.rendering = rendering; |
src/exports/custom-pipeline.ts:4, :6 |
| Aggregate source face | src/exports/air.ts never re-exports ./custom-pipeline |
src/exports/air.ts:6-:42 |
| Built bundle face | rendering is an export name; the bound value is the frozen custom-pipeline namespace containing createCustomPipeline, setCustomPipeline, getCustomPipeline, init, destroy, enableEffectImport, programLib |
build/cocosair.module.js currently :132791, side effect currently :157143 |
| Runtime clear | when SettingsCategory.RENDERING 'customPipeline' is falsy the init step assigns cclegacy.rendering = undefined; when truthy it errors with errorID(12109) if the namespace is absent and defaults macro.CUSTOM_PIPELINE_NAME to 'Builtin' |
src/cocos/game/game.ts:789-:805 |
| AIR settings passed by bootstrap | settingsPath: '' and overrideSettings: { rendering: { renderMode }, ... } only; no customPipeline key; the code comment states the default path is the legacy pipeline |
src/air/bootstrap.ts:147-:153 |
| Pipeline selection call | game._setupRenderPipeline queries querySettings(SettingsCategory.RENDERING, 'customPipeline') and returns _setRenderPipeline(!!usesCustomPipeline), whose only engine call is director.root!.setRenderPipeline(customPipeline); a false return raises errorID(1222) |
src/cocos/game/game.ts:1155-:1162, :1164-:1167 |
| Root branch | setRenderPipeline(useCustomPipeline) takes the custom branch only when the flag is truthy; the legacy branch calls legacy_rendering.createDefaultPipeline() and sets this._usesCustomPipeline = false; errorID(1223) when both namespaces are undefined |
src/cocos/root.ts:368-:392; getter :121, field default true :252 |
| Director guard | the custom builder is only wired when macro.CUSTOM_PIPELINE_NAME !== '' && cclegacy.rendering && this._root && this._root.usesCustomPipeline |
src/cocos/game/director.ts:851-:863 |
| Builder lookup | buildRenderPipeline calls cclegacy.rendering.getCustomPipeline(macro.CUSTOM_PIPELINE_NAME) |
src/cocos/game/director.ts:836-:849 |
| Macro default | CUSTOM_PIPELINE_NAME: 'Builtin' |
src/cocos/core/platform/macro.ts:1100, :1137 |
| Registered names | the post-process module registers 'Forward' and 'Custom'; an unknown name falls back to customPipelineBuilderMap.get('Forward') |
src/cocos/rendering/post-process/index.ts:9-:10; src/cocos/rendering/custom/index.ts:70 |
| What a user must do instead | build and ship a variant bundle (AIR_FEATURES / AIR_OUT_DIR, tools/build/build.cjs:48-:52), supply a settings object where rendering.customPipeline is truthy (src/cocos/game/game.ts:789-:801), and keep macro.CUSTOM_PIPELINE_NAME pointing at a registered builder (src/cocos/game/director.ts:857); AirAppOptions has no pipeline key (src/air/app.ts:62-:87, renderMode at :66) |
listed lines |
| CPU-side test anchor | cclegacy.rendering is reassigned/stubbed to drive the effect-import branch in a smoke test |
test/smoke/competitive-early-effect.test.ts:15, :39, :47 |
Classic and legacy forward pipeline entry points
legacy-pipeline is default element 11 (tools/build/build.cjs:27). Its face is src/exports/legacy-pipeline.ts:28 (export * from '../cocos/rendering/legacy';) plus the side effect legacyCC.legacy_rendering = legacy_rendering; (:30).
| Class or function | Declared source | Re-export line | Default bundle ESM export |
|---|---|---|---|
ForwardPipeline, createDefaultPipeline |
src/cocos/rendering/forward/forward-pipeline.ts |
src/cocos/rendering/legacy/index.ts:26 |
resolves by symbol name |
ForwardFlow |
src/cocos/rendering/forward/forward-flow.ts |
:27 |
resolves by symbol name |
ForwardStage |
src/cocos/rendering/forward/forward-stage.ts |
:28 |
resolves by symbol name |
DeferredPipeline |
src/cocos/rendering/deferred/deferred-pipeline.ts |
:29 |
resolves by symbol name |
MainFlow |
src/cocos/rendering/deferred/main-flow.ts |
:30 |
resolves by symbol name |
GbufferStage |
src/cocos/rendering/deferred/gbuffer-stage.ts |
:31 |
resolves by symbol name |
LightingStage |
src/cocos/rendering/deferred/lighting-stage.ts |
:32 |
resolves by symbol name |
BloomStage |
src/cocos/rendering/deferred/bloom-stage.ts |
:33 |
resolves by symbol name |
PostProcessStage |
src/cocos/rendering/deferred/postprocess-stage.ts |
:34 |
resolves by symbol name |
ShadowFlow, ShadowStage |
src/cocos/rendering/shadow/shadow-flow.ts, src/cocos/rendering/shadow/shadow-stage.ts |
:35, :36 |
resolves by symbol name |
ReflectionProbeFlow, ReflectionProbeStage |
src/cocos/rendering/reflection-probe/reflection-probe-flow.ts, src/cocos/rendering/reflection-probe/reflection-probe-stage.ts |
:38, :39 |
resolves by symbol name |
RenderPipeline, RenderFlow, RenderStage |
src/cocos/rendering/render-pipeline.ts, render-flow.ts, render-stage.ts |
:41-:43 |
resolves by symbol name |
PipelineSceneData, PipelineStateManager |
src/cocos/rendering/pipeline-scene-data.ts:45, src/cocos/rendering/pipeline-state-manager.ts:28 |
not re-exported by legacy/index.ts; exported by src/cocos/rendering/index.ts:32, :35 which src/exports/base.ts:39 re-exports |
resolves by symbol name |
Pipeline flow-name constants a stage must match (src/cocos/rendering/define.ts:43-:47): PIPELINE_FLOW_MAIN = 'MainFlow', PIPELINE_FLOW_FORWARD = 'ForwardFlow', PIPELINE_FLOW_SHADOW = 'ShadowFlow', PIPELINE_FLOW_SMAA = 'SMAAFlow', PIPELINE_FLOW_TONEMAP = 'ToneMapFlow'.
Legacy queue introspection is a development tool, not an SDK entry: tools/debug/render-queue.ts copies the legacy pipeline's sorted queues at RENDER_CAMERA_END and is excluded from the default SDK face (docs/manual/rendering-contracts.md:77, :80).
Binding ordinals a custom effect must respect
Source src/cocos/rendering/define.ts; each value cross-checked against the enum reverse-map emitted in build/cocosair.module.js.
SetIndex (:164-:169) |
Ordinal |
|---|---|
GLOBAL |
0 |
MATERIAL |
1 |
LOCAL |
2 |
COUNT |
3 |
PipelineGlobalBindings (:121-:133) |
Ordinal |
|---|---|
UBO_GLOBAL |
0 |
UBO_CAMERA |
1 |
UBO_SHADOW |
2 |
UBO_CSM |
3 (slot reserved for an optional UBO, :125) |
SAMPLER_SHADOWMAP |
4 |
SAMPLER_ENVIRONMENT |
5 (kept off texture unit 0 for a Mac GL driver issue, :128) |
SAMPLER_SPOT_SHADOW_MAP |
6 |
SAMPLER_DIFFUSEMAP |
7 |
COUNT |
8 |
ModelLocalBindings (:137-:159) |
Ordinal |
|---|---|
UBO_LOCAL |
0 |
UBO_FORWARD_LIGHTS |
1 |
UBO_SKINNING_ANIMATION |
2 |
UBO_SKINNING_TEXTURE |
3 |
UBO_MORPH |
4 |
UBO_UI_LOCAL |
5 |
UBO_SH |
6 |
SAMPLER_JOINTS |
7 |
SAMPLER_MORPH_POSITION |
8 |
SAMPLER_MORPH_NORMAL |
9 |
SAMPLER_MORPH_TANGENT |
10 |
SAMPLER_LIGHTMAP |
11 |
SAMPLER_SPRITE |
12 |
SAMPLER_REFLECTION_PROBE_CUBE |
13 |
SAMPLER_REFLECTION_PROBE_PLANAR |
14 |
SAMPLER_REFLECTION_PROBE_DATA_MAP |
15 |
COUNT |
16 |
RenderPassStage (:53-:56) / RenderPriority (:63-:67) |
Value |
|---|---|
RenderPassStage.DEFAULT |
100 |
RenderPassStage.UI |
200 |
RenderPriority.MIN |
0 |
RenderPriority.MAX |
255 (0xff) |
RenderPriority.DEFAULT |
128 (0x80) |
Derived counts (src/cocos/rendering/define.ts:134-:135, :160-:162): GLOBAL_UBO_COUNT 4, GLOBAL_SAMPLER_COUNT 4, LOCAL_UBO_COUNT 7 (= ModelLocalBindings.SAMPLER_JOINTS, :160), LOCAL_SAMPLER_COUNT 9 (= COUNT - LOCAL_UBO_COUNT, :161), LOCAL_STORAGE_IMAGE_COUNT 0 (:162). bindingMappingInfo (:171) is constructed from arrays ordered by set index GLOBAL, MATERIAL, LOCAL, reserved: uniform buffer counts [GLOBAL_UBO_COUNT, 0, LOCAL_UBO_COUNT, 0] (:172), combined sampler texture counts [GLOBAL_SAMPLER_COUNT, 0, LOCAL_SAMPLER_COUNT, 0] (:173), combined sampler counts [0, 0, 0, 0] (:174), texture counts [0, 0, 0, 0] (:175), storage buffer counts [0, 0, 0, 0] (:176), storage image counts [0, 0, LOCAL_STORAGE_IMAGE_COUNT, 0] (:177, so all zero), subpass input counts [0, 0, 0, 0] (:178), set order indices [0, 2, 1, 3] (:179). bindingMappingInfo, globalDescriptorSetLayout (:114) and localDescriptorSetLayout (:115) are not names on the default bundle export face.
Reachability grid
Layers kept separate: source export, default bundle ESM name (parsed from the single export { ... } block, 626 entries), declaration, browser record. "Resolves by symbol name" is a lookup, not verification.
| Symbol | Source export | Default bundle ESM | Declaration | Browser or CPU record |
|---|---|---|---|---|
postProcess |
src/exports/custom-pipeline-post-process.ts:3 |
resolves by symbol name | namespace currently :55146 |
property read-back only, examples/camera-viewport-props and examples/camera-geometry-extras PASS under docs/evidence/examples-verified.json |
rendering (custom pipeline namespace) |
src/exports/custom-pipeline.ts:4 |
resolves by symbol name | namespace currently :57495 |
none in this repo's recorded evidence for the default bundle |
ForwardPipeline |
src/cocos/rendering/legacy/index.ts:26 via src/exports/legacy-pipeline.ts:28 |
resolves by symbol name | yes | named in the light probe header comment, tools/debug/probes/light-contribution-probe/main.js:8 |
RenderPipeline, RenderFlow, RenderStage |
src/cocos/rendering/legacy/index.ts:41-:43 |
resolves by symbol name | yes | docs/evidence/examples/rendering-contracts/native-queue/report.json reads the legacy queue path |
PipelineSceneData, PipelineStateManager |
src/exports/base.ts:39 via src/cocos/rendering/index.ts:32, :35 |
resolves by symbol name | src/cocos/rendering/pipeline-scene-data.ts:45, src/cocos/rendering/pipeline-state-manager.ts:28 |
not asserted per symbol |
Camera |
src/exports/base.ts:41 via src/cocos/misc/index.ts:27; alias Camera as CameraComponent at src/cocos/misc/deprecated.ts:67 |
resolves by symbol name | class src/cocos/misc/camera-component.ts:106; render-scene class src/cocos/render-scene/scene/camera.ts:408 |
examples/camera-viewport-props PASS (older candidate, see caveat) |
macro |
src/exports/base.ts:37 via src/cocos/core/platform/index.ts:29 |
resolves by symbol name | src/cocos/core/platform/macro.ts:1158 |
test/smoke/competitive-early-effect.test.ts CPU-side stubbing of cclegacy.rendering (:15, :39, :47) |
cclegacy |
src/exports/base.ts:37 via src/cocos/core/index.ts:50 |
resolves by symbol name | src/cocos/core/global-exports.ts:36 |
CPU tests only |
SetIndex, PipelineGlobalBindings, ModelLocalBindings, RenderPassStage, RenderPriority |
src/cocos/rendering/define.ts:164, :121, :137, :53, :63 |
not export names; values reachable through the engine's internal use | internal | not asserted |
bindingMappingInfo, globalDescriptorSetLayout, localDescriptorSetLayout |
src/cocos/rendering/define.ts:171, :114, :115 |
not export names | internal | not asserted |
Evidence caveat: docs/evidence/examples-verified.json carries file-level measuredAt 2026-10-04T05:52:32.537Z, completed true, partial false and file-level candidateFingerprint 2f089f6ce25eaccd, while each of its 154 results[] entries carries its own candidateFingerprint, all equal to 2f089f6ce25eaccd. Recomputing the value for the current tree with node -p "require('./tools/verify/api-trace.cjs').candidateFingerprint()" gives 8f3e573cebbb315f, so those records describe an older candidate, not today's bytes. build/cocosair.module.js and build/cocosair.module.d.ts are generated artifacts with no freshness gate; line numbers cited as "currently" drift on the next build.