gpu: add StencilFaceState
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
9b08741970
commit
ad03565ff5
3 changed files with 13 additions and 9 deletions
12
gpu/src/TODO
12
gpu/src/TODO
|
|
@ -374,9 +374,6 @@ typedef struct WGPURenderPassTimestampWrite {
|
||||||
WGPURenderPassTimestampLocation location;
|
WGPURenderPassTimestampLocation location;
|
||||||
} WGPURenderPassTimestampWrite;
|
} WGPURenderPassTimestampWrite;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
typedef struct WGPURenderPassDepthStencilAttachment {
|
typedef struct WGPURenderPassDepthStencilAttachment {
|
||||||
WGPUTextureView view;
|
WGPUTextureView view;
|
||||||
WGPULoadOp depthLoadOp;
|
WGPULoadOp depthLoadOp;
|
||||||
|
|
@ -391,12 +388,9 @@ typedef struct WGPURenderPassDepthStencilAttachment {
|
||||||
bool stencilReadOnly;
|
bool stencilReadOnly;
|
||||||
} WGPURenderPassDepthStencilAttachment;
|
} WGPURenderPassDepthStencilAttachment;
|
||||||
|
|
||||||
typedef struct WGPUStencilFaceState {
|
|
||||||
WGPUCompareFunction compare;
|
|
||||||
WGPUStencilOperation failOp;
|
|
||||||
WGPUStencilOperation depthFailOp;
|
|
||||||
WGPUStencilOperation passOp;
|
|
||||||
} WGPUStencilFaceState;
|
|
||||||
|
|
||||||
typedef struct WGPUVertexAttribute {
|
typedef struct WGPUVertexAttribute {
|
||||||
WGPUVertexFormat format;
|
WGPUVertexFormat format;
|
||||||
|
|
|
||||||
|
|
@ -80,6 +80,7 @@ pub const BlendComponent = @import("structs.zig").BlendComponent;
|
||||||
pub const Color = @import("structs.zig").Color;
|
pub const Color = @import("structs.zig").Color;
|
||||||
pub const Extent3D = @import("structs.zig").Extent3D;
|
pub const Extent3D = @import("structs.zig").Extent3D;
|
||||||
pub const Origin3D = @import("structs.zig").Origin3D;
|
pub const Origin3D = @import("structs.zig").Origin3D;
|
||||||
|
pub const StencilFaceState = @import("structs.zig").StencilFaceState;
|
||||||
|
|
||||||
// Enumerations
|
// Enumerations
|
||||||
pub const Feature = @import("enums.zig").Feature;
|
pub const Feature = @import("enums.zig").Feature;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
const BlendOperation = @import("enums.zig").BlendOperation;
|
const BlendOperation = @import("enums.zig").BlendOperation;
|
||||||
const BlendFactor = @import("enums.zig").BlendFactor;
|
const BlendFactor = @import("enums.zig").BlendFactor;
|
||||||
|
const CompareFunction = @import("enums.zig").CompareFunction;
|
||||||
|
const StencilOperation = @import("enums.zig").StencilOperation;
|
||||||
|
|
||||||
// TODO: docs
|
// TODO: docs
|
||||||
pub const Limits = extern struct {
|
pub const Limits = extern struct {
|
||||||
|
|
@ -55,3 +57,10 @@ pub const Origin3D = extern struct {
|
||||||
y: u32,
|
y: u32,
|
||||||
z: u32,
|
z: u32,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const StencilFaceState = extern struct {
|
||||||
|
compare: CompareFunction,
|
||||||
|
fail_op: StencilOperation,
|
||||||
|
depth_fail_op: StencilOperation,
|
||||||
|
pass_op: StencilOperation,
|
||||||
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue