dx12debug.cpp 575 B

12345678910111213141516171819202122
  1. #define HL_NAME(n) dx12debug_##n
  2. #include <hl.h>
  3. #undef _GUID
  4. #ifdef HL_WIN_DESKTOP
  5. #include <d3d12.h>
  6. #define USE_PIX
  7. #include <pix3.h>
  8. #endif
  9. #define _RES _ABSTRACT(dx_resource)
  10. HL_PRIM void HL_NAME(command_list_pix_begin_event)(ID3D12GraphicsCommandList* l, UINT64 color, wchar_t const* formatString) {
  11. PIXBeginEvent(l, color, formatString);
  12. }
  13. HL_PRIM void HL_NAME(command_list_pix_end_event)(ID3D12GraphicsCommandList* l) {
  14. PIXEndEvent(l);
  15. }
  16. DEFINE_PRIM(_VOID, command_list_pix_begin_event, _RES _I64 _BYTES);
  17. DEFINE_PRIM(_VOID, command_list_pix_end_event, _RES);