-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDebugDrawPass.h
More file actions
26 lines (17 loc) · 908 Bytes
/
Copy pathDebugDrawPass.h
File metadata and controls
26 lines (17 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once
#include <windows.h>
#include <wrl.h>
#include <d3d12.h>
class DDRenderInterfaceCoreD3D12;
// DebugDrawPass provides an interface for rendering debug geometry (lines, points, text, etc.) in a DirectX 12 application.
// It wraps the DebugDraw library's D3D12 implementation, manages its lifetime, and exposes a simple API for recording debug draw commands.
// Use this class to visualize geometry and diagnostics during development and debugging of graphics applications.
class DebugDrawPass
{
public:
DebugDrawPass(ID3D12Device4* device, ID3D12CommandQueue* uploadQueue, D3D12_CPU_DESCRIPTOR_HANDLE cpuText = { 0 }, D3D12_GPU_DESCRIPTOR_HANDLE gpuText = { 0 });
~DebugDrawPass();
void record(ID3D12GraphicsCommandList* commandList, uint32_t width, uint32_t height, const Matrix& view ,const Matrix& proj);
private:
static DDRenderInterfaceCoreD3D12* implementation;
};