gpu: centralize AddressMode -> enums.zig
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
2c392bbae6
commit
b6d36ed714
1 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue