gpu: add Extent3D

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-15 01:20:55 -07:00 committed by Stephen Gutekanst
parent bb399b5050
commit 9079f5bd33
2 changed files with 6 additions and 6 deletions

View file

@ -59,12 +59,6 @@ typedef struct WGPUDawnTogglesDeviceDescriptor {
const char* const * forceDisabledToggles;
} WGPUDawnTogglesDeviceDescriptor;
typedef struct WGPUExtent3D {
width: u32,
height: u32,
depth_or_array_layers: u32,
} WGPUExtent3D;
typedef struct WGPUExternalTextureBindingEntry {
WGPUChainedStruct chain;
WGPUExternalTexture externalTexture;

View file

@ -387,6 +387,12 @@ pub const Color = extern struct {
a: f64,
};
pub const Extent3D = extern struct {
width: u32,
height: u32,
depth_or_array_layers: u32,
};
test "BackendType name" {
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
}