testLib.h 624 B

12345678910111213141516171819202122232425
  1. #include "HLSLRayTracingInternalPrototypes.h"
  2. RWStructuredBuffer<int> input : register(u0);
  3. RWStructuredBuffer<int> output : register(u1);
  4. RWStructuredBuffer<int> one : register(u2);
  5. cbuffer TestConstants : register(b0)
  6. {
  7. int initialStateId;
  8. }
  9. // Read one integer from the input buffer
  10. int consume();
  11. int peekInput();
  12. // Write val to the output buffer
  13. void append(int val);
  14. // Returns idx by reading the value of 1 from the one buffer. This is to avoid the
  15. // compiler optimizing stuff away.
  16. int load(int idx);
  17. // Write both val and the expected value to the output
  18. void verify(int val, int expected);