gpu: add RenderPassColorAttachment
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
8683fa8aa9
commit
ad6d037d8f
2 changed files with 9 additions and 9 deletions
|
|
@ -1,12 +1,3 @@
|
||||||
pub const WGPURenderPassColorAttachment = extern struct {
|
|
||||||
view: TextureView = TextureView.none, // nullable
|
|
||||||
resolve_target: TextureView = TextureView.none, // nullable
|
|
||||||
load_op: LoadOp,
|
|
||||||
store_op: StoreOp,
|
|
||||||
clear_color: Color,
|
|
||||||
clear_value: Color,
|
|
||||||
};
|
|
||||||
|
|
||||||
pub const RequiredLimits = extern struct {
|
pub const RequiredLimits = extern struct {
|
||||||
next_in_chain: *const ChainedStruct,
|
next_in_chain: *const ChainedStruct,
|
||||||
limits: Limits,
|
limits: Limits,
|
||||||
|
|
|
||||||
|
|
@ -558,6 +558,15 @@ pub const ProgrammableStageDescriptor = extern struct {
|
||||||
constants: [*]const ConstantEntry,
|
constants: [*]const ConstantEntry,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const RenderPassColorAttachment = extern struct {
|
||||||
|
view: TextureView = TextureView.none, // nullable
|
||||||
|
resolve_target: TextureView = TextureView.none, // nullable
|
||||||
|
load_op: LoadOp,
|
||||||
|
store_op: StoreOp,
|
||||||
|
clear_color: Color,
|
||||||
|
clear_value: Color,
|
||||||
|
};
|
||||||
|
|
||||||
test "BackendType name" {
|
test "BackendType name" {
|
||||||
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
|
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue