Drawcall.h 462 B

1234567891011121314151617181920212223242526272829
  1. #ifndef ANKI_GL_DRAWCALL_H
  2. #define ANKI_GL_DRAWCALL_H
  3. #include "anki/gl/Ogl.h"
  4. #include "anki/util/StdTypes.h"
  5. namespace anki {
  6. /// @addtogroup OpenGL
  7. /// @{
  8. /// A GL drawcall
  9. struct Drawcall
  10. {
  11. GLenum primitiveType = 0;
  12. GLenum indicesType = 0;
  13. U32 instancesCount = 1;
  14. GLsizei* indicesCountArray = nullptr;
  15. const GLvoid** offsetsArray = nullptr;
  16. U32 drawcallCount = 1;
  17. /// Execute the dracall
  18. void enque();
  19. };
  20. /// @}
  21. } // end namespace anki
  22. #endif