gpu: use PowerPreference
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
9c2fc82fa3
commit
40f92dd9d9
4 changed files with 6 additions and 7 deletions
|
|
@ -69,9 +69,7 @@ const interface_vtable = Interface.VTable{
|
|||
const opt = c.WGPURequestAdapterOptions{
|
||||
.nextInChain = null,
|
||||
.compatibleSurface = if (options.compatible_surface) |surface| @ptrCast(c.WGPUSurface, surface.ptr) else null,
|
||||
// TODO:
|
||||
//.powerPreference = power_preference,
|
||||
.powerPreference = c.WGPUPowerPreference_Undefined,
|
||||
.powerPreference = @enumToInt(options.power_preference),
|
||||
.forceFallbackAdapter = options.force_fallback_adapter,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue