gpu: update to latest webgpu.h API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
74067bebed
commit
fdd3270a0f
22 changed files with 201 additions and 161 deletions
|
|
@ -11,7 +11,7 @@ pub const Instance = opaque {
|
|||
pub const Descriptor = extern struct {
|
||||
pub const NextInChain = extern union {
|
||||
generic: ?*const ChainedStruct,
|
||||
dawn_instance_descriptor: *const dawn.InstanceDescriptor,
|
||||
dawn_toggles_descriptor: *const dawn.TogglesDescriptor,
|
||||
};
|
||||
|
||||
next_in_chain: NextInChain = .{ .generic = null },
|
||||
|
|
@ -21,6 +21,10 @@ pub const Instance = opaque {
|
|||
return Impl.instanceCreateSurface(instance, descriptor);
|
||||
}
|
||||
|
||||
pub inline fn processEvents(instance: *Instance) void {
|
||||
Impl.instanceProcessEvents(instance);
|
||||
}
|
||||
|
||||
pub inline fn requestAdapter(
|
||||
instance: *Instance,
|
||||
options: ?*const RequestAdapterOptions,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue