feat(web): add compositor execution authoring
This commit is contained in:
@@ -751,6 +751,14 @@ function assertFutureCapability(payload: Extract<WebEngineRequest["command"], {
|
||||
if (properties.subdivisions !== undefined && (!Number.isSafeInteger(properties.subdivisions) || properties.subdivisions < 0 || properties.subdivisions > 32)) throw report("RENDER_PROPERTY_INVALID", "Scene hair subdivisions are outside the bounded range");
|
||||
return;
|
||||
}
|
||||
case "setSceneCompositorSettings": {
|
||||
const scene = currentSnapshot?.scenes.find((candidate) => candidate.id === payload.dataId);
|
||||
const properties = payload.properties;
|
||||
if (!scene || !validPropertyKeys(properties, ["device", "precision", "denoiseDevice", "previewQuality", "finalQuality"])) throw report("RENDER_PROPERTY_INVALID", "Scene compositor target or properties are invalid");
|
||||
for (const field of ["device", "precision"] as const) if (properties[field] !== undefined && ![0, 1].includes(properties[field])) throw report("RENDER_PROPERTY_INVALID", `Scene compositor ${field} is unsupported`);
|
||||
for (const field of ["denoiseDevice", "previewQuality", "finalQuality"] as const) if (properties[field] !== undefined && ![0, 1, 2].includes(properties[field])) throw report("RENDER_PROPERTY_INVALID", `Scene compositor ${field} is unsupported`);
|
||||
return;
|
||||
}
|
||||
case "setGeometryNodeGraph": {
|
||||
const snapshot = currentSnapshot;
|
||||
const availableResourceIds = new Set([
|
||||
|
||||
Reference in New Issue
Block a user