|
Bicameral Engine
GPU-resident engine for a magic-research open-world game
|
#include <work_graph_stats.h>
Public Member Functions | |
| D3D12_GPU_VIRTUAL_ADDRESS | GpuAddress () const |
| const GraphStatsLayout & | Layout () const |
| void | RecordBegin (ID3D12GraphicsCommandList *list) const |
| void | RecordReadbackAndReset (ID3D12GraphicsCommandList *list, uint32_t slot=0) const |
| std::expected< GraphStatsSnapshot, std::string > | Read (uint32_t slot=0) const |
| std::vector< GraphFinding > | Report (const GraphStatsSnapshot &snapshot) |
Static Public Member Functions | |
| static std::expected< WorkGraphStats, std::string > | Create (ID3D12Device *device, GraphStatsLayout layout, uint32_t slotCount=1) |
Static Public Attributes | |
| static constexpr uint64_t | WARNING_REPEAT_REPORTS = 600 |
Private Member Functions | |
| WorkGraphStats (ReadbackRing &&ring, GraphStatsLayout &&layout) | |
Private Attributes | |
| ReadbackRing | m_ring |
| GraphStatsLayout | m_layout |
| uint64_t | m_reportCount = 0 |
| std::vector< uint64_t > | m_lastWarnedReport |
Definition at line 101 of file work_graph_stats.h.
|
private |
Definition at line 149 of file work_graph_stats.cpp.
References m_lastWarnedReport, m_layout, and m_ring.
Referenced by Create().
|
staticnodiscard |
Definition at line 154 of file work_graph_stats.cpp.
References bicameral::gpu::ReadbackRing::Create(), bicameral::gpu::GraphStatsLayout::gauges, bicameral::gpu::GraphStatsLayout::name, bicameral::gpu::GraphStatsLayout::nodes, and WorkGraphStats().
Referenced by bicameral::sim::ProbeSim::Create().
|
inlinenodiscard |
Definition at line 111 of file work_graph_stats.h.
References m_ring.
|
inlinenodiscard |
Definition at line 112 of file work_graph_stats.h.
References m_layout.
|
nodiscard |
Definition at line 178 of file work_graph_stats.cpp.
References bicameral::gpu::GraphStatsSnapshot::gaugePeaks, m_layout, m_ring, and bicameral::gpu::GraphStatsSnapshot::nodes.
| void bicameral::gpu::WorkGraphStats::RecordBegin | ( | ID3D12GraphicsCommandList * | list | ) | const |
Definition at line 170 of file work_graph_stats.cpp.
References m_ring.
| void bicameral::gpu::WorkGraphStats::RecordReadbackAndReset | ( | ID3D12GraphicsCommandList * | list, |
| uint32_t | slot = 0 ) const |
Definition at line 174 of file work_graph_stats.cpp.
References m_ring.
| std::vector< GraphFinding > bicameral::gpu::WorkGraphStats::Report | ( | const GraphStatsSnapshot & | snapshot | ) |
Definition at line 195 of file work_graph_stats.cpp.
References bicameral::gpu::EvaluateGraphStats(), bicameral::gpu::FormatGraphStats(), bicameral::GetLogger(), bicameral::Log(), m_lastWarnedReport, m_layout, m_reportCount, bicameral::Trace, bicameral::Warning, WARNING_REPEAT_REPORTS, and bicameral::WorkGraph.
|
private |
Definition at line 133 of file work_graph_stats.h.
Referenced by Report(), and WorkGraphStats().
|
private |
Definition at line 130 of file work_graph_stats.h.
Referenced by Layout(), Read(), Report(), and WorkGraphStats().
|
private |
Definition at line 131 of file work_graph_stats.h.
Referenced by Report().
|
private |
Definition at line 129 of file work_graph_stats.h.
Referenced by GpuAddress(), Read(), RecordBegin(), RecordReadbackAndReset(), and WorkGraphStats().
|
staticconstexpr |
Definition at line 104 of file work_graph_stats.h.
Referenced by Report().