gpu: use null and undefined in enums

Closes #626
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
This commit is contained in:
Eric Joldasov 2022-12-13 18:40:08 +06:00 committed by Stephen Gutekanst
parent ef05d8ca69
commit 94ba8338f5
8 changed files with 32 additions and 32 deletions

View file

@ -29,7 +29,7 @@ pub const Texture = opaque {
};
pub const Format = enum(u32) {
undef = 0x00000000,
undefined = 0x00000000,
r8_unorm = 0x00000001,
r8_snorm = 0x00000002,
r8_uint = 0x00000003,
@ -128,7 +128,7 @@ pub const Texture = opaque {
};
pub const SampleType = enum(u32) {
undef = 0x00000000,
undefined = 0x00000000,
float = 0x00000001,
unfilterable_float = 0x00000002,
depth = 0x00000003,
@ -162,7 +162,7 @@ pub const Texture = opaque {
pub const BindingLayout = extern struct {
next_in_chain: ?*const ChainedStruct = null,
sample_type: SampleType = .undef,
sample_type: SampleType = .undefined,
view_dimension: TextureView.Dimension = .dimension_undef,
multisampled: bool = false,
};