mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Added GraphicsContext, SwapChain, Buffer, VertexBuffer, IndexBuffer and a basic DX11 implementation.
25 lines
375 B
HLSL
25 lines
375 B
HLSL
struct VS_IN
|
|
{
|
|
float3 Position : POSITION;
|
|
float4 Color : COLOR;
|
|
};
|
|
|
|
struct PS_IN
|
|
{
|
|
float4 Position : SV_POSITION;
|
|
float4 Color : COLOR;
|
|
};
|
|
|
|
PS_IN VS(VS_IN input)
|
|
{
|
|
PS_IN output;
|
|
output.Position = float4(input.Position, 1);
|
|
output.Color = input.Color;
|
|
|
|
return output;
|
|
}
|
|
|
|
float4 PS(PS_IN input) : SV_TARGET
|
|
{
|
|
return input.Color;
|
|
} |