mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-18 01:15:39 +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
@@ -2,6 +2,6 @@
|
||||
|
||||
using namespace metal;
|
||||
void f() {
|
||||
bool4 v = bool4();
|
||||
bool4 v = bool4(false);
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
|
||||
using namespace metal;
|
||||
void f() {
|
||||
float4 v = float4();
|
||||
float4 v = float4(0.0f);
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
|
||||
using namespace metal;
|
||||
void f() {
|
||||
int4 v = int4();
|
||||
int4 v = int4(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
|
||||
using namespace metal;
|
||||
void f() {
|
||||
uint4 v = uint4();
|
||||
uint4 v = uint4(0u);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user