| #include <metal_stdlib> |
| |
| using namespace metal; |
| struct S { |
| float a; |
| }; |
| |
| struct tint_array_wrapper { |
| float arr[4]; |
| }; |
| |
| kernel void tint_symbol() { |
| bool bool_var = false; |
| bool const bool_let = false; |
| int i32_var = 0; |
| int const i32_let = 0; |
| uint u32_var = 0u; |
| uint const u32_let = 0u; |
| float f32_var = 0.0f; |
| float const f32_let = 0.0f; |
| int2 v2i32_var = int2(0); |
| int2 const v2i32_let = int2(0); |
| uint3 v3u32_var = uint3(0u); |
| uint3 const v3u32_let = uint3(0u); |
| float4 v4f32_var = float4(0.0f); |
| float4 const v4f32_let = float4(0.0f); |
| float2x3 m2x3_var = float2x3(float3(0.0f), float3(0.0f)); |
| float3x4 const m3x4_let = float3x4(float4(0.0f), float4(0.0f), float4(0.0f)); |
| tint_array_wrapper arr_var = {.arr={}}; |
| tint_array_wrapper const arr_let = {.arr={}}; |
| S struct_var = {}; |
| S const struct_let = {}; |
| return; |
| } |
| |