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
|
|
@ -1,13 +1,3 @@
|
||||||
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,
|
|
||||||
};
|
|
||||||
|
|
||||||
pub const WGPURenderPipelineDescriptor = extern struct {
|
pub const WGPURenderPipelineDescriptor = extern struct {
|
||||||
next_in_chain: *const ChainedStruct,
|
next_in_chain: *const ChainedStruct,
|
||||||
label: ?[*:0]const u8 = null,
|
label: ?[*:0]const u8 = null,
|
||||||
|
|
|
||||||
|
|
@ -601,6 +601,16 @@ pub const VertexState = extern struct {
|
||||||
buffers: [*]const VertexBufferLayout,
|
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" {
|
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