gpu: add VertexStepMode enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
26ecb102f7
commit
3365320f64
2 changed files with 6 additions and 7 deletions
|
|
@ -1,12 +1,5 @@
|
||||||
typedef uint32_t WGPUFlags;
|
typedef uint32_t WGPUFlags;
|
||||||
|
|
||||||
typedef enum WGPUVertexStepMode {
|
|
||||||
WGPUVertexStepMode_Vertex = 0x00000000,
|
|
||||||
WGPUVertexStepMode_Instance = 0x00000001,
|
|
||||||
WGPUVertexStepMode_VertexBufferNotUsed = 0x00000002,
|
|
||||||
WGPUVertexStepMode_Force32 = 0x7FFFFFFF
|
|
||||||
} WGPUVertexStepMode;
|
|
||||||
|
|
||||||
typedef enum WGPUBufferUsage {
|
typedef enum WGPUBufferUsage {
|
||||||
WGPUBufferUsage_None = 0x00000000,
|
WGPUBufferUsage_None = 0x00000000,
|
||||||
WGPUBufferUsage_MapRead = 0x00000001,
|
WGPUBufferUsage_MapRead = 0x00000001,
|
||||||
|
|
|
||||||
|
|
@ -289,6 +289,12 @@ pub const VertexFormat = enum(u32) {
|
||||||
sint32x4 = 0x0000001e,
|
sint32x4 = 0x0000001e,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const VertexStepMode = enum(u32) {
|
||||||
|
vertex = 0x00000000,
|
||||||
|
instance = 0x00000001,
|
||||||
|
vertex_buffer_not_used = 0x00000002,
|
||||||
|
};
|
||||||
|
|
||||||
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