Struct voodoo::BufferBuilder
[−]
[src]
pub struct BufferBuilder<'b> { /* fields omitted */ }
A builder for Buffer
.
Methods
impl<'b> BufferBuilder<'b>
[src]
fn new() -> BufferBuilder<'b>
[src]
Returns a new render pass builder.
fn flags<'s>(
&'s mut self,
flags: BufferCreateFlags
) -> &'s mut BufferBuilder<'b>
[src]
&'s mut self,
flags: BufferCreateFlags
) -> &'s mut BufferBuilder<'b>
Specifies additional parameters of the buffer.
fn size<'s>(&'s mut self, size: DeviceSize) -> &'s mut BufferBuilder<'b>
[src]
Specifies the size in bytes of the buffer to be created.
fn usage<'s>(&'s mut self, usage: BufferUsageFlags) -> &'s mut BufferBuilder<'b>
[src]
Specifies allowed usages of the buffer.
[src]
Specifies the sharing mode of the buffer when it will be accessed by multiple queue families.
fn queue_family_indices<'s, 'p>(
&'s mut self,
queue_family_indices: &'p [u32]
) -> &'s mut BufferBuilder<'b> where
'p: 'b,
[src]
&'s mut self,
queue_family_indices: &'p [u32]
) -> &'s mut BufferBuilder<'b> where
'p: 'b,
Specifies a list of queue families that will access this buffer (ignored if sharing_mode is not VK_SHARING_MODE_CONCURRENT).
fn build(&self, device: Device) -> VdResult<Buffer>
[src]
Creates and returns a new Buffer
Trait Implementations
impl<'b> Debug for BufferBuilder<'b>
[src]
impl<'b> Clone for BufferBuilder<'b>
[src]
fn clone(&self) -> BufferBuilder<'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