mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-13 08:36:08 +00:00
The transform was not correctly inserting the intrinsic call after array element types. Fixed: chromium:1290107 Change-Id: I7199d1846cb98305d789cf0bc362eb5872d9b917 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/78542 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: James Price <jrprice@google.com>
16 lines
302 B
Plaintext
16 lines
302 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
struct tint_symbol_1 {
|
|
/* 0x0000 */ uint4 buffer_size[1];
|
|
};
|
|
struct S {
|
|
float f;
|
|
};
|
|
|
|
kernel void tint_symbol(const constant tint_symbol_1* tint_symbol_3 [[buffer(30)]]) {
|
|
uint const len = ((*(tint_symbol_3)).buffer_size[0u][0u] / 4u);
|
|
return;
|
|
}
|
|
|