Files
news.gitea.happylizard.me/bin/gems/rouge-4.7.0/lib/rouge/demos/hlsl
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

21 lines
351 B
Plaintext

struct PSInput
{
float4 position : SV_POSITION;
float4 color : COLOR;
};
// Vertex shader
PSInput VSMain(float4 position : POSITION, float4 color : COLOR)
{
PSInput result;
result.position = position;
result.color = color;
return result;
}
// Pixel shader
float4 PSMain(PSInput input) : SV_TARGET
{
return input.color;
}