-
-
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.
* Add examples * Updates * Update * Update patch and delete examples * Update * Remove unnecessary generic
- Loading branch information
1 parent
912da13
commit eba1a7b
Showing
8 changed files
with
86 additions
and
22 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,6 +1,7 @@ | ||
import { TypedArray } from "../../core/BufferAttribute.js"; | ||
import { ShaderNodeObject } from "../tsl/TSLCore.js"; | ||
import StorageBufferNode from "./StorageBufferNode.js"; | ||
|
||
export const attributeArray: (count: number, type?: string) => ShaderNodeObject<StorageBufferNode>; | ||
export const attributeArray: (count: TypedArray | number, type?: string) => ShaderNodeObject<StorageBufferNode>; | ||
|
||
export const instancedArray: (count: number, type?: string) => ShaderNodeObject<StorageBufferNode>; | ||
export const instancedArray: (count: TypedArray | number, type?: string) => ShaderNodeObject<StorageBufferNode>; |
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,17 +1,17 @@ | ||
import UniformNode from "../core/UniformNode.js"; | ||
import { NodeOrType, ShaderNodeObject } from "../tsl/TSLCore.js"; | ||
|
||
export default class BufferNode extends UniformNode<unknown> { | ||
export default class BufferNode<TValue> extends UniformNode<TValue> { | ||
isBufferNode: true; | ||
|
||
bufferType: string; | ||
bufferCount: number; | ||
|
||
constructor(value: unknown, bufferType: string, bufferCount?: number); | ||
constructor(value: TValue, bufferType: string, bufferCount?: number); | ||
} | ||
|
||
export const buffer: ( | ||
export const buffer: <TValue>( | ||
value: unknown, | ||
nodeOrType: NodeOrType, | ||
count: number, | ||
) => ShaderNodeObject<BufferNode>; | ||
) => ShaderNodeObject<BufferNode<TValue>>; |
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