gpu: add VertexState

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-16 21:03:54 -07:00 committed by Stephen Gutekanst
parent 2fa5e5adf4
commit 1632a5305e
2 changed files with 10 additions and 10 deletions

View file

@ -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 {
next_in_chain: *const ChainedStruct,
module: ShaderModule,

View file

@ -591,6 +591,16 @@ pub const ColorTargetState = extern struct {
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" {
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
}