mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 00:17:03 +00:00
Fix MSL packed_int casting.
In 104681 the vectors were cast to themselves to fixup an issue with `packed_int`. That CL used an `as_type` which does a bit cast. A `packed_int` can not be bitcast to an `int`. This CL changes to a type cast, so instead of `as_type<int3>()` it does `int3()`. Bug: tint:1677 Change-Id: I72218c06853e4e5ae1a0d34e2fc3e1ca597de993 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/104682 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Auto-Submit: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
f35c719054
commit
8fd4ef26f5
@@ -4,7 +4,7 @@ using namespace metal;
|
||||
kernel void f() {
|
||||
int3 const a = int3(1, 2, 3);
|
||||
int3 const b = int3(4, 5, 6);
|
||||
int3 const r = as_type<int3>((as_type<uint3>(as_type<int3>(a)) * as_type<uint3>(as_type<int3>(b))));
|
||||
int3 const r = as_type<int3>((as_type<uint3>(int3(a)) * as_type<uint3>(int3(b))));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user