mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 18:29:23 +00:00
wgsl: Remove unnecessary phony-assignments
A call-statement can now be made on a function that returns a value. Bug: tint:1256 Change-Id: I9a3cc4e330f7441e09dc408bdc1cfa515adac392 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/67382 Commit-Queue: Ben Clayton <bclayton@google.com> Auto-Submit: Ben Clayton <bclayton@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
5c4ce7bd9b
commit
066ab14e34
@@ -639,7 +639,7 @@ TEST_F(RenderPipelineValidationTest, TextureComponentTypeCompatibility) {
|
||||
<< kScalarTypes[i] << R"(>;
|
||||
|
||||
[[stage(fragment)]] fn main() {
|
||||
_ = textureDimensions(myTexture);
|
||||
textureDimensions(myTexture);
|
||||
})";
|
||||
descriptor.cFragment.module = utils::CreateShaderModule(device, stream.str().c_str());
|
||||
descriptor.cTargets[0].writeMask = wgpu::ColorWriteMask::None;
|
||||
@@ -688,7 +688,7 @@ TEST_F(RenderPipelineValidationTest, TextureViewDimensionCompatibility) {
|
||||
[[group(0), binding(0)]] var myTexture : )"
|
||||
<< kTextureKeywords[i] << R"(<f32>;
|
||||
[[stage(fragment)]] fn main() {
|
||||
_ = textureDimensions(myTexture);
|
||||
textureDimensions(myTexture);
|
||||
})";
|
||||
descriptor.cFragment.module = utils::CreateShaderModule(device, stream.str().c_str());
|
||||
descriptor.cTargets[0].writeMask = wgpu::ColorWriteMask::None;
|
||||
|
||||
Reference in New Issue
Block a user