Fix missing GPU events when using shaders profiling/debugging or graphics dev tools are enabled

This commit is contained in:
Wojtek Figat
2024-07-03 18:29:42 +02:00
parent b3d77ab9eb
commit b8100e9417
5 changed files with 23 additions and 11 deletions

View File

@@ -134,13 +134,18 @@ public:
/// </summary>
API_FIELD() static bool Enabled;
/// <summary>
/// True if GPU events are enabled (see GPUContext::EventBegin), otherwise false. Cannot be changed during rendering.
/// </summary>
API_FIELD() static bool EventsEnabled;
/// <summary>
/// The current frame buffer to collect events.
/// </summary>
static int32 CurrentBuffer;
/// <summary>
/// The events buffers (one per frame).
/// The event buffers (one per frame).
/// </summary>
static EventBuffer Buffers[PROFILER_GPU_EVENTS_FRAMES];