Struct vulkano::query::UnsafeQueryPool [−][src]
pub struct UnsafeQueryPool { /* fields omitted */ }
Methods
impl UnsafeQueryPool
[src]
impl UnsafeQueryPool
pub fn new(
device: Arc<Device>,
ty: QueryType,
num_slots: u32
) -> Result<UnsafeQueryPool, QueryPoolCreationError>
[src]
pub fn new(
device: Arc<Device>,
ty: QueryType,
num_slots: u32
) -> Result<UnsafeQueryPool, QueryPoolCreationError>
Builds a new query pool.
pub fn num_slots(&self) -> u32
[src]
pub fn num_slots(&self) -> u32
Returns the number of slots of that query pool.
pub fn query(&self, index: u32) -> Option<UnsafeQuery>
[src]
pub fn query(&self, index: u32) -> Option<UnsafeQuery>
pub fn queries_range(
&self,
first_index: u32,
count: u32
) -> Option<UnsafeQueriesRange>
[src]
pub fn queries_range(
&self,
first_index: u32,
count: u32
) -> Option<UnsafeQueriesRange>
Panic
Panicks if count
is 0.
Trait Implementations
impl VulkanObject for UnsafeQueryPool
[src]
impl VulkanObject for UnsafeQueryPool
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]
fn internal_object(&self) -> QueryPool
Returns a reference to the object.
impl DeviceOwned for UnsafeQueryPool
[src]
impl DeviceOwned for UnsafeQueryPool
impl Drop for UnsafeQueryPool
[src]
impl Drop for UnsafeQueryPool
Auto Trait Implementations
impl Send for UnsafeQueryPool
impl Send for UnsafeQueryPool
impl Sync for UnsafeQueryPool
impl Sync for UnsafeQueryPool