Module glium::buffer [] [src]

A buffer is a memory location accessible to the video card.

The purpose of buffers is to serve as a space where the GPU can read from or write data to. It can contain a list of vertices, indices, uniform data, etc.

Buffers management in glium

There are three levels of abstraction in glium:

Structs

BufferView

Represents a view of a buffer.

BufferViewAny

Represents a sub-part of a buffer.

BufferViewAnySlice

Slice of a BufferView without any type info.

BufferViewMutSlice

Represents a sub-part of a buffer.

BufferViewSlice

Represents a sub-part of a buffer.

Inserter

Allows inserting a fence in the list.

Mapping

A mapping of a buffer for reading and writing.

ReadMapping

A mapping of a buffer for reading.

WriteMapping

A mapping of a buffer for write only.

Enums

BufferCreationError

Error that can happen when creating a buffer.

BufferMode

How the buffer is created.

ReadError

Error that can happen when reading from a buffer.

Traits

Content

Trait for types of data that can be put inside buffers.

Functions

is_buffer_read_supported

Returns true if reading from a buffer is supported by the backend.