gpu: make remaining next_in_chain fields nullable

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 23:36:51 -07:00 committed by Stephen Gutekanst
parent d88eeb27c0
commit 000989df5b

View file

@ -42,14 +42,16 @@ pub const RenderPassTimestampWrite = extern struct {
};
pub const RequestAdapterOptions = extern struct {
next_in_chain: *const ChainedStruct,
// TODO: file a bug on Dawn, this is not marked as nullable but in fact is.
next_in_chain: ?*const ChainedStruct = null,
compatible_surface: ?*Surface,
power_preference: PowerPreference = .undef,
force_fallback_adapter: bool = false,
};
pub const ComputePassDescriptor = extern struct {
next_in_chain: *const ChainedStruct,
// TODO: file a bug on Dawn, this is not marked as nullable but in fact is.
next_in_chain: ?*const ChainedStruct = null,
label: ?[*:0]const u8 = null,
timestamp_write_count: u32 = 0,
// TODO: file a bug on Dawn, this is not marked as nullable but in fact is.
@ -57,7 +59,8 @@ pub const ComputePassDescriptor = extern struct {
};
pub const RenderPassDescriptor = extern struct {
next_in_chain: *const ChainedStruct,
// TODO: file a bug on Dawn, this is not marked as nullable but in fact is.
next_in_chain: ?*const ChainedStruct = null,
label: ?[*:0]const u8 = null,
color_attachment_count: u32,
// TODO: file a bug on Dawn, this is not marked as nullable but in fact is.