gpu: add PrimitiveState
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
242b224f96
commit
db0fc8ad99
2 changed files with 8 additions and 8 deletions
|
|
@ -1,11 +1,3 @@
|
|||
pub const PrimitiveState = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
topology: PrimitiveTopology,
|
||||
strip_index_format: IndexFormat,
|
||||
front_face: FrontFace,
|
||||
cull_mode: CullMode,
|
||||
};
|
||||
|
||||
pub const WGPUQuerySetDescriptor = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
label: ?[*:0]const u8 = null,
|
||||
|
|
|
|||
|
|
@ -474,6 +474,14 @@ pub const PrimitiveDepthClipControl = extern struct {
|
|||
unclipped_depth: bool,
|
||||
};
|
||||
|
||||
pub const PrimitiveState = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
topology: PrimitiveTopology,
|
||||
strip_index_format: IndexFormat,
|
||||
front_face: FrontFace,
|
||||
cull_mode: CullMode,
|
||||
};
|
||||
|
||||
test "BackendType name" {
|
||||
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue