Struct in ldk_rhi.h

LDKRHIFrameStats

Per-frame backend resource activity, useful for spotting resource churn.

typedef struct LDKRHIFrameStats{
  uint32_t buffer_create_count;
  uint32_t buffer_destroy_count;
  uint32_t buffer_update_count;
  uint64_t buffer_update_bytes;
  uint32_t uniform_buffer_update_count;
  uint64_t uniform_buffer_update_bytes;
  uint32_t vertex_buffer_update_count;
  uint64_t vertex_buffer_update_bytes;
  uint32_t index_buffer_update_count;
  uint64_t index_buffer_update_bytes;
  uint32_t instance_buffer_update_count;
  uint64_t instance_buffer_update_bytes;
  uint32_t other_buffer_update_count;
  uint64_t other_buffer_update_bytes;
  uint32_t texture_create_count;
  uint32_t texture_destroy_count;
  uint32_t framebuffer_create_count;
  uint32_t framebuffer_destroy_count;
}LDKRHIFrameStats;
Function in ldk_rhi.h

ldk_rhi_last_frame_stats_get

Returns backend resource activity for the last completed RHI frame.

LDK_API LDKRHIFrameStats ldk_rhi_last_frame_stats_get(const LDKRHIContext *context);

Parameters

const LDKRHIContext *context
RHI context.

Returns

Per-frame resource creation, destruction and upload counters.