gpu: add dawn.TextureInternalUsageDescriptor

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-15 23:44:29 -07:00 committed by Stephen Gutekanst
parent 3309a2c913
commit 7a9a2b1fb7
2 changed files with 7 additions and 5 deletions

View file

@ -1,4 +1,5 @@
const ChainedStruct = @import("types.zig").ChainedStruct;
const Texture = @import("texture.zig").Texture;
pub const CacheDeviceDescriptor = struct {
// TODO: file an issue on Dawn: why not named nextInChain?
@ -18,3 +19,9 @@ pub const InstanceDescriptor = extern struct {
additional_runtime_search_paths_count: u32,
additional_runtime_search_paths: [*]const u8,
};
pub const TextureInternalUsageDescriptor = extern struct {
// TODO: file an issue on Dawn: why not named nextInChain?
chain: ChainedStruct,
internal_usage: Texture.UsageFlags,
};