chore: checkpoint web Blender feature-gap work, docs and tests
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

- update native web_engine sources and rebuilt wasm artifacts
- add task cards, status notes and tooling scripts
- add web e2e specs, tutorial UI sources and tutorial assets
- sync golden task manifests and audit records

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
mes123456
2026-11-11 10:46:55 +08:00
parent f3e21c6b98
commit d1e6b63d54
665 changed files with 59149 additions and 39194 deletions

View File

@@ -451,7 +451,7 @@ async function execute(request: ComputeRequest): Promise<void> {
}
phase('queue submission'); device.queue.submit([encoder.finish()]); phase('GPU readback mapping ' + JSON.stringify({ groups: job.groups, indirect: indirectArguments, steps: job.steps?.slice(0, 4).map(step => step.groups), sizes: sizes.slice(0, 8) }));
const mapping = Promise.all([...staging.values()].map(buffer => buffer.mapAsync(GPUMapMode.READ)));
await Promise.race([mapping, device.queue.onSubmittedWorkDone().then(() => { if(Atomics.load(control, 0) === 0)phase('GPU queue completed; staging map callbacks pending'); })]);
await Promise.race([mapping, (device.queue as unknown as { onSubmittedWorkDone: () => Promise<void> }).onSubmittedWorkDone().then(() => { if(Atomics.load(control, 0) === 0)phase('GPU queue completed; staging map callbacks pending'); })]);
await mapping;
current();
phase('validation scopes');

View File

@@ -402,7 +402,11 @@ function setSnapshot(snapshot: SceneSnapshotIR, buffers: MeshGeometryBuffer[], n
const world = snapshot.worlds.find((candidate) => candidate.id === snapshot.scenes[0]?.worldId) ?? snapshot.worlds[0];
const sceneDefinition = snapshot.scenes.find((candidate) => candidate.id === snapshot.sceneId) ?? snapshot.scenes[0];
scene.background = world ? new Color().setRGB(...world.color) : new Color(0x25272b);
if (renderer) configurePBRRenderer(renderer, sceneDefinition?.colorManagement?.exposure ?? world?.exposure ?? 0);
if (renderer) configurePBRRenderer(renderer, {
viewTransform: sceneDefinition?.colorManagement?.viewTransform,
exposure: sceneDefinition?.colorManagement?.exposure ?? world?.exposure ?? 0,
look: sceneDefinition?.colorManagement?.look,
});
applyCamera(snapshot);
const rendered = new Set(lightingBudget.renderedLightNodeIds);
const shadowed = new Set(lightingBudget.shadowLightNodeIds);

View File

@@ -2455,7 +2455,7 @@ function assertFutureCapability(payload: Extract<WebEngineRequest["command"], {
throw report('EDITOR_LAYOUT_INVALID', 'Unsupported editor context action');
}
case "editShaderNode": {
if(!currentSnapshot?.materials.some(material=>material.id===payload.materialId)||!payload.edit||typeof payload.edit!=='object'||!['ADD','MOVE','RENAME','REMOVE','SET_SOCKET','LINK','UNLINK'].includes(payload.edit.action)||JSON.stringify(payload.edit).length>32768||payload.baseRevision!==currentSnapshot.revision)throw report('INVALID_ARGUMENT','Shader edit is invalid or stale');
if(!currentSnapshot?.materials.some(material=>material.id===payload.materialId)||!payload.edit||typeof payload.edit!=='object'||!['ADD','MOVE','RENAME','REMOVE','SET_SOCKET','SET_PROPERTY','SET_IMAGE','LINK','UNLINK'].includes(payload.edit.action)||JSON.stringify(payload.edit).length>32768||payload.baseRevision!==currentSnapshot.revision)throw report('INVALID_ARGUMENT','Shader edit is invalid or stale');
return;
}
case "setSoundProperties": {