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

@ -13,7 +13,7 @@ pub const RenderBundleEncoder = opaque {
label: ?[*:0]const u8 = null,
color_formats_count: u32 = 0,
color_formats: ?[*]const Texture.Format = null,
depth_stencil_format: Texture.Format = .undef,
depth_stencil_format: Texture.Format = .undefined,
sample_count: u32 = 1,
depth_read_only: bool = false,
stencil_read_only: bool = false,
@ -23,7 +23,7 @@ pub const RenderBundleEncoder = opaque {
next_in_chain: ?*const ChainedStruct = null,
label: ?[*:0]const u8 = null,
color_formats: ?[]const Texture.Format = null,
depth_stencil_format: Texture.Format = .undef,
depth_stencil_format: Texture.Format = .undefined,
sample_count: u32 = 1,
depth_read_only: bool = false,
stencil_read_only: bool = false,