librashader/test/capi-tests/librashader-capi-tests/dx11-example/shaders.hlsl

20 lines
384 B
HLSL
Raw Normal View History

2023-01-27 15:18:10 +11:00
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; }