mirror of
https://github.com/servo/servo.git
synced 2025-07-28 17:50:37 +01:00
13 lines
398 B
HLSL
13 lines
398 B
HLSL
// Per-pixel color data passed through the pixel shader.
|
|
struct PixelShaderInput
|
|
{
|
|
min16float4 pos : SV_POSITION;
|
|
min16float3 color : COLOR0;
|
|
};
|
|
|
|
// The pixel shader passes through the color data. The color data from
|
|
// is interpolated and assigned to a pixel at the rasterization step.
|
|
min16float4 main(PixelShaderInput input) : SV_TARGET
|
|
{
|
|
return min16float4(input.color, 1.0f);
|
|
}
|