gpu: add RenderPassDepthStencilAttachment
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
58fe1b12f7
commit
b505c5aecf
3 changed files with 18 additions and 14 deletions
14
gpu/src/TODO
14
gpu/src/TODO
|
|
@ -143,20 +143,6 @@ typedef struct WGPUPrimitiveDepthClampingState {
|
||||||
bool clampDepth;
|
bool clampDepth;
|
||||||
} WGPUPrimitiveDepthClampingState;
|
} WGPUPrimitiveDepthClampingState;
|
||||||
|
|
||||||
typedef struct WGPURenderPassDepthStencilAttachment {
|
|
||||||
WGPUTextureView view;
|
|
||||||
WGPULoadOp depthLoadOp;
|
|
||||||
WGPUStoreOp depthStoreOp;
|
|
||||||
float clearDepth;
|
|
||||||
float depthClearValue;
|
|
||||||
bool depthReadOnly;
|
|
||||||
WGPULoadOp stencilLoadOp;
|
|
||||||
WGPUStoreOp stencilStoreOp;
|
|
||||||
uint32_t clearStencil;
|
|
||||||
uint32_t stencilClearValue;
|
|
||||||
bool stencilReadOnly;
|
|
||||||
} WGPURenderPassDepthStencilAttachment;
|
|
||||||
|
|
||||||
typedef struct WGPURenderPassColorAttachment {
|
typedef struct WGPURenderPassColorAttachment {
|
||||||
WGPUTextureView view;
|
WGPUTextureView view;
|
||||||
WGPUTextureView resolveTarget;
|
WGPUTextureView resolveTarget;
|
||||||
|
|
|
||||||
|
|
@ -98,6 +98,7 @@ pub const ConstantEntry = @import("structs.zig").ConstantEntry;
|
||||||
pub const ProgrammableStageDescriptor = @import("structs.zig").ProgrammableStageDescriptor;
|
pub const ProgrammableStageDescriptor = @import("structs.zig").ProgrammableStageDescriptor;
|
||||||
pub const ComputePassTimestampWrite = @import("structs.zig").ComputePassTimestampWrite;
|
pub const ComputePassTimestampWrite = @import("structs.zig").ComputePassTimestampWrite;
|
||||||
pub const RenderPassTimestampWrite = @import("structs.zig").RenderPassTimestampWrite;
|
pub const RenderPassTimestampWrite = @import("structs.zig").RenderPassTimestampWrite;
|
||||||
|
pub const RenderPassDepthStencilAttachment = @import("structs.zig").RenderPassDepthStencilAttachment;
|
||||||
|
|
||||||
// Enumerations
|
// Enumerations
|
||||||
pub const Feature = @import("enums.zig").Feature;
|
pub const Feature = @import("enums.zig").Feature;
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,8 @@ const StorageTextureAccess = @import("enums.zig").StorageTextureAccess;
|
||||||
const CompareFunction = @import("enums.zig").CompareFunction;
|
const CompareFunction = @import("enums.zig").CompareFunction;
|
||||||
const ComputePassTimestampLocation = @import("enums.zig").ComputePassTimestampLocation;
|
const ComputePassTimestampLocation = @import("enums.zig").ComputePassTimestampLocation;
|
||||||
const RenderPassTimestampLocation = @import("enums.zig").RenderPassTimestampLocation;
|
const RenderPassTimestampLocation = @import("enums.zig").RenderPassTimestampLocation;
|
||||||
|
const LoadOp = @import("enums.zig").LoadOp;
|
||||||
|
const StoreOp = @import("enums.zig").StoreOp;
|
||||||
|
|
||||||
pub const CompilationMessage = struct {
|
pub const CompilationMessage = struct {
|
||||||
message: [:0]const u8,
|
message: [:0]const u8,
|
||||||
|
|
@ -86,6 +88,20 @@ pub const RenderPassTimestampWrite = struct {
|
||||||
location: RenderPassTimestampLocation,
|
location: RenderPassTimestampLocation,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const RenderPassDepthStencilAttachment = struct {
|
||||||
|
view: TextureView,
|
||||||
|
depth_load_op: LoadOp,
|
||||||
|
depth_store_op: StoreOp,
|
||||||
|
clear_depth: f32,
|
||||||
|
depth_clear_value: f32,
|
||||||
|
depth_read_only: bool,
|
||||||
|
stencil_load_op: LoadOp,
|
||||||
|
stencil_store_op: StoreOp,
|
||||||
|
clear_stencil: u32,
|
||||||
|
stencil_clear_value: u32,
|
||||||
|
stencil_read_only: bool,
|
||||||
|
};
|
||||||
|
|
||||||
test "syntax" {
|
test "syntax" {
|
||||||
_ = CompilationMessage;
|
_ = CompilationMessage;
|
||||||
_ = CompilationInfo;
|
_ = CompilationInfo;
|
||||||
|
|
@ -97,4 +113,5 @@ test "syntax" {
|
||||||
_ = ProgrammableStageDescriptor;
|
_ = ProgrammableStageDescriptor;
|
||||||
_ = ComputePassTimestampWrite;
|
_ = ComputePassTimestampWrite;
|
||||||
_ = RenderPassTimestampWrite;
|
_ = RenderPassTimestampWrite;
|
||||||
|
_ = RenderPassDepthStencilAttachment;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue