gpu: add RenderPassColorAttachment
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
b505c5aecf
commit
48a3103bb9
3 changed files with 10 additions and 9 deletions
|
|
@ -143,15 +143,6 @@ typedef struct WGPUPrimitiveDepthClampingState {
|
||||||
bool clampDepth;
|
bool clampDepth;
|
||||||
} WGPUPrimitiveDepthClampingState;
|
} WGPUPrimitiveDepthClampingState;
|
||||||
|
|
||||||
typedef struct WGPURenderPassColorAttachment {
|
|
||||||
WGPUTextureView view;
|
|
||||||
WGPUTextureView resolveTarget;
|
|
||||||
WGPULoadOp loadOp;
|
|
||||||
WGPUStoreOp storeOp;
|
|
||||||
WGPUColor clearColor;
|
|
||||||
WGPUColor clearValue;
|
|
||||||
} WGPURenderPassColorAttachment;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -99,6 +99,7 @@ pub const ProgrammableStageDescriptor = @import("structs.zig").ProgrammableStage
|
||||||
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;
|
pub const RenderPassDepthStencilAttachment = @import("structs.zig").RenderPassDepthStencilAttachment;
|
||||||
|
pub const RenderPassColorAttachment = @import("structs.zig").RenderPassColorAttachment;
|
||||||
|
|
||||||
// Enumerations
|
// Enumerations
|
||||||
pub const Feature = @import("enums.zig").Feature;
|
pub const Feature = @import("enums.zig").Feature;
|
||||||
|
|
|
||||||
|
|
@ -102,6 +102,14 @@ pub const RenderPassDepthStencilAttachment = struct {
|
||||||
stencil_read_only: bool,
|
stencil_read_only: bool,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const RenderPassColorAttachment = struct {
|
||||||
|
view: TextureView,
|
||||||
|
resolve_target: TextureView,
|
||||||
|
load_op: LoadOp,
|
||||||
|
store_op: StoreOp,
|
||||||
|
clear_value: Color,
|
||||||
|
};
|
||||||
|
|
||||||
test "syntax" {
|
test "syntax" {
|
||||||
_ = CompilationMessage;
|
_ = CompilationMessage;
|
||||||
_ = CompilationInfo;
|
_ = CompilationInfo;
|
||||||
|
|
@ -114,4 +122,5 @@ test "syntax" {
|
||||||
_ = ComputePassTimestampWrite;
|
_ = ComputePassTimestampWrite;
|
||||||
_ = RenderPassTimestampWrite;
|
_ = RenderPassTimestampWrite;
|
||||||
_ = RenderPassDepthStencilAttachment;
|
_ = RenderPassDepthStencilAttachment;
|
||||||
|
_ = RenderPassColorAttachment;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue