gpu: add FrontFace enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
3c3a940833
commit
6e8e0febdd
2 changed files with 5 additions and 6 deletions
|
|
@ -1,11 +1,5 @@
|
||||||
typedef uint32_t WGPUFlags;
|
typedef uint32_t WGPUFlags;
|
||||||
|
|
||||||
typedef enum WGPUFrontFace {
|
|
||||||
WGPUFrontFace_CCW = 0x00000000,
|
|
||||||
WGPUFrontFace_CW = 0x00000001,
|
|
||||||
WGPUFrontFace_Force32 = 0x7FFFFFFF
|
|
||||||
} WGPUFrontFace;
|
|
||||||
|
|
||||||
typedef enum WGPUIndexFormat {
|
typedef enum WGPUIndexFormat {
|
||||||
WGPUIndexFormat_Undefined = 0x00000000,
|
WGPUIndexFormat_Undefined = 0x00000000,
|
||||||
WGPUIndexFormat_Uint16 = 0x00000001,
|
WGPUIndexFormat_Uint16 = 0x00000001,
|
||||||
|
|
|
||||||
|
|
@ -133,6 +133,11 @@ pub const FilterMode = enum(u32) {
|
||||||
linear = 0x00000001,
|
linear = 0x00000001,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const FrontFace = enum(u32) {
|
||||||
|
ccw = 0x00000000,
|
||||||
|
cw = 0x00000001,
|
||||||
|
};
|
||||||
|
|
||||||
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