gpu: fix example build (#663)
This commit is contained in:
parent
2271c78fd6
commit
cf8922cc33
2 changed files with 3 additions and 3 deletions
|
|
@ -28,8 +28,8 @@ pub fn build(b: *std.build.Builder) !void {
|
|||
const example = b.addExecutable("gpu-hello-triangle", "examples/main.zig");
|
||||
example.setBuildMode(mode);
|
||||
example.setTarget(target);
|
||||
example.addPackage(gpu.pkg);
|
||||
example.addPackage(glfw.pkg);
|
||||
example.addPackage(gpu.pkg(b));
|
||||
example.addPackage(glfw.pkg(b));
|
||||
try gpu.link(b, example, .{ .gpu_dawn_options = gpu_dawn_options });
|
||||
example.install();
|
||||
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ pub fn setup(allocator: std.mem.Allocator) !Setup {
|
|||
var response: ?RequestAdapterResponse = null;
|
||||
instance.?.requestAdapter(&gpu.RequestAdapterOptions{
|
||||
.compatible_surface = surface,
|
||||
.power_preference = .undef,
|
||||
.power_preference = .undefined,
|
||||
.force_fallback_adapter = false,
|
||||
}, &response, requestAdapterCallback);
|
||||
if (response.?.status != .success) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue