From 806acf08fe18338d68cccb480e051149dfaf9427 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 15 Jul 2022 23:21:04 -0700 Subject: [PATCH] gpu: add dawn.EncoderInternalUsageDescriptor Signed-off-by: Stephen Gutekanst --- gpu/TODO-webgpu.h | 5 ----- gpu/src/dawn.zig | 6 ++++++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index 8573216f..2e092a1e 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,8 +1,3 @@ -typedef struct WGPUDawnEncoderInternalUsageDescriptor { - WGPUChainedStruct chain; - use_internal_usages: bool, -} WGPUDawnEncoderInternalUsageDescriptor; - typedef struct WGPUDawnInstanceDescriptor { WGPUChainedStruct chain; uint32_t additionalRuntimeSearchPathsCount; diff --git a/gpu/src/dawn.zig b/gpu/src/dawn.zig index 12a11640..f31517e6 100644 --- a/gpu/src/dawn.zig +++ b/gpu/src/dawn.zig @@ -5,3 +5,9 @@ pub const CacheDeviceDescriptor = struct { chain: ChainedStruct, isolation_key: [*:0]const u8, }; + +pub const EncoderInternalUsageDescriptor = struct { + // TODO: file an issue on Dawn: why not named nextInChain? + chain: ChainedStruct, + use_internal_usages: bool, +};