gpu: centralize AddressMode -> enums.zig

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-09 09:48:30 -07:00 committed by Stephen Gutekanst
parent 2c392bbae6
commit b6d36ed714

View file

@ -16,6 +16,13 @@ pub const Feature = enum(u32) {
// TODO: add featureName stringer method
const AddressMode = enum(u32) {
repeat = 0x00000000,
mirror_repeat = 0x00000001,
clamp_to_edge = 0x00000002,
};
test "syntax" {
_ = Feature;
_ = AddressMode;
}