Learn WebGPU
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:

  1. Create a buffer (specify size and usage).
  2. Write data into it.
  3. Use it in your pipeline.

Task

Create a vertex buffer and store the triangle vertices in it.

Progress 0 / 3 completed

WebGPUを初期化中...

コンソール
コンソール出力がここに表示されます

Learn WebGPU — interactive tutorials for learning WebGPU

GitHub