gpu: add VertexAttribute
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
2e9ef64479
commit
82bff3e9b4
2 changed files with 6 additions and 6 deletions
|
|
@ -1,9 +1,3 @@
|
||||||
pub const VertexAttribute = extern struct {
|
|
||||||
format: VertexFormat,
|
|
||||||
offset: u64,
|
|
||||||
shader_location: u32,
|
|
||||||
};
|
|
||||||
|
|
||||||
pub const WGPUBindGroupDescriptor = extern struct {
|
pub const WGPUBindGroupDescriptor = extern struct {
|
||||||
next_in_chain: *const ChainedStruct,
|
next_in_chain: *const ChainedStruct,
|
||||||
label: ?[*:0]const u8 = null,
|
label: ?[*:0]const u8 = null,
|
||||||
|
|
|
||||||
|
|
@ -503,6 +503,12 @@ pub const StorageTextureBindingLayout = extern struct {
|
||||||
view_dimension: TextureView.Dimension,
|
view_dimension: TextureView.Dimension,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const VertexAttribute = extern struct {
|
||||||
|
format: VertexFormat,
|
||||||
|
offset: u64,
|
||||||
|
shader_location: u32,
|
||||||
|
};
|
||||||
|
|
||||||
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