fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct myFloat4 {
  5. float x, y,z, w;
  6. };
  7.  
  8. struct ClearOptions {
  9. struct myFloat4 clearColor = {};
  10. uint8_t clearStencil = 0u;
  11. bool clear = false;
  12.  
  13. bool discard = true;
  14. };
  15.  
  16. int main() {
  17. // your code goes here
  18. struct ClearOptions opts{{ 0.0,0.0,0.0f, 0.0f }, true};
  19. printf("clear: %d, clearStencil: %d\n", opts.clear, opts.clearStencil);
  20. return 0;
  21. }
Success #stdin #stdout 0.01s 5292KB
stdin
Standard input is empty
stdout
clear: 0, clearStencil: 1