diff --git a/examples/webgpu_compute_birds.html b/examples/webgpu_compute_birds.html
index c67f8caa6a3770..7bc79e80daac05 100644
--- a/examples/webgpu_compute_birds.html
+++ b/examples/webgpu_compute_birds.html
@@ -505,7 +505,7 @@
renderer.compute( computeVelocity );
renderer.compute( computePosition );
- renderer.resolveTimestampsAsync( 'compute' );
+ renderer.resolveTimestampsAsync( THREE.TimestampQuery.COMPUTE );
renderer.render( scene, camera );
// Move pointer away so we only affect birds when moving the mouse
diff --git a/examples/webgpu_compute_particles_snow.html b/examples/webgpu_compute_particles_snow.html
index ec450fedd674da..7042230b332949 100644
--- a/examples/webgpu_compute_particles_snow.html
+++ b/examples/webgpu_compute_particles_snow.html
@@ -350,7 +350,7 @@
// compute
renderer.compute( computeParticles );
- renderer.resolveTimestampsAsync( 'compute' );
+ renderer.resolveTimestampsAsync( THREE.TimestampQuery.COMPUTE );
// result
diff --git a/examples/webgpu_compute_points.html b/examples/webgpu_compute_points.html
index 282aaf280140cb..02e1ff5f08a4ea 100644
--- a/examples/webgpu_compute_points.html
+++ b/examples/webgpu_compute_points.html
@@ -176,7 +176,7 @@
function animate() {
renderer.compute( computeNode );
- renderer.resolveTimestampsAsync( 'compute' );
+ renderer.resolveTimestampsAsync( THREE.TimestampQuery.COMPUTE );
renderer.render( scene, camera );
diff --git a/examples/webgpu_performance.html b/examples/webgpu_performance.html
index 1b6fc47be2ad29..39bbdb49cef845 100644
--- a/examples/webgpu_performance.html
+++ b/examples/webgpu_performance.html
@@ -160,7 +160,7 @@
async function render() {
await renderer.renderAsync( scene, camera );
- renderer.resolveTimestampsAsync( 'render' );
+ renderer.resolveTimestampsAsync( THREE.TimestampQuery.RENDER );
stats.update();
diff --git a/src/constants.js b/src/constants.js
index 89116a5eb6cb91..e73c0b42ef7077 100644
--- a/src/constants.js
+++ b/src/constants.js
@@ -209,3 +209,8 @@ export const GLSL3 = '300 es';
export const WebGLCoordinateSystem = 2000;
export const WebGPUCoordinateSystem = 2001;
+
+export const TimestampQuery = {
+ COMPUTE: 'compute',
+ RENDER: 'render'
+};
diff --git a/src/nodes/accessors/Arrays.js b/src/nodes/accessors/Arrays.js
index f7085fba0f1285..e516ca823aabbb 100644
--- a/src/nodes/accessors/Arrays.js
+++ b/src/nodes/accessors/Arrays.js
@@ -9,7 +9,7 @@ import { getLengthFromType, getTypedArrayFromType } from '../core/NodeUtils.js';
* TSL function for creating a storage buffer node with a configured `StorageBufferAttribute`.
*
* @function
- * @param {Number|TypedArray} count - The data count.
+ * @param {Number|TypedArray} count - The data count. It is also valid to pass a typed array as an argument.
* @param {String} [type='float'] - The data type.
* @returns {StorageBufferNode}
*/
@@ -29,7 +29,7 @@ export const attributeArray = ( count, type = 'float' ) => {
* TSL function for creating a storage buffer node with a configured `StorageInstancedBufferAttribute`.
*
* @function
- * @param {Number|TypedArray} count - The data count.
+ * @param {Number|TypedArray} count - The data count. It is also valid to pass a typed array as an argument.
* @param {String} [type='float'] - The data type.
* @returns {StorageBufferNode}
*/