33 lines
1.1 KiB
Zig
33 lines
1.1 KiB
Zig
const ChainedStruct = @import("types.zig").ChainedStruct;
|
|
const Texture = @import("texture.zig").Texture;
|
|
const TextureUsageFlags = @import("texture.zig").TextureUsageFlags;
|
|
|
|
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: TextureUsageFlags = TextureUsageFlags.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,
|
|
};
|