Struct voodoo::BufferBuilder
[−]
[src]
pub struct BufferBuilder<'b> { /* fields omitted */ }
A builder for Buffer
.
Methods
impl<'b> BufferBuilder<'b>
[src]
pub fn new() -> BufferBuilder<'b>
[src]
Returns a new render pass builder.
pub 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.
pub fn size<'s>(&'s mut self, size: DeviceSize) -> &'s mut BufferBuilder<'b>
[src]
Specifies the size in bytes of the buffer to be created.
pub fn usage<'s>(
&'s mut self,
usage: BufferUsageFlags
) -> &'s mut BufferBuilder<'b>
[src]
&'s mut self,
usage: BufferUsageFlags
) -> &'s mut BufferBuilder<'b>
Specifies allowed usages of the buffer.
[src]
Specifies the sharing mode of the buffer when it will be accessed by multiple queue families.
pub 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).
pub fn build(&self, device: Device) -> VdResult<Buffer>
[src]
Creates and returns a new Buffer
Trait Implementations
impl<'b> Debug for BufferBuilder<'b>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
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