gpu: add VertexBufferLayout

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-16 20:55:06 -07:00 committed by Stephen Gutekanst
parent ed1232f59d
commit 26a29e1b2a
2 changed files with 7 additions and 7 deletions

View file

@ -1,10 +1,3 @@
pub const VertexBufferLayout = extern struct {
array_stride: u64,
step_mode: VertexStepMode,
attribute_count: u32,
attributes: [*]const VertexAttribute,
};
pub const WGPUBindGroupLayoutDescriptor = extern struct {
next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null,

View file

@ -577,6 +577,13 @@ pub const SupportedLimits = extern struct {
limits: Limits,
};
pub const VertexBufferLayout = extern struct {
array_stride: u64,
step_mode: VertexStepMode,
attribute_count: u32,
attributes: [*]const VertexAttribute,
};
test "BackendType name" {
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
}