2021-05-18 09:24:18 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
|
|
|
|
using namespace metal;
|
|
|
|
struct tint_symbol_1 {
|
|
|
|
float4 value [[position]];
|
|
|
|
};
|
2021-06-16 17:42:53 +00:00
|
|
|
struct tint_array_wrapper {
|
|
|
|
float2 arr[3];
|
|
|
|
};
|
2021-06-04 14:40:28 +00:00
|
|
|
struct tint_symbol_2 {
|
2021-05-18 09:24:18 +00:00
|
|
|
float4 value [[color(0)]];
|
|
|
|
};
|
|
|
|
|
2021-06-04 14:40:28 +00:00
|
|
|
vertex tint_symbol_1 vtx_main(uint VertexIndex [[vertex_id]]) {
|
2021-06-16 17:42:53 +00:00
|
|
|
tint_array_wrapper pos = {.arr={float2(0.0f, 0.5f), float2(-0.5f, -0.5f), float2(0.5f, -0.5f)}};
|
2021-06-16 09:19:36 +00:00
|
|
|
tint_symbol_1 const tint_symbol_3 = {.value=float4(pos.arr[VertexIndex], 0.0f, 1.0f)};
|
2021-06-04 14:40:28 +00:00
|
|
|
return tint_symbol_3;
|
2021-05-18 09:24:18 +00:00
|
|
|
}
|
|
|
|
|
2021-06-04 14:40:28 +00:00
|
|
|
fragment tint_symbol_2 frag_main() {
|
|
|
|
tint_symbol_2 const tint_symbol_4 = {.value=float4(1.0f, 0.0f, 0.0f, 1.0f)};
|
|
|
|
return tint_symbol_4;
|
2021-05-18 09:24:18 +00:00
|
|
|
}
|
|
|
|
|