gpu: add PredefinedColorSpace enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
de3660053d
commit
1865d1c83a
2 changed files with 7 additions and 0 deletions
|
|
@ -288,6 +288,11 @@ pub const PowerPreference = enum(u32) {
|
|||
high_performance = 0x00000002,
|
||||
};
|
||||
|
||||
pub const PredefinedColorSpace = enum(u32) {
|
||||
none = 0x00000000,
|
||||
srgb = 0x00000001,
|
||||
};
|
||||
|
||||
test "name" {
|
||||
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
|
||||
}
|
||||
|
|
@ -317,4 +322,5 @@ test "syntax" {
|
|||
_ = LoggingType;
|
||||
_ = PipelineStatistic;
|
||||
_ = PowerPreference;
|
||||
_ = PredefinedColorSpace;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ pub const LoadOp = @import("enums.zig").LoadOp;
|
|||
pub const LoggingType = @import("enums.zig").LoggingType;
|
||||
pub const PipelineStatistic = @import("enums.zig").PipelineStatistic;
|
||||
pub const PowerPreference = @import("enums.zig").PowerPreference;
|
||||
pub const PredefinedColorSpace = @import("enums.zig").PredefinedColorSpace;
|
||||
|
||||
test "syntax" {
|
||||
_ = Interface;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue