-
-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WebGPURenderer: Introduce Bind Groups (#1053)
* Update three.js * Add examples * Add BindGroup * Update patch * Delete examples * Update declarations * Manual declarations * Add examples * Update patch * Delete examples
- Loading branch information
1 parent
5a2a35b
commit 67e51b3
Showing
13 changed files
with
323 additions
and
200 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule three.js
updated
38 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import Binding from "./Binding.js"; | ||
import NodeUniformsGroup from "./nodes/NodeUniformsGroup.js"; | ||
declare class BindGroup { | ||
name: string; | ||
bindings: NodeUniformsGroup[] | Binding[]; | ||
id: number; | ||
constructor(name?: string, bindings?: NodeUniformsGroup[]); | ||
} | ||
export default BindGroup; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 6 additions & 4 deletions
10
types/three/examples/jsm/renderers/common/nodes/NodeBuilderState.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,30 @@ | ||
import Node from "../../../nodes/core/Node.js"; | ||
import NodeAttribute from "../../../nodes/core/NodeAttribute.js"; | ||
import Binding from "../Binding.js"; | ||
import BindGroup from "../BindGroup.js"; | ||
declare class NodeBuilderState { | ||
vertexShader: string | null; | ||
fragmentShader: string | null; | ||
computeShader: string | null; | ||
transforms: never[]; | ||
nodeAttributes: NodeAttribute[]; | ||
bindings: Binding[]; | ||
bindings: BindGroup[]; | ||
updateNodes: Node[]; | ||
updateBeforeNodes: Node[]; | ||
updateAfterNodes: Node[]; | ||
instanceBindGroups: boolean; | ||
usedTimes: number; | ||
constructor( | ||
vertexShader: string | null, | ||
fragmentShader: string | null, | ||
computeShader: string | null, | ||
nodeAttributes: NodeAttribute[], | ||
bindings: Binding[], | ||
bindings: BindGroup[], | ||
updateNodes: Node[], | ||
updateBeforeNodes: Node[], | ||
updateAfterNodes: Node[], | ||
instanceBindGroups?: boolean, | ||
transforms?: never[], | ||
); | ||
createBindings(): Binding[]; | ||
createBindings(): BindGroup[]; | ||
} | ||
export default NodeBuilderState; |
9 changes: 8 additions & 1 deletion
9
types/three/examples/jsm/renderers/common/nodes/NodeSampledTexture.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
types/three/examples/jsm/renderers/common/nodes/NodeSampler.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters