Trait dacite::FromNativeObject
[−]
[src]
pub trait FromNativeObject: VulkanObject { type Parameters; unsafe fn from_native_object(
object: Self::NativeVulkanObject,
params: Self::Parameters
) -> Self; }
Trait for creating dacite Vulkan objects from native FFI objects.
This trait is provided for interoperability with other Vulkan-related libraries, if you need to create dacite Vulkan objects from existing native FFI objects.
Not all dacite Vulkan objects implement this trait, which is why this is a separate trait
instead of being integrated in the VulkanObject
trait.
Caution: Many implementors can optionally own the underlying native object (specified
through an owned
parameter). This means, that the Vulkan object will be destroyed, when this
object is dropped. You must not create multiple dacite objects, which own the same Vulkan
object.
Associated Types
type Parameters
Required Methods
unsafe fn from_native_object(
object: Self::NativeVulkanObject,
params: Self::Parameters
) -> Self
object: Self::NativeVulkanObject,
params: Self::Parameters
) -> Self
Implementors
impl FromNativeObject for Buffer
impl FromNativeObject for BufferView
impl FromNativeObject for CommandBuffer
impl FromNativeObject for CommandPool
impl FromNativeObject for DescriptorPool
impl FromNativeObject for DescriptorSet
impl FromNativeObject for DescriptorSetLayout
impl FromNativeObject for DeviceMemory
impl FromNativeObject for Event
impl FromNativeObject for Fence
impl FromNativeObject for Framebuffer
impl FromNativeObject for Image
impl FromNativeObject for ImageView
impl FromNativeObject for PhysicalDevice
impl FromNativeObject for Pipeline
impl FromNativeObject for PipelineCache
impl FromNativeObject for PipelineLayout
impl FromNativeObject for QueryPool
impl FromNativeObject for Queue
impl FromNativeObject for RenderPass
impl FromNativeObject for Sampler
impl FromNativeObject for Semaphore
impl FromNativeObject for ShaderModule
impl FromNativeObject for DebugReportCallbackExt
impl FromNativeObject for DisplayKhr
impl FromNativeObject for DisplayModeKhr
impl FromNativeObject for SurfaceKhr
impl FromNativeObject for SwapchainKhr