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