gpu: add dawn.CacheDeviceDescriptor
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
2877121147
commit
5094ad2e72
3 changed files with 11 additions and 5 deletions
|
|
@ -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
7
gpu/src/dawn.zig
Normal 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,
|
||||
};
|
||||
|
|
@ -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"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue