Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.1 KiB

  1. //========= Copyright � 1996-2008, Valve Corporation, All rights reserved. ============//
  2. #ifndef VJOBS_IBMARKUP_SHARED_HDR
  3. #define VJOBS_IBMARKUP_SHARED_HDR
  4. namespace OptimizedModel
  5. {
  6. //
  7. // On PS3 index buffer is laid out very specially:
  8. //
  9. // Header:
  10. // 0xFFFE 0xFFFE 0xFFFE 0xFFFE
  11. //
  12. #ifdef _WIN32
  13. #pragma warning( push )
  14. #pragma warning( disable : 4200 )
  15. #endif
  16. struct OptimizedIndexBufferMarkupPs3_t
  17. {
  18. static const uint64 kHeaderCookie = 0xFFFEFFFEFFFEFFFEull;
  19. static const uint16 kVersion1 = 0x0001;
  20. uint64 m_uiHeaderCookie;
  21. uint16 m_uiVersionFlags;
  22. uint16 m_numBytesMarkup;
  23. uint32 m_numPartitions;
  24. uint32 m_numIndicesTotal;
  25. uint32 m_numVerticesTotal;
  26. uint32 m_nEdgeDmaInputOffsetPerStripGroup;
  27. uint32 m_nEdgeDmaInputSizePerStripGroup;
  28. struct Partition_t
  29. {
  30. uint32 m_numIndicesToSkipInIBs;
  31. uint32 m_numVerticesToSkipInVBs;
  32. uint32 m_nIoBufferSize;
  33. uint32 m_numIndices;
  34. uint32 m_numVertices;
  35. uint32 m_nEdgeDmaInputIdx;
  36. uint32 m_nEdgeDmaInputVtx;
  37. uint32 m_nEdgeDmaInputEnd;
  38. };
  39. Partition_t m_partitions[0];
  40. };
  41. #ifdef _WIN32
  42. #pragma warning( pop )
  43. #endif
  44. }
  45. #endif