enum

EGpuBufferRole

Who writes a buffer, and so when the CPU may touch it. Gpu — component state the kernels own (positions, velocities). The CPU writes it once, before the first step, and afterwards sees it only through SyncToCpu (blocking: waits for the GPU, exact) or ReadLatched (non-blocking, up to two frames old). An Upload after the first step is refused: it would race the kernels. Cpu — inputs the game authors (targets, parameters); uploaded any time, applied by the next step, read-only to the kernels. Scratch — per-step working memory (grids, sort keys); never read back.

Module
GpuEcs
Header
#include "GpuEcs/GpuWorld.h"
Namespace
Mowo

Values

NameValueDescription
Gpu
Cpu
Scratch
Generated from GpuEcs/GpuWorld.h via gpuecs.json · Oct 31, 2026Version 1.0.0