gpu: add PowerPreference enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
806ec0d147
commit
792e64906f
2 changed files with 6 additions and 7 deletions
|
|
@ -1,12 +1,5 @@
|
|||
typedef uint32_t WGPUFlags;
|
||||
|
||||
typedef enum WGPUPowerPreference {
|
||||
WGPUPowerPreference_Undefined = 0x00000000,
|
||||
WGPUPowerPreference_LowPower = 0x00000001,
|
||||
WGPUPowerPreference_HighPerformance = 0x00000002,
|
||||
WGPUPowerPreference_Force32 = 0x7FFFFFFF
|
||||
} WGPUPowerPreference;
|
||||
|
||||
typedef enum WGPUPresentMode {
|
||||
WGPUPresentMode_Immediate = 0x00000000,
|
||||
WGPUPresentMode_Mailbox = 0x00000001,
|
||||
|
|
|
|||
|
|
@ -165,6 +165,12 @@ pub const PipelineStatisticName = enum(u32) {
|
|||
compute_shader_invocations = 0x00000004,
|
||||
};
|
||||
|
||||
pub const PowerPreference = enum(u32) {
|
||||
undef = 0x00000000,
|
||||
low_power = 0x00000001,
|
||||
high_performance = 0x00000002,
|
||||
};
|
||||
|
||||
test "BackendType name" {
|
||||
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue