Struct vulkano::query::UnsafeQueryPool
[−]
[src]
pub struct UnsafeQueryPool { /* fields omitted */ }
Methods
impl UnsafeQueryPool
[src]
pub fn new(
device: Arc<Device>,
ty: QueryType,
num_slots: u32
) -> Result<UnsafeQueryPool, QueryPoolCreationError>
[src]
device: Arc<Device>,
ty: QueryType,
num_slots: u32
) -> Result<UnsafeQueryPool, QueryPoolCreationError>
Builds a new query pool.
pub fn num_slots(&self) -> u32
[src]
Returns the number of slots of that query pool.
pub fn query(&self, index: u32) -> Option<UnsafeQuery>
[src]
pub fn queries_range(
&self,
first_index: u32,
count: u32
) -> Option<UnsafeQueriesRange>
[src]
&self,
first_index: u32,
count: u32
) -> Option<UnsafeQueriesRange>
Panic
Panicks if count
is 0.
Trait Implementations
impl VulkanObject for UnsafeQueryPool
[src]
type Object = QueryPool
The type of the object.
const TYPE: DebugReportObjectTypeEXT
TYPE: DebugReportObjectTypeEXT = vk::DEBUG_REPORT_OBJECT_TYPE_QUERY_POOL_EXT
The DebugReportObjectTypeEXT
of the internal Vulkan handle.
fn internal_object(&self) -> QueryPool
[src]
Returns a reference to the object.