gpu-dawn: use cross-platform process.getEnvVarOwned
Helps hexops/mach#86 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
918bc61187
commit
e451e4acb8
2 changed files with 14 additions and 5 deletions
|
|
@ -15,7 +15,7 @@ pub fn main() !void {
|
|||
var gpa = std.heap.GeneralPurposeAllocator(.{}){};
|
||||
var allocator = gpa.allocator();
|
||||
|
||||
const setup = try sample_utils.setup();
|
||||
const setup = try sample_utils.setup(allocator);
|
||||
const queue = c.wgpuDeviceGetQueue(setup.device);
|
||||
|
||||
var descriptor = std.mem.zeroes(c.WGPUSwapChainDescriptor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue