Skip to content

Commit ff493e7

Browse files
authoredMar 17, 2025
WebGPUAttributeUtils: Add int8/uint8 patch (#30749)
1 parent d808e37 commit ff493e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/renderers/webgpu/utils/WebGPUAttributeUtils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ class WebGPUAttributeUtils {
7171
// patch for INT16 and UINT16
7272
if ( attribute.normalized === false ) {
7373

74-
if ( array.constructor === Int16Array ) {
74+
if ( array.constructor === Int16Array || array.constructor === Int8Array ) {
7575

7676
array = new Int32Array( array );
7777

78-
} else if ( array.constructor === Uint16Array ) {
78+
} else if ( array.constructor === Uint16Array || array.constructor === Uint8Array ) {
7979

8080
array = new Uint32Array( array );
8181

0 commit comments

Comments
 (0)