gpu: add VertexState

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-11 17:19:40 -07:00 committed by Stephen Gutekanst
parent 77810482bd
commit ec300679a0
3 changed files with 10 additions and 11 deletions

View file

@ -73,7 +73,7 @@ pub const ConstantEntry = struct {
pub const ProgrammableStageDescriptor = struct {
label: ?[*:0]const u8 = null,
module: ShaderModule,
entryPoint: [*:0]const u8,
entry_point: [*:0]const u8,
constants: []const ConstantEntry,
};
@ -111,6 +111,13 @@ pub const RenderPassColorAttachment = struct {
clear_value: Color,
};
pub const VertexState = struct {
module: ShaderModule,
entry_point: [*:0]const u8,
constants: []const ConstantEntry,
buffers: []const VertexBufferLayout,
};
test "syntax" {
_ = CompilationMessage;
_ = CompilationInfo;
@ -124,4 +131,5 @@ test "syntax" {
_ = RenderPassTimestampWrite;
_ = RenderPassDepthStencilAttachment;
_ = RenderPassColorAttachment;
_ = VertexState;
}