gpu: correct Adapter.Properties.backend_type field

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-31 02:21:23 -07:00 committed by Stephen Gutekanst
parent 3ff682956f
commit a008f96315
2 changed files with 3 additions and 1 deletions

View file

@ -4,6 +4,7 @@ const Device = @import("device.zig").Device;
const FeatureName = @import("types.zig").FeatureName;
const SupportedLimits = @import("types.zig").SupportedLimits;
const RequestDeviceStatus = @import("types.zig").RequestDeviceStatus;
const BackendType = @import("types.zig").BackendType;
const RequestDeviceCallback = @import("callbacks.zig").RequestDeviceCallback;
const Impl = @import("interface.zig").Impl;
@ -33,7 +34,7 @@ pub const Adapter = opaque {
name: [*:0]const u8,
driver_description: [*:0]const u8,
adapter_type: Type,
backend_type: Type,
backend_type: BackendType,
};
pub inline fn createDevice(adapter: *Adapter, descriptor: ?*const Device.Descriptor) ?*Device {

View file

@ -66,6 +66,7 @@ pub const RenderPassDescriptor = extern struct {
// TODO: file a bug on Dawn, this is not marked as nullable but in fact is.
color_attachments: ?[*]const RenderPassColorAttachment,
depth_stencil_attachment: ?[*]const RenderPassDepthStencilAttachment,
// TODO: file a bug on Dawn, should this be nullable? Seems very likely it should
occlusion_query_set: ?*QuerySet,
timestamp_write_count: u32 = 0,
// TODO: file a bug on Dawn, this is not marked as nullable but in fact is.