gpu: add VertexState
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
2fa5e5adf4
commit
1632a5305e
2 changed files with 10 additions and 10 deletions
|
|
@ -1,13 +1,3 @@
|
||||||
pub const VertexState = extern struct {
|
|
||||||
next_in_chain: *const ChainedStruct,
|
|
||||||
module: ShaderModule,
|
|
||||||
entry_point: [*:0]const u8,
|
|
||||||
constant_count: u32,
|
|
||||||
constants: [*]const ConstantEntry,
|
|
||||||
buffer_count: u32,
|
|
||||||
buffers: [*]const VertexBufferLayout,
|
|
||||||
};
|
|
||||||
|
|
||||||
pub const FragmentState = extern struct {
|
pub const FragmentState = extern struct {
|
||||||
next_in_chain: *const ChainedStruct,
|
next_in_chain: *const ChainedStruct,
|
||||||
module: ShaderModule,
|
module: ShaderModule,
|
||||||
|
|
|
||||||
|
|
@ -591,6 +591,16 @@ pub const ColorTargetState = extern struct {
|
||||||
write_mask: ColorWriteMaskFlags,
|
write_mask: ColorWriteMaskFlags,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const VertexState = extern struct {
|
||||||
|
next_in_chain: *const ChainedStruct,
|
||||||
|
module: ShaderModule,
|
||||||
|
entry_point: [*:0]const u8,
|
||||||
|
constant_count: u32,
|
||||||
|
constants: [*]const ConstantEntry,
|
||||||
|
buffer_count: u32,
|
||||||
|
buffers: [*]const VertexBufferLayout,
|
||||||
|
};
|
||||||
|
|
||||||
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