Computes a hash for the given string.
| Parameter | Type | Default Value |
|---|---|---|
| str | string | — |
Returns
numberComputes a hash for the given array.
| Parameter | Type | Default Value |
|---|---|---|
| array | Array<number> | — |
Returns
numberComputes a hash for the given list of parameters.
| Parameter | Type | Default Value |
|---|---|---|
| params | ...Array<number> | — |
Returns
numberReturns the data type for the given the length.
| Parameter | Type | Default Value |
|---|---|---|
| length | number | — |
Returns
stringReturns the typed array for the given data type.
| Parameter | Type | Default Value |
|---|---|---|
| type | string | — |
Returns
TypedArrayReturns the length for the given data type.
| Parameter | Type | Default Value |
|---|---|---|
| type | string | — |
Returns
numberReturns the gpu memory length for the given data type in 4-byte elements.
| Parameter | Type | Default Value |
|---|---|---|
| type | string | — |
Returns
numberReturns the alignment requirement for the given data type in 4-byte elements.
| Parameter | Type | Default Value |
|---|---|---|
| type | string | — |
Returns
numberReturns the data type for the given value.
| Parameter | Type | Default Value |
|---|---|---|
| value | any | — |
Returns
null | stringReturns the node data type for the given texture.
| Parameter | Type | Default Value |
|---|---|---|
| texture | Texture | — |
Returns
stringReturns the value/object for the given data type and parameters.
| Parameter | Type | Default Value |
|---|---|---|
| type | string | — |
| params | ...Array<any> | — |
Returns
anyGets the object data that can be shared between different rendering steps.
| Parameter | Type | Default Value |
|---|---|---|
| object | Object | — |
Returns
ObjectConverts the given array buffer to a Base64 string.
| Parameter | Type | Default Value |
|---|---|---|
| arrayBuffer | ArrayBuffer | — |
Returns
stringMerges the given node build contexts into a new context, the data of the source context takes precedence. The node overrides of both contexts are merged as well, so the overrides of the target context still apply unless the source context overrides the same node.
| Parameter | Type | Default Value |
|---|---|---|
| target | Object | — |
| source | Object | — |
Returns
ObjectConverts the given Base64 string to an array buffer.
| Parameter | Type | Default Value |
|---|---|---|
| base64 | string | — |
Returns
ArrayBuffer| Parameter | Type | Default Value |
|---|---|---|
| params | any | — |
Returns
any