forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🤖 Merge PR DefinitelyTyped#69939 [three] r166 by @Methuselah96
- Loading branch information
1 parent
daeea5f
commit 641755d
Showing
80 changed files
with
1,404 additions
and
329 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
import { Camera, Object3D, Vector3, WebGLRenderer } from "three"; | ||
|
||
export class ViewHelper extends Object3D { | ||
readonly isViewHelper: true; | ||
|
||
animating: boolean; | ||
center: Vector3; | ||
|
||
readonly isViewHelper: true; | ||
render: (renderer: WebGLRenderer) => void; | ||
handleClick: (event: MouseEvent) => boolean; | ||
setLabels: (labelX?: string, labelY?: string, labelZ?: string) => void; | ||
setLabelStyle: (font?: string, color?: string, radius?: number) => void; | ||
update: (delta: number) => void; | ||
dispose: () => void; | ||
|
||
constructor(camera: Camera, domElement: HTMLElement); | ||
|
||
render(renderer: WebGLRenderer): void; | ||
handleClick(event: MouseEvent): boolean; | ||
update(delta: number): void; | ||
dispose(): void; | ||
} |
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
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
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
40 changes: 40 additions & 0 deletions
40
types/three/examples/jsm/nodes/accessors/StorageTextureNode.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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { Texture } from "three"; | ||
import { GPUStorageTextureAccess } from "../../renderers/webgpu/utils/WebGPUConstants.js"; | ||
import Node from "../core/Node.js"; | ||
import NodeBuilder from "../core/NodeBuilder.js"; | ||
import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; | ||
import TextureNode from "./TextureNode.js"; | ||
|
||
export default class StorageTextureNode extends TextureNode { | ||
storeNode: Node | null; | ||
|
||
readonly isStorageTextureNode: true; | ||
|
||
access: GPUStorageTextureAccess; | ||
|
||
constructor( | ||
value: Texture, | ||
uvNode?: ShaderNodeObject<Node> | null, | ||
storeNode?: Node | null, | ||
); | ||
|
||
setAccess(value: GPUStorageTextureAccess): this; | ||
|
||
toReadOnly(): this; | ||
|
||
toWriteOnly(): this; | ||
|
||
generateStore(builder: NodeBuilder): void; | ||
} | ||
|
||
export const storageTexture: ( | ||
value: Texture, | ||
uvNode?: NodeRepresentation, | ||
storeNode?: NodeRepresentation, | ||
) => ShaderNodeObject<StorageTextureNode>; | ||
|
||
export const textureStore: ( | ||
value: Texture, | ||
uvNode?: NodeRepresentation, | ||
storeNode?: NodeRepresentation, | ||
) => ShaderNodeObject<StorageTextureNode>; |
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
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
Oops, something went wrong.