gpu: add Origin3D

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

View file

@ -377,12 +377,6 @@ typedef struct WGPURenderPassTimestampWrite {
typedef struct WGPUOrigin3D {
uint32_t x;
uint32_t y;
uint32_t z;
} WGPUOrigin3D;
typedef struct WGPURenderPassDepthStencilAttachment {
WGPUTextureView view;
WGPULoadOp depthLoadOp;

View file

@ -78,6 +78,8 @@ pub const ComputePipeline = @import("ComputePipeline.zig");
pub const Limits = @import("structs.zig").Limits;
pub const BlendComponent = @import("structs.zig").BlendComponent;
pub const Color = @import("structs.zig").Color;
pub const Extent3D = @import("structs.zig").Extent3D;
pub const Origin3D = @import("structs.zig").Origin3D;
// Enumerations
pub const Feature = @import("enums.zig").Feature;

View file

@ -49,3 +49,9 @@ pub const Extent3D = extern struct {
height: u32,
depth_or_array_layers: u32,
};
pub const Origin3D = extern struct {
x: u32,
y: u32,
z: u32,
};