dawn-cmake/test/bug/tint/453.wgsl.expected.msl
James Price 567f2e4f3b transform/msl: Run InlinePointerLets and Simplify
This will be relied on by the upcoming arrayLength transform.

Update test expectations.

Change-Id: Ib74b647abcd6f4393f9899ce40bbf06f6e53e7f4
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/55180
Commit-Queue: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
2021-06-18 09:47:23 +00:00

15 lines
459 B
Plaintext

#include <metal_stdlib>
using namespace metal;
kernel void tint_symbol(texture2d<uint, access::read> tint_symbol_1 [[texture(0)]], texture2d<uint, access::write> tint_symbol_2 [[texture(1)]]) {
uint4 srcValue = 0u;
uint4 const x_22 = tint_symbol_1.read(uint2(int2(0, 0)));
srcValue = x_22;
uint const x_24 = srcValue.x;
uint const x_25 = (x_24 + 1u);
uint4 const x_27 = srcValue;
tint_symbol_2.write(x_27.xxxx, uint2(int2(0, 0)));
return;
}