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:
- A
Buffercorresponds to an OpenGL buffer object. This type is not public. - A
BufferViewcorresponds to a part of aBuffer. One buffer can contain one or multiple subbuffers. - The
VertexBuffer,IndexBuffer,UniformBuffer,PixelBuffer, ... types are abstractions over a subbuffer indicating their specific purpose. They implementDereffor the subbuffer. These types are in thevertex,index, ... modules.
Structs
| BufferView |
Represents a view of a buffer. |
| BufferViewAny |
Represents a sub-part of a buffer. |
| BufferViewAnySlice |
Slice of a |
| 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. |