Struct asche::Buffer[][src]

pub struct Buffer<LT: Lifetime> { /* fields omitted */ }
Expand description

Wraps a buffer.

Implementations

The raw Vulkan buffer handle.

Returns a valid mapped slice if the buffer memory is host visible, otherwise it will return None.

Returns a valid mapped mutable slice if the buffer memory is host visible, otherwise it will return None.

Flush the mapped memory of the buffer. Used for CPU->GPU transfers. Vulkan Manual Page

Invalidate the mapped memory of the buffer. Used for GPU->CPU transfers. Vulkan Manual Page

Query an address of a buffer. Vulkan Manual Page

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.