ecs: allow components to have type void #359
No reviewers
Labels
No labels
CI
all
basisu
blog
bug
build
contributor-friendly
core
correctness
deferred
dev
direct3d-headers
docs
driver-os-issue
duplicate
dxcompiler
editor
examples
experiment
feature-idea
feedback
flac
freetype
gamemode
gkurve
glfw
gpu
gpu-dawn
harfbuzz
help welcome
in-progress
infrastructure
invalid
libmach
linux-audio-headers
long-term
mach
mach.gfx
mach.math
mach.physics
mach.testing
model3d
needs-triage
object
opengl-headers
opus
os/linux
os/macos
os/wasm
os/windows
package-manager
priority
proposal
proposal-accepted
question
roadmap
slipped
stability
sysaudio
sysgpu
sysjs
validating-fix
vulkan-zig-generated
wayland-headers
website
wontfix
wrench
www
x11-headers
xcode-frameworks
zig-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
hexops/mach!359
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "void-components"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Allow size 0 (void) components. These can be used as flags allowing to iterate over entities with certain flags, but without the need to branch on the value of a bool/bitset,
but there is an extra branch in the get/set functionsthe new branch in get/set should be comptime evaluated and not impose any overhead at runtime. This also doesn't add any per-entity storage overhead, but does add the overhead of new archetypes for each combination of void-components used.OK nice, I like this, it's exactly how I was envisioning this would work. Great work, thanks!