n000l

Untitled

Jul 30th, 2021 (edited)
18
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #define GPU_ASSERT(cond) \
  2. do \
  3. { \
  4. if( !(cond) ) \
  5. { \
  6. printf("%s (%d): %s\n", __FILE__, __LINE__, #cond); \
  7. char *c__ = nullptr; *c__ = 0; \
  8. } \
  9. } while( 0 )
  10.  
  11. struct s0 {
  12. float v1;
  13. bool v2;
  14. bool v3;
  15. };
  16.  
  17. struct s1 {
  18. float3 v0;
  19. float3 v1;
  20. float3 v2;
  21. };
  22.  
  23. class s2 {
  24. union {
  25. const void *v0;
  26. const void *v1;
  27. } v0;
  28.  
  29. s1 v1;
  30. float3 v2;
  31. float3 v3;
  32. int v4;
  33. float3 v5;
  34. float v6;
  35. float3 v7;
  36. float v8;
  37. };
  38.  
  39. struct s3 {
  40. float3 v0;
  41. unsigned int v1;
  42. float3 v2;
  43. unsigned char v3;
  44. unsigned char v4;
  45. s2 v5;
  46. s0 v6;
  47. };
RAW Paste Data