Struct vulkano::buffer::sys::UnsafeBuffer [] [src]

pub struct UnsafeBuffer { /* fields omitted */ }

Data storage in a GPU-accessible location.

Methods

impl UnsafeBuffer
[src]

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.

Returns the size of the buffer in bytes.

Returns a key unique to each UnsafeBuffer. Can be used for the conflicts_key method.

Trait Implementations

impl VulkanObject for UnsafeBuffer
[src]

The type of the object.

Returns a reference to the object.

impl DeviceOwned for UnsafeBuffer
[src]

Returns the device that owns Self.

impl Debug for UnsafeBuffer
[src]

Formats the value using the given formatter.

impl Drop for UnsafeBuffer
[src]

A method called when the value goes out of scope. Read more