Struct voodoo::DeviceMemoryBuilder
[−]
[src]
pub struct DeviceMemoryBuilder<'b> { /* fields omitted */ }
A builder for DeviceMemory
.
Methods
impl<'b> DeviceMemoryBuilder<'b>
[src]
fn new() -> DeviceMemoryBuilder<'b>
[src]
Returns a new render pass builder.
fn allocation_size<'s>(
&'s mut self,
allocation_size: VkDeviceSize
) -> &'s mut DeviceMemoryBuilder<'b>
[src]
&'s mut self,
allocation_size: VkDeviceSize
) -> &'s mut DeviceMemoryBuilder<'b>
Specifies the size of the allocation in bytes
fn memory_type_index<'s>(
&'s mut self,
memory_type_index: u32
) -> &'s mut DeviceMemoryBuilder<'b>
[src]
&'s mut self,
memory_type_index: u32
) -> &'s mut DeviceMemoryBuilder<'b>
Specifies the memory type index, which selects the properties of the memory to be allocated, as well as the heap the memory will come from.
fn build(&self, device: Device) -> VdResult<DeviceMemory>
[src]
Creates and returns a new DeviceMemory
Trait Implementations
impl<'b> Debug for DeviceMemoryBuilder<'b>
[src]
impl<'b> Clone for DeviceMemoryBuilder<'b>
[src]
fn clone(&self) -> DeviceMemoryBuilder<'b>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more