Files
XCEngine/tests/RHI/D3D12/integration/triangle/Res/Shader/triangle.hlsl

20 lines
293 B
HLSL
Raw Normal View History

struct Vertex {
float4 pos : POSITION;
float4 col : COLOR;
};
struct VSOut {
float4 pos : SV_POSITION;
float4 col : COLOR;
};
VSOut MainVS(Vertex v) {
VSOut o;
o.pos = v.pos;
o.col = v.col;
return o;
}
float4 MainPS(VSOut i) : SV_TARGET {
return i.col;
}