pub trait DeviceBindMemory2Extension: Device {
// Required methods
fn bind_buffer_memory2_khr_fn(&self) -> PFN_vkBindBufferMemory2KHR;
fn bind_image_memory2_khr_fn(&self) -> PFN_vkBindImageMemory2KHR;
// Provided methods
unsafe fn bind_buffer_memory2_khr(
&self,
bounds: &[VkBindBufferMemoryInfoKHR],
) -> Result<()> { ... }
unsafe fn bind_image_memory2_khr(
&self,
bounds: &[VkBindImageMemoryInfoKHR],
) -> Result<()> { ... }
}Required Methods§
fn bind_buffer_memory2_khr_fn(&self) -> PFN_vkBindBufferMemory2KHR
fn bind_image_memory2_khr_fn(&self) -> PFN_vkBindImageMemory2KHR
Provided Methods§
Sourceunsafe fn bind_buffer_memory2_khr(
&self,
bounds: &[VkBindBufferMemoryInfoKHR],
) -> Result<()>
unsafe fn bind_buffer_memory2_khr( &self, bounds: &[VkBindBufferMemoryInfoKHR], ) -> Result<()>
Multiple Binding for Buffers
Sourceunsafe fn bind_image_memory2_khr(
&self,
bounds: &[VkBindImageMemoryInfoKHR],
) -> Result<()>
unsafe fn bind_image_memory2_khr( &self, bounds: &[VkBindImageMemoryInfoKHR], ) -> Result<()>
Multiple Binding for Images
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.