[][src]Module rendy_resource::buffer

Buffer usage, creation-info and wrappers.

Structs

Access

Buffer access flags.

Buffer

Generic buffer object wrapper.

DownloadBuffer

Type that specify that buffer is intended to be used as staging buffer for data downloads.

IndexBuffer

Type that specify that buffer is intended to be used as index buffer. It implies TRANSFER_DST because device-local, host-invisible memory should be used and transfer is left the only way to fill the buffer.

IndexBufferView

Index buffer view for bind_index_buffer.

Info

Buffer info.

UniformBuffer

Type that specify that buffer is intended to be used as uniform buffer. Host visible memory required and device-local preferred.

UploadBuffer

Type that specify that buffer is intended to be used as staging buffer for data uploads.

Usage

Buffer usage flags.

VertexBuffer

Type that specify that buffer is intended to be used as vertex buffer. It implies TRANSFER_DST because device-local, host-invisible memory should be used and transfer is left the only way to fill the buffer.

Enums

CreationError

Error creating a buffer.

ViewCreationError

Error creating a buffer view.

Traits

Usage

Usage trait that must implemented by usage types. This trait provides a way to convert type-level usage to the value-level flags.

Type Definitions

Offset

An offset inside a buffer, in bytes.

State

Buffer state.