SamplePixelShader.hlsl 287 B

123456789101112
  1. // Per-pixel color data passed through the pixel shader.
  2. struct PixelShaderInput
  3. {
  4. float4 pos : SV_POSITION;
  5. float3 color : COLOR0;
  6. };
  7. // A pass-through function for the (interpolated) color data.
  8. float4 main(PixelShaderInput input) : SV_TARGET
  9. {
  10. return float4(input.color, 1.0f);
  11. }