Skip to content

Commit

Permalink
WebGPURenderer: implement compileAsync() (#786)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 committed Jan 25, 2024
1 parent 23fe4c3 commit 8b5efd3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions types/three/examples/jsm/renderers/common/Renderer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ export default class Renderer {

get coordinateSystem(): CoordinateSystem;

compileAsync(scene: Scene, camera: Camera, targetScene?: Scene | null): Promise<void>;

renderAsync(scene: Scene, camera: Camera): Promise<void>;

setAnimationLoop(callback: ((time: DOMHighResTimeStamp) => void) | null): Promise<void>;
Expand Down Expand Up @@ -259,6 +261,11 @@ export default class Renderer {

get compute(): (computeNodes: ComputeNode | ComputeNode[]) => Promise<void>;

/**
* @deprecated THREE.Renderer: compile() is deprecated and will be removed in r170, use compileAsync instead.
*/
get compile(): (scene: Scene, camera: Camera, targetScene?: Scene | null) => Promise<void>;

get render(): (scene: Scene, camera: Camera) => Promise<void>;

get clear(): (color?: boolean, depth?: boolean, stencil?: boolean) => Promise<void>;
Expand Down

0 comments on commit 8b5efd3

Please sign in to comment.