Skip to content

Commit

Permalink
update getCustomStructNameFromShader
Browse files Browse the repository at this point in the history
  • Loading branch information
Attila Schroeder committed Nov 21, 2024
1 parent 9f9b70d commit d704d92
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/renderers/webgpu/nodes/WGSLNodeBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,6 @@ ${ flowData.code }
const bufferType = this.getType( bufferNode.bufferType );
const bufferCount = bufferNode.bufferCount;


const isArray = bufferNode.value.array.length !== bufferNode.value.itemSize;
const bufferCountSnippet = bufferCount > 0 && uniform.type === 'buffer' ? ', ' + bufferCount : '';
const bufferTypeSnippet = bufferNode.isAtomic ? `atomic<${bufferType}>` : `${bufferType}`;
Expand Down Expand Up @@ -1658,4 +1657,4 @@ var<${access}> ${name} : ${structName_};`;

}

export default WGSLNodeBuilder;
export default WGSLNodeBuilder;

0 comments on commit d704d92

Please sign in to comment.