Преглед на файлове

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

Michael Herzog преди 1 година
родител
ревизия
a00f79b322
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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;
 					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;
 					const type = binding.texture.type;
 
 

粤ICP备19079148号