Ver código fonte

Examples: Fix compute_texture_pingpong example (#32039)

Renaud Rohlinger 3 meses atrás
pai
commit
195f172cce
1 arquivos alterados com 1 adições e 2 exclusões
  1. 1 2
      src/renderers/webgpu/nodes/WGSLNodeBuilder.js

+ 1 - 2
src/renderers/webgpu/nodes/WGSLNodeBuilder.js

@@ -951,8 +951,7 @@ class WGSLNodeBuilder extends NodeBuilder {
 
 
 				}
 				}
 
 
-				// Only mark as storage binding when actually writing (storeNode is set)
-				texture.store = node.isStorageTextureNode === true && node.storeNode !== null;
+				texture.store = node.isStorageTextureNode === true;
 				texture.mipLevel = texture.store ? node.mipLevel : 0;
 				texture.mipLevel = texture.store ? node.mipLevel : 0;
 				texture.setVisibility( gpuShaderStageLib[ shaderStage ] );
 				texture.setVisibility( gpuShaderStageLib[ shaderStage ] );
 
 

粤ICP备19079148号