gpu: add FragmentState
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
1632a5305e
commit
122713a44d
2 changed files with 10 additions and 10 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue