mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-23 23:35:54 +00:00
Remove some mem::unitialized() in doctests
This commit is contained in:
parent
5cf097e8bb
commit
4cca46673e
@ -31,10 +31,10 @@ use vk;
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```no_run
|
||||
/// ```
|
||||
/// use vulkano::memory::DeviceMemory;
|
||||
///
|
||||
/// # let device: std::sync::Arc<vulkano::device::Device> = unsafe { ::std::mem::uninitialized() };
|
||||
/// # let device: std::sync::Arc<vulkano::device::Device> = return;
|
||||
/// let mem_ty = device.physical_device().memory_types().next().unwrap();
|
||||
///
|
||||
/// // Allocates 1kB of memory.
|
||||
@ -180,10 +180,10 @@ impl<D> Drop for DeviceMemory<D> where D: SafeDeref<Target = Device> {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```no_run
|
||||
/// ```
|
||||
/// use vulkano::memory::DeviceMemory;
|
||||
///
|
||||
/// # let device: std::sync::Arc<vulkano::device::Device> = unsafe { ::std::mem::uninitialized() };
|
||||
/// # let device: std::sync::Arc<vulkano::device::Device> = return;
|
||||
/// // The memory type must be mappable.
|
||||
/// let mem_ty = device.physical_device().memory_types()
|
||||
/// .filter(|t| t.is_host_visible())
|
||||
|
Loading…
Reference in New Issue
Block a user