Skip to content

alignment must be a power of two #1503

@dneto0

Description

@dneto0

This is the only valid case I know of.

LLVM requires this too: "An explicit alignment may be specified for a global, which must be a power of 2."

Requiring it to be a power of two makes it easier to combine alignment constraints: you take the "max" rather than the least-common-multiple.

Metadata

Metadata

Assignees

Labels

wgslWebGPU Shading Language Issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions