gpu: add BlendComponent type
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
a6eab5ef18
commit
2ec3496478
2 changed files with 6 additions and 6 deletions
|
|
@ -1,9 +1,3 @@
|
||||||
typedef struct WGPUBlendComponent {
|
|
||||||
WGPUBlendOperation operation;
|
|
||||||
WGPUBlendFactor srcFactor;
|
|
||||||
WGPUBlendFactor dstFactor;
|
|
||||||
} WGPUBlendComponent;
|
|
||||||
|
|
||||||
typedef struct WGPUBufferBindingLayout {
|
typedef struct WGPUBufferBindingLayout {
|
||||||
WGPUChainedStruct const * nextInChain;
|
WGPUChainedStruct const * nextInChain;
|
||||||
WGPUBufferBindingType type;
|
WGPUBufferBindingType type;
|
||||||
|
|
|
||||||
|
|
@ -374,6 +374,12 @@ pub const ChainedStructOut = extern struct {
|
||||||
s_type: SType,
|
s_type: SType,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const BlendComponent = extern struct {
|
||||||
|
operation: BlendOperation = .add,
|
||||||
|
src_factor: BlendFactor = .one,
|
||||||
|
dst_factor: BlendFactor = .zero,
|
||||||
|
};
|
||||||
|
|
||||||
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