librashader/test/capi-tests/librashader-capi-tests/dx11-example/shaders.hlsl
2023-01-26 23:18:10 -05:00

20 lines
384 B
HLSL

struct VS_Input {
float2 pos : POS;
float4 color : COL;
};
struct VS_Output {
float4 position : SV_POSITION;
float4 color : COL;
};
VS_Output vs_main(VS_Input input) {
VS_Output output;
output.position = float4(input.pos, 0.0f, 1.0f);
output.color = input.color;
return output;
}
float4 ps_main(VS_Output input) : SV_TARGET { return input.color; }