From a008f96315faee236964846207f9d676e7fdde0c Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sun, 31 Jul 2022 02:21:23 -0700 Subject: [PATCH] gpu: correct Adapter.Properties.backend_type field Signed-off-by: Stephen Gutekanst --- gpu/src/adapter.zig | 3 ++- gpu/src/types.zig | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gpu/src/adapter.zig b/gpu/src/adapter.zig index 640ebb8d..ce498797 100644 --- a/gpu/src/adapter.zig +++ b/gpu/src/adapter.zig @@ -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 { diff --git a/gpu/src/types.zig b/gpu/src/types.zig index e1cc2cd7..e05504d9 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -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.