gpu: move callbacks to separate file
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
2e445affe2
commit
e6f3d3c2f0
7 changed files with 65 additions and 51 deletions
|
|
@ -5,6 +5,7 @@ const DeviceDescriptor = @import("device.zig").DeviceDescriptor;
|
|||
const FeatureName = @import("types.zig").FeatureName;
|
||||
const SupportedLimits = @import("types.zig").SupportedLimits;
|
||||
const RequestDeviceStatus = @import("types.zig").RequestDeviceStatus;
|
||||
const RequestDeviceCallback = @import("callbacks.zig").RequestDeviceCallback;
|
||||
const Impl = @import("interface.zig").Impl;
|
||||
|
||||
pub const Adapter = opaque {
|
||||
|
|
@ -70,13 +71,6 @@ pub const Adapter = opaque {
|
|||
}
|
||||
};
|
||||
|
||||
pub const RequestDeviceCallback = fn (
|
||||
status: RequestDeviceStatus,
|
||||
device: *Device,
|
||||
message: ?[*:0]const u8,
|
||||
userdata: *anyopaque,
|
||||
) callconv(.C) void;
|
||||
|
||||
test "Adapter.Type name" {
|
||||
try testing.expectEqualStrings("Discrete GPU", Adapter.Type.discrete_gpu.name());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue