Language:
Discover
By Skill Level
By Category

FVulkanOcclusionQueryPool

Choose your OS:

Inheritance Hierarchy

FDeviceChild

FVulkanQueryPool

FVulkanOcclusionQueryPool

Syntax

class FVulkanOcclusionQueryPool : public FVulkanQueryPool

Variables

Name Description

Protected variable

TArray < uint64 ...

 

AcquiredIndices

Protected variable

TArray < FVulkan ...

 

AllocatedQueries

Protected variable

FVulkanCmdBuffe...

 

CmdBuffer

Protected variable

uint64

 

FenceCounter

Protected variable

uint32

 

FrameNumber

Public variable

EState

 

State

Constructors

Name Description

Public function

FVulkanOcclusionQueryPool

(
    FVulkanDevice* InDevice,
    uint32 InMaxQueries
)

Functions

Name Description

Public function

uint32

 

AcquireIndex

(
    FVulkanOcclusionQuery * Query
)

Public function

bool

 

CanBeReused()

Inline VkResult FVulkanQueryPool::InternalGetQueryPoolResults(uint32 FirstQuery, uint32 NumQueries, VkQueryResultFlags ExtraFlags) { VkResult Result = VulkanRHI::vkGetQueryPoolResults(Device->GetInstanceHandle(), QueryPool, FirstQuery, NumQueries, NumQueries * sizeof(uint64), QueryOutput.GetData() + FirstQuery, sizeof(uint64), VK_QUERY_RESULT_64_BIT | ExtraFlags); return Result; }

Public function

void

 

EndBatch

(
    FVulkanCmdBuffer* InCmdBuffer
)

Public function

void

 

FlushAllocatedQueries()

Protected function

bool

 

InternalTryGetResults

(
    bool bWait
)

Public function

bool

 

IsStalePool()

Public function

void

 

ReleaseIndex

(
    uint32 Index
)

Public function

void

 

Reset

(
    FVulkanCmdBuffer* InCmdBuffer,
    uint32 InFrameNumber
)

Protected function

void

 

SetFence

(
    FVulkanCmdBuffer* InCmdBuffer
)

Void FVulkanQueryPool::ResetAll(FVulkanCmdBuffer* InCmdBuffer) { VulkanRHI::vkCmdResetQueryPool(InCmdBuffer->GetHandle() , QueryPool, 0, MaxQueries); ++NumResets; }

Public function

bool

 

TryGetResults

(
    bool bWait
)

Enums

Name

Description

Public enum

EState

References

Module

VulkanRHI

Header

Runtime/VulkanRHI/Public/VulkanResources.h