gpu: add CullMode enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
6e0c71f121
commit
963f06261f
2 changed files with 6 additions and 7 deletions
|
|
@ -1,12 +1,5 @@
|
||||||
typedef uint32_t WGPUFlags;
|
typedef uint32_t WGPUFlags;
|
||||||
|
|
||||||
typedef enum WGPUCullMode {
|
|
||||||
WGPUCullMode_None = 0x00000000,
|
|
||||||
WGPUCullMode_Front = 0x00000001,
|
|
||||||
WGPUCullMode_Back = 0x00000002,
|
|
||||||
WGPUCullMode_Force32 = 0x7FFFFFFF
|
|
||||||
} WGPUCullMode;
|
|
||||||
|
|
||||||
typedef enum WGPUDeviceLostReason {
|
typedef enum WGPUDeviceLostReason {
|
||||||
WGPUDeviceLostReason_Undefined = 0x00000000,
|
WGPUDeviceLostReason_Undefined = 0x00000000,
|
||||||
WGPUDeviceLostReason_Destroyed = 0x00000001,
|
WGPUDeviceLostReason_Destroyed = 0x00000001,
|
||||||
|
|
|
||||||
|
|
@ -88,3 +88,9 @@ pub const CreatePipelineAsyncStatus = enum(u32) {
|
||||||
device_destroyed = 0x00000003,
|
device_destroyed = 0x00000003,
|
||||||
unknown = 0x00000004,
|
unknown = 0x00000004,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const CullMode = enum(u32) {
|
||||||
|
none = 0x00000000,
|
||||||
|
front = 0x00000001,
|
||||||
|
back = 0x00000002,
|
||||||
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue