diff --git a/src/dawn_native/QueryHelper.cpp b/src/dawn_native/QueryHelper.cpp index e02272f0a6..048e279f65 100644 --- a/src/dawn_native/QueryHelper.cpp +++ b/src/dawn_native/QueryHelper.cpp @@ -70,20 +70,20 @@ namespace dawn_native { var timestamp : Timestamp = timestamps.t[index]; - # Return 0 for the unavailable value. + // Return 0 for the unavailable value. if (availability.v[index] == 0u) { timestamps.t[index].low = 0u; timestamps.t[index].high = 0u; return; } - # Multiply the values in timestamps buffer by the period. + // Multiply the values in timestamps buffer by the period. var period : f32 = params.period; var w : u32 = 0u; - # If the product of low 32-bits and the period does not exceed the maximum of u32, - # directly do the multiplication, otherwise, use two u32 to represent the high - # 16-bits and low 16-bits of this u32, then multiply them by the period separately. + // If the product of low 32-bits and the period does not exceed the maximum of u32, + // directly do the multiplication, otherwise, use two u32 to represent the high + // 16-bits and low 16-bits of this u32, then multiply them by the period separately. if (timestamp.low <= u32(f32(0xFFFFFFFFu) / period)) { timestamps.t[index].low = u32(round(f32(timestamp.low) * period)); } else { @@ -99,8 +99,8 @@ namespace dawn_native { timestamps.t[index].low = result; } - # Get the nearest integer to the float result. For high 32-bits, the round - # function will greatly help reduce the accuracy loss of the final result. + // Get the nearest integer to the float result. For high 32-bits, the round + // function will greatly help reduce the accuracy loss of the final result. timestamps.t[index].high = u32(round(f32(timestamp.high) * period)) + w; } )"; diff --git a/src/tests/end2end/DepthStencilStateTests.cpp b/src/tests/end2end/DepthStencilStateTests.cpp index a80ddb3474..e61c7b6264 100644 --- a/src/tests/end2end/DepthStencilStateTests.cpp +++ b/src/tests/end2end/DepthStencilStateTests.cpp @@ -65,10 +65,10 @@ class DepthStencilStateTest : public DawnTest { const pos : array, 6> = array, 6>( vec2(-1.0, 1.0), vec2(-1.0, -1.0), - vec2( 1.0, -1.0), # front-facing + vec2( 1.0, -1.0), // front-facing vec2(-1.0, 1.0), vec2( 1.0, 1.0), - vec2( 1.0, -1.0)); # back-facing + vec2( 1.0, -1.0)); // back-facing Position = vec4(pos[VertexIndex], ubo.depth, 1.0); })"); diff --git a/src/tests/end2end/FirstIndexOffsetTests.cpp b/src/tests/end2end/FirstIndexOffsetTests.cpp index 53019bb8b1..0e64de7624 100644 --- a/src/tests/end2end/FirstIndexOffsetTests.cpp +++ b/src/tests/end2end/FirstIndexOffsetTests.cpp @@ -119,7 +119,7 @@ void FirstIndexOffsetTests::TestImpl(DrawMode mode, [[offset(4)]] instance_index : u32; }; - [[set(0), binding(0)]] var idx_vals : [[access(read_write)]] IndexVals; + [[group(0), binding(0)]] var idx_vals : [[access(read_write)]] IndexVals; [[stage(fragment)]] fn main() -> void { )";