mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-01 20:21:23 +00:00
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>
10 lines
310 B
Plaintext
10 lines
310 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
void foo(thread int* const tint_symbol, thread float4* const tint_symbol_1, thread float2x2* const tint_symbol_2) {
|
|
*(tint_symbol) = (*(tint_symbol) / 2);
|
|
*(tint_symbol_1) = (*(tint_symbol_1) * float4x4());
|
|
*(tint_symbol_2) = (*(tint_symbol_2) * 2.0f);
|
|
}
|
|
|