Explorar el Código

WebGPUAttributeUtils: Add int8/uint8 patch (#30749)

sunag hace 1 año
padre
commit
ff493e732c
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/renderers/webgpu/utils/WebGPUAttributeUtils.js

+ 2 - 2
src/renderers/webgpu/utils/WebGPUAttributeUtils.js

@@ -71,11 +71,11 @@ class WebGPUAttributeUtils {
 			// patch for INT16 and UINT16
 			if ( attribute.normalized === false ) {
 
-				if ( array.constructor === Int16Array ) {
+				if ( array.constructor === Int16Array || array.constructor === Int8Array ) {
 
 					array = new Int32Array( array );
 
-				} else if ( array.constructor === Uint16Array ) {
+				} else if ( array.constructor === Uint16Array || array.constructor === Uint8Array ) {
 
 					array = new Uint32Array( array );
 

粤ICP备19079148号