gpu: add dawn.CacheDeviceDescriptor

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-15 23:20:08 -07:00 committed by Stephen Gutekanst
parent 2877121147
commit 5094ad2e72
3 changed files with 11 additions and 5 deletions

View file

@ -1,8 +1,3 @@
typedef struct WGPUDawnCacheDeviceDescriptor {
WGPUChainedStruct chain;
char const * isolationKey;
} WGPUDawnCacheDeviceDescriptor;
typedef struct WGPUDawnEncoderInternalUsageDescriptor {
WGPUChainedStruct chain;
use_internal_usages: bool,

7
gpu/src/dawn.zig Normal file
View file

@ -0,0 +1,7 @@
const ChainedStruct = @import("types.zig").ChainedStruct;
pub const CacheDeviceDescriptor = struct {
// TODO: file an issue on Dawn: why not named nextInChain?
chain: ChainedStruct,
isolation_key: [*:0]const u8,
};

View file

@ -34,9 +34,12 @@ pub const SwapChain = @import("swap_chain.zig").SwapChain;
pub const Texture = @import("texture.zig").Texture;
pub const TextureView = @import("texture_view.zig").TextureView;
pub const dawn = @import("dawn.zig");
// TODO: export all types.zig
pub const AlphaMode = @import("types.zig").AlphaMode;
pub const ComputePassTimestampLocation = @import("types.zig").ComputePassTimestampLocation;
pub const ChainedStruct = @import("types.zig").ChainedStruct;
pub const ComputePassTimestampWrite = struct {
query_set: QuerySet,
@ -64,6 +67,7 @@ test {
refAllDecls(@import("command_encoder.zig"));
refAllDecls(@import("compute_pass_encoder.zig"));
refAllDecls(@import("compute_pipeline.zig"));
refAllDecls(@import("dawn.zig"));
refAllDecls(@import("device.zig"));
refAllDecls(@import("external_texture.zig"));
refAllDecls(@import("instance.zig"));