Skip to content

KDGpu::VulkanTimestampQueryRecorder

#include <vulkan_timestamp_query_recorder.h>

Public Functions

Name
VulkanTimestampQueryRecorder(VkCommandBuffer _commandBuffer, VulkanResourceManager * _vulkanResourceManager, const Handle< Device_t > & _deviceHandle, uint32_t _startQuery, uint32_t _maxQueryCount)
TimestampIndex writeTimestamp(PipelineStageFlags flags)
std::vector< uint64_t > queryResults()
void reset()
float timestampPeriod() const

Public Attributes

Name
VkCommandBuffer commandBuffer
VulkanResourceManager * vulkanResourceManager
Handle< Device_t > deviceHandle
uint32_t queryCount
uint32_t startQuery
uint32_t maxQueryCount
float m_timestampPeriod

Public Functions Documentation

function VulkanTimestampQueryRecorder

1
2
3
4
5
6
7
explicit VulkanTimestampQueryRecorder(
    VkCommandBuffer _commandBuffer,
    VulkanResourceManager * _vulkanResourceManager,
    const Handle< Device_t > & _deviceHandle,
    uint32_t _startQuery,
    uint32_t _maxQueryCount
)

function writeTimestamp

1
2
3
TimestampIndex writeTimestamp(
    PipelineStageFlags flags
)

function queryResults

1
std::vector< uint64_t > queryResults()

function reset

1
void reset()

function timestampPeriod

1
float timestampPeriod() const

Public Attributes Documentation

variable commandBuffer

1
VkCommandBuffer commandBuffer { VK_NULL_HANDLE };

variable vulkanResourceManager

1
VulkanResourceManager * vulkanResourceManager { nullptr };

variable deviceHandle

1
Handle< Device_t > deviceHandle;

variable queryCount

1
uint32_t queryCount { 0 };

variable startQuery

1
uint32_t startQuery;

variable maxQueryCount

1
uint32_t maxQueryCount;

variable m_timestampPeriod

1
float m_timestampPeriod { 1.0f };

Updated on 2024-12-22 at 00:01:23 +0000