feat(web): switch to implementation-first capability wave
This commit is contained in:
14
web/protocol/render-compositor-commands.ts
Normal file
14
web/protocol/render-compositor-commands.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import type { RenderCapabilityRequest } from "./render-capabilities";
|
||||
|
||||
/** Canonical capability requests shared by export and future compositor UI. */
|
||||
export const renderCompositorCommands = Object.freeze({
|
||||
boundedShaderGraph(): RenderCapabilityRequest {
|
||||
return { kind: "ARBITRARY_SHADER", nodeTypes: ["PRINCIPLED", "MATERIAL_OUTPUT"] };
|
||||
},
|
||||
webGPUBackend(): RenderCapabilityRequest {
|
||||
return { kind: "WEBGPU_BACKEND" };
|
||||
},
|
||||
postProcess(passes: Extract<RenderCapabilityRequest, { kind: "POSTPROCESS" }>["passes"]): RenderCapabilityRequest {
|
||||
return { kind: "POSTPROCESS", passes: [...passes] };
|
||||
},
|
||||
} as const);
|
||||
Reference in New Issue
Block a user