gpu: correct nullable slice / _count-ed pointers (bug in Dawn docs)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
937d0120a3
commit
158ba8db59
8 changed files with 26 additions and 13 deletions
|
|
@ -112,11 +112,13 @@ pub const RenderPassDescriptor = extern struct {
|
|||
next_in_chain: *const types.ChainedStruct,
|
||||
label: ?[*:0]const u8 = null,
|
||||
color_attachment_count: u32,
|
||||
color_attachments: [*]const types.RenderPassColorAttachment,
|
||||
// TODO: file a bug on Dawn, this is not marked as nullable but in fact is.
|
||||
color_attachments: ?[*]const types.RenderPassColorAttachment,
|
||||
depth_stencil_attachment: ?[*]const RenderPassDepthStencilAttachment = null,
|
||||
occlusion_query_set: ?query_set.QuerySet,
|
||||
timestamp_write_count: u32,
|
||||
timestamp_writes: [*]const RenderPassTimestampWrite,
|
||||
// TODO: file a bug on Dawn, this is not marked as nullable but in fact is.
|
||||
timestamp_writes: ?[*]const RenderPassTimestampWrite,
|
||||
};
|
||||
|
||||
pub inline fn createInstance(descriptor: ?*const instance.InstanceDescriptor) ?instance.Instance {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue