A graphics buffer containing vertex indices.
More...
|
| | IndexBuffer (int size, BufferUsage usage) |
| | Creates a new index buffer.
|
| |
| void | SetData (in ReadOnlySpan< TElement > data) |
| | Upload new data to this buffer.
|
| |
|
void | Dispose () |
| |
|
| override void | Dispose (bool disposing) |
| | Called when it's time to throw out the trash.- Parameters
-
| disposing | If true, please throw away your trash. Skunks! |
|
| |
| | GraphicsObject () |
| | Creates a new GraphicsObject instance.
|
| |
A graphics buffer containing vertex indices.
- Template Parameters
-
| TElement | The data type of each vertex index. Must be a number type. |
- Type Constraints
-
| TElement | : | unmanaged | |
| TElement | : | INumber<TElement> | |
◆ Dispose()
| override void Dispose |
( |
bool | disposing | ) |
|
|
inlineprotectedvirtual |
Called when it's time to throw out the trash.
- Parameters
-
| disposing | If true, please throw away your trash. Skunks! |
Reimplemented from GraphicsObject.
◆ IndexBuffer()
Creates a new index buffer.
- Parameters
-
| size | A value indicating how many elements will be stored inside the buffer. |
| usage | A BufferUsage value indicating how the graphics API should treat this buffer. |
◆ SetData()
| void SetData |
( |
in ReadOnlySpan< TElement > | data | ) |
|
|
inline |
Upload new data to this buffer.
- Parameters
-
| data | A span of memory containing data to upload. The span's length must be the same as this buffer's Count. |
The documentation for this class was generated from the following file:
- /builds/universe/graphics/src/Inertia.Platform/IndexBuffer.cs