Skip to content

Commit ad0dbfe

Browse files
authored
webgpu: add wgsl comment tag (#29709)
1 parent 8f4990f commit ad0dbfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderers/webgpu/nodes/WGSLNodeBuilder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const wgslPolyfill = {
7171
equals_bvec2: new CodeNode( 'fn tsl_equals_bvec2( a : vec2f, b : vec2f ) -> vec2<bool> { return vec2<bool>( a.x == b.x, a.y == b.y ); }' ),
7272
equals_bvec3: new CodeNode( 'fn tsl_equals_bvec3( a : vec3f, b : vec3f ) -> vec3<bool> { return vec3<bool>( a.x == b.x, a.y == b.y, a.z == b.z ); }' ),
7373
equals_bvec4: new CodeNode( 'fn tsl_equals_bvec4( a : vec4f, b : vec4f ) -> vec4<bool> { return vec4<bool>( a.x == b.x, a.y == b.y, a.z == b.z, a.w == b.w ); }' ),
74-
repeatWrapping: new CodeNode( `
74+
repeatWrapping: new CodeNode( /* wgsl */`
7575
fn tsl_repeatWrapping( uv : vec2<f32>, dimension : vec2<u32> ) -> vec2<u32> {
7676
7777
let uvScaled = vec2<u32>( uv * vec2<f32>( dimension ) );
@@ -80,7 +80,7 @@ fn tsl_repeatWrapping( uv : vec2<f32>, dimension : vec2<u32> ) -> vec2<u32> {
8080
8181
}
8282
` ),
83-
biquadraticTexture: new CodeNode( `
83+
biquadraticTexture: new CodeNode( /* wgsl */`
8484
fn tsl_biquadraticTexture( map : texture_2d<f32>, coord : vec2f, level : i32 ) -> vec4f {
8585
8686
let iRes = vec2i( textureDimensions( map, level ) );

0 commit comments

Comments
 (0)