mach/gpu/src/dawn.zig
Stephen Gutekanst e702ee4911 gpu: begin Dawn gpu.Interface implementation
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00

33 lines
1.1 KiB
Zig

const ChainedStruct = @import("types.zig").ChainedStruct;
const Texture = @import("texture.zig").Texture;
pub const Interface = @import("dawn_impl.zig").Interface;
pub const CacheDeviceDescriptor = extern struct {
chain: ChainedStruct,
isolation_key: [*:0]const u8 = "",
};
pub const EncoderInternalUsageDescriptor = extern struct {
chain: ChainedStruct,
use_internal_usages: bool = false,
};
pub const InstanceDescriptor = extern struct {
chain: ChainedStruct,
additional_runtime_search_paths_count: u32,
// TODO: file a bug on Dawn, this is not marked as nullable but in fact is.
additional_runtime_search_paths: ?[*]const u8,
};
pub const TextureInternalUsageDescriptor = extern struct {
chain: ChainedStruct,
internal_usage: Texture.UsageFlags = Texture.UsageFlags.none,
};
pub const TogglesDeviceDescriptor = extern struct {
chain: ChainedStruct,
force_enabled_toggles_count: u32 = 0,
force_enabled_toggles: ?[*]const u8 = null,
force_disabled_toggles_count: u32 = 0,
force_disabled_toggles: ?[*]const u8 = null,
};