Explorar el Código

WebGPUBindingUtils: Define `sampleType` for all data textures consistently. (#28940)

Michael Herzog hace 1 año
padre
commit
a00f79b322
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/renderers/webgpu/utils/WebGPUBindingUtils.js

+ 1 - 1
src/renderers/webgpu/utils/WebGPUBindingUtils.js

@@ -81,7 +81,7 @@ class WebGPUBindingUtils {
 
 					texture.sampleType = GPUTextureSampleType.Depth;
 
-				} else if ( binding.texture.isDataTexture ) {
+				} else if ( binding.texture.isDataTexture || binding.texture.isDataArrayTexture || binding.texture.isData3DTexture ) {
 
 					const type = binding.texture.type;
 

粤ICP备19079148号