Basics: Buffers and uniforms
Using vertex buffers
Store vertex data in GPU memory.
Learning steps
A buffer is a region of GPU memory.
Buffer usages:
- VERTEX — vertex data.
- INDEX — index data.
- UNIFORM — uniform data.
- STORAGE — general-purpose storage.
Creation steps:
- Create a buffer (specify size and usage).
- Write data into it.
- Use it in your pipeline.
Task
Create a vertex buffer and store the triangle vertices in it.
Progress 0 / 3 completed
コンソール