mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 18:29:23 +00:00
tint/writer/msl: Inline constant expressions
This is required to handle materialized values, and for constant expressions. Bug: tint:1504 Change-Id: Ic3ac62317241fa6f7009360128f222aeb56f62e4 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/92083 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
2e22d9285c
commit
cb6ddd2aa6
@@ -6,7 +6,7 @@ void foo() {
|
||||
float4 b = 0.0f;
|
||||
float2x2 c = float2x2(0.0f);
|
||||
a = (a / 2);
|
||||
b = (b * float4x4());
|
||||
b = (b * float4x4(float4(0.0f), float4(0.0f), float4(0.0f), float4(0.0f)));
|
||||
c = (c * 2.0f);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user