SimplePixelShader.hlsl 238 B

1234567891011121314
  1. #if !defined(FLAGS_ADDED)
  2. # error FLAGS_ADDED not defined
  3. #endif
  4. struct PixelShaderInput
  5. {
  6. float4 pos : SV_POSITION;
  7. float3 color : COLOR0;
  8. };
  9. float4 mainPS(PixelShaderInput input) : SV_TARGET
  10. {
  11. return float4(input.color,1.0f);
  12. }