dawn-cmake/test/tint/statements/compound_assign/function.wgsl.expected.msl
James Price 60107e7435 msl: Implement compound assignment
Use the ExpandCompoundAssignment transform to convert compound
assignments to regular assignments.

Bug: tint:1325
Change-Id: I960bf6cd0ec3490cd58685a7c13b6a7c86395080
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/85283
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
2022-03-31 22:30:10 +00:00

13 lines
184 B
Plaintext

#include <metal_stdlib>
using namespace metal;
void foo() {
int a = 0;
float4 b = 0.0f;
float2x2 c = float2x2(0.0f);
a = (a / 2);
b = (b * float4x4());
c = (c * 2.0f);
}