Struct voodoo::Buffer
[−]
[src]
pub struct Buffer { /* fields omitted */ }
A buffer.
Destruction
Dropping this Buffer
will cause Device::destroy_buffer
to be called,
automatically releasing any resources associated with it.
Methods
impl Buffer
[src]
pub fn builder<'b>() -> BufferBuilder<'b>
[src]
Returns a new BufferBuilder
.
pub fn handle(&self) -> BufferHandle
[src]
Returns this object's handle.
pub fn memory_requirements(&self) -> &MemoryRequirements
[src]
Returns this buffer's memory requirements.
pub unsafe fn bind_memory(
&self,
memory: &DeviceMemory,
offset: DeviceSize
) -> VdResult<()>
[src]
&self,
memory: &DeviceMemory,
offset: DeviceSize
) -> VdResult<()>
Binds this buffer to device memory. offset
is the start offset of the
region of memory which is to be bound. The number of bytes returned in
the VkMemoryRequirements::size member in memory, starting from
memoryOffset bytes, will be bound to the specified buffer.
Safety
The caller must ensure that the bound memory is not in use when it is dropped.
pub fn device(&self) -> &Device
[src]
Returns a reference to the associated device.
Trait Implementations
impl Debug for Buffer
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Buffer
[src]
fn clone(&self) -> Buffer
[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