Struct vulkano::buffer::sys::UnsafeBuffer
[−]
[src]
pub struct UnsafeBuffer { /* fields omitted */ }
Data storage in a GPU-accessible location.
Methods
impl UnsafeBuffer
[src]
unsafe fn new<'a, I>(device: &Arc<Device>, size: usize, usage: &Usage, sharing: Sharing<I>, sparse: SparseLevel) -> Result<(UnsafeBuffer, MemoryRequirements), BufferCreationError> where I: Iterator<Item=u32>
Creates a new buffer of the given size.
See the module's documentation for information about safety.
Panic
Panics if sparse.sparse
is false and sparse.sparse_residency
or
sparse.sparse_aliased
is true.
unsafe fn bind_memory(&self, memory: &DeviceMemory, offset: usize) -> Result<(), OomError>
fn device(&self) -> &Arc<Device>
Returns the device used to create this buffer.
fn size(&self) -> usize
Returns the size of the buffer in bytes.
fn usage_transfer_src(&self) -> bool
fn usage_transfer_dest(&self) -> bool
fn usage_uniform_texel_buffer(&self) -> bool
fn usage_storage_texel_buffer(&self) -> bool
fn usage_uniform_buffer(&self) -> bool
fn usage_storage_buffer(&self) -> bool
fn usage_index_buffer(&self) -> bool
fn usage_vertex_buffer(&self) -> bool
fn usage_indirect_buffer(&self) -> bool
Trait Implementations
impl Debug for UnsafeBuffer
[src]
impl VulkanObject for UnsafeBuffer
[src]
type Object = Buffer
The type of the object.
fn internal_object(&self) -> Buffer
Returns a reference to the object.