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
IsPrecise()
Returns
boolean
Record(Libraries.Game.Graphics.Vulkan.VulkanCommandBuffer buffer)
Parameters
SetIndex(integer index)
Parameters
indexinteger
SetPrecise(boolean value)
Parameters
valueboolean
SetQueryPool(Libraries.Game.Graphics.Vulkan.VulkanQueryPool pool)
Parameters