Skip to content

KDGpu::VulkanTimestampQueryRecorder

#include <vulkan_timestamp_query_recorder.h>

Inherits from KDGpu::ApiTimestampQueryRecorder

Public Functions

Name
VulkanTimestampQueryRecorder(VkCommandBuffer _commandBuffer, VulkanResourceManager * _vulkanResourceManager, const Handle< Device_t > & _deviceHandle, uint32_t _startQuery, uint32_t _maxQueryCount)
virtual TimestampIndex writeTimestamp(PipelineStageFlags flags)
virtual std::vector< uint64_t > queryResults()
virtual void reset()
virtual 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
virtual TimestampIndex writeTimestamp(
    PipelineStageFlags flags
)

Reimplements: KDGpu::ApiTimestampQueryRecorder::writeTimestamp

function queryResults

1
virtual std::vector< uint64_t > queryResults()

Reimplements: KDGpu::ApiTimestampQueryRecorder::queryResults

function reset

1
virtual void reset()

Reimplements: KDGpu::ApiTimestampQueryRecorder::reset

function timestampPeriod

1
virtual float timestampPeriod() const

Reimplements: KDGpu::ApiTimestampQueryRecorder::timestampPeriod

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:08:03 +0000