2021-05-18 09:24:18 +00:00
|
|
|
struct tint_symbol_1 {
|
2021-06-02 20:53:14 +00:00
|
|
|
uint VertexIndex : SV_VertexID;
|
2021-05-18 09:24:18 +00:00
|
|
|
};
|
|
|
|
struct tint_symbol_2 {
|
|
|
|
float4 value : SV_Position;
|
|
|
|
};
|
|
|
|
|
|
|
|
tint_symbol_2 vtx_main(tint_symbol_1 tint_symbol) {
|
2021-06-02 20:53:14 +00:00
|
|
|
const uint VertexIndex = tint_symbol.VertexIndex;
|
2021-07-05 15:20:57 +00:00
|
|
|
float2 pos[3] = {float2(0.0f, 0.5f), float2(-0.5f, -0.5f), float2(0.5f, -0.5f)};
|
|
|
|
const tint_symbol_2 tint_symbol_4 = {float4(pos[VertexIndex], 0.0f, 1.0f)};
|
2021-05-18 09:24:18 +00:00
|
|
|
return tint_symbol_4;
|
|
|
|
}
|
|
|
|
|
2021-06-16 09:19:36 +00:00
|
|
|
struct tint_symbol_3 {
|
|
|
|
float4 value : SV_Target0;
|
|
|
|
};
|
|
|
|
|
2021-05-18 09:24:18 +00:00
|
|
|
tint_symbol_3 frag_main() {
|
|
|
|
const tint_symbol_3 tint_symbol_5 = {float4(1.0f, 0.0f, 0.0f, 1.0f)};
|
|
|
|
return tint_symbol_5;
|
|
|
|
}
|