gpu: add PowerPreference enum

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-11 07:55:42 -07:00 committed by Stephen Gutekanst
parent 806ec0d147
commit 792e64906f
2 changed files with 6 additions and 7 deletions

View file

@ -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());
}