BeginQueryCommand

Package: Libraries.Game.Graphics.Vulkan.Commands · Inherits from: Libraries.Game.Graphics.Vulkan.Commands.VulkanCommand, Libraries.Language.Object

The BeginQueryCommand starts counting into a query of an OCCLUSION or PIPELINE_STATISTICS pool (vkCmdBeginQuery); an EndQueryCommand for the same query stops it. For occlusion, precise asks for the exact number of samples rather than only whether any passed (it needs VulkanPhysicalDeviceFeatures:HasOcclusionQueryPrecise).

Example Code

use Libraries.Game.Graphics.Vulkan.Commands.BeginQueryCommand

BeginQueryCommand begin
begin:SetIndex(0)
begin:SetPrecise(true)

Actions

GetIndex()

Returns

integer

GetQueryPool()

Returns

Libraries.Game.Graphics.Vulkan.VulkanQueryPool

IsPrecise()

Returns

boolean

Record(Libraries.Game.Graphics.Vulkan.VulkanCommandBuffer buffer)

Parameters

SetIndex(integer index)

Parameters

  • index integer

SetPrecise(boolean value)

Parameters

  • value boolean

SetQueryPool(Libraries.Game.Graphics.Vulkan.VulkanQueryPool pool)

Parameters

Inherited Actions

3 actions from Libraries.Language.Object