Kaynağa Gözat

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

Michael Herzog 1 yıl önce
ebeveyn
işleme
a00f79b322

+ 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号