Просмотр исходного кода

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

Michael Herzog 1 год назад
Родитель
Сommit
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;
 
-				} else if ( binding.texture.isDataTexture ) {
+				} else if ( binding.texture.isDataTexture || binding.texture.isDataArrayTexture || binding.texture.isData3DTexture ) {
 
 					const type = binding.texture.type;
 

粤ICP备19079148号