mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 18:29:23 +00:00
wgsl: Migrate from ignore() to phony-assignment
The rules have been relaxed about function values always needing to be consumed, so a bunch of these phony-assignments can be replaced with the RHS, but this will be done as a follow-up. Bug: tint:1213 Change-Id: Ie7c4280f87b4ad7e5a429994b0b88ac22c2f3a9f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/67300 Commit-Queue: Ben Clayton <bclayton@google.com> Commit-Queue: Corentin Wallez <cwallez@chromium.org> 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
e0b5664f98
commit
5c4ce7bd9b
@@ -639,7 +639,7 @@ TEST_F(RenderPipelineValidationTest, TextureComponentTypeCompatibility) {
|
||||
<< kScalarTypes[i] << R"(>;
|
||||
|
||||
[[stage(fragment)]] fn main() {
|
||||
ignore(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() {
|
||||
ignore(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