Clear.bsl 538 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. technique Clear
  2. {
  3. depth
  4. {
  5. read = false;
  6. write = false;
  7. };
  8. code
  9. {
  10. struct VStoFS
  11. {
  12. float4 position : SV_Position;
  13. };
  14. struct VertexInput
  15. {
  16. float2 screenPos : POSITION;
  17. float2 uv0 : TEXCOORD0;
  18. };
  19. cbuffer Params
  20. {
  21. uint gClearValue;
  22. };
  23. VStoFS vsmain(VertexInput input)
  24. {
  25. VStoFS output;
  26. output.position = float4(input.screenPos, 0, 1);
  27. return output;
  28. }
  29. uint4 fsmain(VStoFS input) : SV_Target0
  30. {
  31. return uint4(gClearValue, gClearValue, gClearValue, gClearValue);
  32. }
  33. };
  34. };