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

pub struct UnsafeBuffer { /* fields omitted */ }

Data storage in a GPU-accessible location.

Methods

impl UnsafeBuffer
[src]

[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.

[src]

[src]

Returns the size of the buffer in bytes.

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

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.

TYPE: DebugReportObjectTypeEXT = vk::DEBUG_REPORT_OBJECT_TYPE_BUFFER_EXT

The DebugReportObjectTypeEXT of the internal Vulkan handle.

[src]

Returns a reference to the object.

impl DeviceOwned for UnsafeBuffer
[src]

[src]

Returns the device that owns Self.

impl Debug for UnsafeBuffer
[src]

[src]

Formats the value using the given formatter. Read more

impl Drop for UnsafeBuffer
[src]

[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl Send for UnsafeBuffer

impl Sync for UnsafeBuffer