diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index 4e34c95b..14c2d7e0 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,7 +1,3 @@ -typedef struct WGPUExternalTextureBindingLayout { - WGPUChainedStruct chain; -} WGPUExternalTextureBindingLayout; - typedef struct WGPUExternalTextureDescriptor { next_in_chain: *const ChainedStruct, label: ?[*:0]const u8 = null, diff --git a/gpu/src/external_texture.zig b/gpu/src/external_texture.zig index 726803a0..92988c37 100644 --- a/gpu/src/external_texture.zig +++ b/gpu/src/external_texture.zig @@ -10,4 +10,8 @@ pub const ExternalTexture = enum(usize) { chain: ChainedStruct, external_texture: ExternalTexture, }; + + pub const BindingLayout = extern struct { + chain: ChainedStruct, + }; };