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 type Parameters = FromNativeBufferParameters;
impl FromNativeObject for BufferView type Parameters = FromNativeBufferViewParameters;
impl FromNativeObject for CommandBuffer type Parameters = FromNativeCommandBufferParameters;
impl FromNativeObject for CommandPool type Parameters = FromNativeCommandPoolParameters;
impl FromNativeObject for DescriptorPool type Parameters = FromNativeDescriptorPoolParameters;
impl FromNativeObject for DescriptorSet type Parameters = DescriptorPool;
impl FromNativeObject for DescriptorSetLayout type Parameters = FromNativeDescriptorSetLayoutParameters;
impl FromNativeObject for DeviceMemory type Parameters = FromNativeDeviceMemoryParameters;
impl FromNativeObject for Event type Parameters = FromNativeEventParameters;
impl FromNativeObject for Fence type Parameters = FromNativeFenceParameters;
impl FromNativeObject for Framebuffer type Parameters = FromNativeFramebufferParameters;
impl FromNativeObject for Image type Parameters = FromNativeImageParameters;
impl FromNativeObject for ImageView type Parameters = FromNativeImageViewParameters;
impl FromNativeObject for PhysicalDevice type Parameters = Instance;
impl FromNativeObject for Pipeline type Parameters = FromNativePipelineParameters;
impl FromNativeObject for PipelineCache type Parameters = FromNativePipelineCacheParameters;
impl FromNativeObject for PipelineLayout type Parameters = FromNativePipelineLayoutParameters;
impl FromNativeObject for QueryPool type Parameters = FromNativeQueryPoolParameters;
impl FromNativeObject for Queue type Parameters = Device;
impl FromNativeObject for RenderPass type Parameters = FromNativeRenderPassParameters;
impl FromNativeObject for Sampler type Parameters = FromNativeSamplerParameters;
impl FromNativeObject for Semaphore type Parameters = FromNativeSemaphoreParameters;
impl FromNativeObject for ShaderModule type Parameters = FromNativeShaderModuleParameters;
impl FromNativeObject for DebugReportCallbackExt type Parameters = FromNativeDebugReportCallbackExtParameters;
impl FromNativeObject for DisplayKhr type Parameters = PhysicalDevice;
impl FromNativeObject for DisplayModeKhr type Parameters = DisplayKhr;
impl FromNativeObject for SurfaceKhr type Parameters = FromNativeSurfaceKhrParameters;
impl FromNativeObject for SwapchainKhr type Parameters = FromNativeSwapchainKhrParameters;