gpu: use null and undefined in enums
Closes #626 Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
This commit is contained in:
parent
ef05d8ca69
commit
94ba8338f5
8 changed files with 32 additions and 32 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue