gpu: update ComputePassDescriptor defaults/optionality
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
81c432ab53
commit
1b146cffd3
1 changed files with 3 additions and 2 deletions
|
|
@ -103,8 +103,9 @@ pub const RequestAdapterOptions = extern struct {
|
||||||
pub const ComputePassDescriptor = extern struct {
|
pub const ComputePassDescriptor = extern struct {
|
||||||
next_in_chain: *const types.ChainedStruct,
|
next_in_chain: *const types.ChainedStruct,
|
||||||
label: ?[*:0]const u8 = null,
|
label: ?[*:0]const u8 = null,
|
||||||
timestamp_write_count: u32,
|
timestamp_write_count: u32 = 0,
|
||||||
timestamp_writes: [*]const ComputePassTimestampWrite,
|
// TODO: file a bug on Dawn, this is not marked as nullable but in fact is.
|
||||||
|
timestamp_writes: ?[*]const ComputePassTimestampWrite = null,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const RenderPassDescriptor = extern struct {
|
pub const RenderPassDescriptor = extern struct {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue