15 lines
631 B
TypeScript
15 lines
631 B
TypeScript
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);
|