gpu: add FragmentState

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

View file

@ -601,6 +601,16 @@ pub const VertexState = extern struct {
buffers: [*]const VertexBufferLayout,
};
pub const FragmentState = extern struct {
next_in_chain: *const ChainedStruct,
module: ShaderModule,
entry_point: [*:0]const u8,
constant_count: u32,
constants: [*]const ConstantEntry,
target_count: u32,
targets: [*]const ColorTargetState,
};
test "BackendType name" {
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
}