mach: use null and undefined in enums
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
This commit is contained in:
parent
37b7d32485
commit
e832784e6b
2 changed files with 3 additions and 3 deletions
|
|
@ -96,7 +96,7 @@ pub const Platform = struct {
|
|||
// Print which adapter we are going to use.
|
||||
var props: gpu.Adapter.Properties = undefined;
|
||||
response.?.adapter.getProperties(&props);
|
||||
if (props.backend_type == .nul) {
|
||||
if (props.backend_type == .null) {
|
||||
std.log.err("no backend found for {s} adapter", .{props.adapter_type.name()});
|
||||
std.process.exit(1);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,9 +52,9 @@ pub const Options = struct {
|
|||
required_limits: ?gpu.Limits = null,
|
||||
|
||||
/// Whether the application has a preference for low power or high performance GPU.
|
||||
power_preference: gpu.PowerPreference = .undef,
|
||||
power_preference: gpu.PowerPreference = .undefined,
|
||||
|
||||
/// If set, optimize for regular applications rather than games. e.g. disable Linux gamemode / process priority, prefer low-power GPU (if preference is .undef), etc.
|
||||
/// If set, optimize for regular applications rather than games. e.g. disable Linux gamemode / process priority, prefer low-power GPU (if preference is .undefined), etc.
|
||||
is_app: bool = false,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue