{gpu,gpu-dawn}: add X11 linkage back; update to latest WebGPU API

This commit is contained in:
Ali Chraghi 2023-01-14 19:20:41 +03:30 committed by Stephen Gutekanst
parent 8a15fcd694
commit 9f6020e545
5 changed files with 20 additions and 5 deletions

View file

@ -1,5 +1,6 @@
const std = @import("std");
const ChainedStruct = @import("types.zig").ChainedStruct;
const dawn = @import("dawn.zig");
const MapModeFlags = @import("types.zig").MapModeFlags;
const Impl = @import("interface.zig").Impl;
@ -64,7 +65,12 @@ pub const Buffer = opaque {
};
pub const Descriptor = extern struct {
next_in_chain: ?*const ChainedStruct = null,
pub const NextInChain = extern union {
generic: ?*const ChainedStruct,
dawn_buffer_descriptor_error_info_from_wire_client: *const dawn.BufferDescriptorErrorInfoFromWireClient,
};
next_in_chain: NextInChain = .{ .generic = null },
label: ?[*:0]const u8 = null,
usage: UsageFlags,
size: u64,