mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-22 23:05:43 +00:00
Add VulkanObjectU64 and VulkanObjectUsize
This commit is contained in:
parent
2d241dbd8f
commit
9f0c2fc87c
@ -105,6 +105,21 @@ trait VulkanObject {
|
|||||||
fn internal_object(&self) -> Self::Object;
|
fn internal_object(&self) -> Self::Object;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: remove eventually
|
||||||
|
// https://github.com/rust-lang/rust/issues/29328
|
||||||
|
trait VulkanObjectU64 { fn internal_object(&self) -> u64; }
|
||||||
|
impl<T> VulkanObjectU64 for T where T: VulkanObject<Object = u64> {
|
||||||
|
#[inline]
|
||||||
|
fn internal_object(&self) -> u64 { VulkanObject::internal_object(self) }
|
||||||
|
}
|
||||||
|
// TODO: remove eventually
|
||||||
|
// https://github.com/rust-lang/rust/issues/29328
|
||||||
|
trait VulkanObjectUsize { fn internal_object(&self) -> usize; }
|
||||||
|
impl<T> VulkanObjectUsize for T where T: VulkanObject<Object = usize> {
|
||||||
|
#[inline]
|
||||||
|
fn internal_object(&self) -> usize { VulkanObject::internal_object(self) }
|
||||||
|
}
|
||||||
|
|
||||||
/// Gives access to the Vulkan function pointers stored in this object.
|
/// Gives access to the Vulkan function pointers stored in this object.
|
||||||
trait VulkanPointers {
|
trait VulkanPointers {
|
||||||
/// The struct that provides access to the function pointers.
|
/// The struct that provides access to the function pointers.
|
||||||
|
Loading…
Reference in New Issue
Block a user