gpu: add Extent3D

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-11 14:46:21 -07:00 committed by Stephen Gutekanst
parent 8abcbd6444
commit edf66b6b8d
2 changed files with 6 additions and 6 deletions

View file

@ -377,12 +377,6 @@ typedef struct WGPURenderPassTimestampWrite {
typedef struct WGPUExtent3D {
uint32_t width;
uint32_t height;
uint32_t depthOrArrayLayers;
} WGPUExtent3D;
typedef struct WGPUOrigin3D { typedef struct WGPUOrigin3D {
uint32_t x; uint32_t x;
uint32_t y; uint32_t y;

View file

@ -43,3 +43,9 @@ pub const Color = extern struct {
b: f64, b: f64,
a: f64, a: f64,
}; };
pub const Extent3D = extern struct {
width: u32,
height: u32,
depth_or_array_layers: u32,
};