gpu: example: change window title to "mach/gpu window"

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-19 00:45:02 -07:00 committed by Stephen Gutekanst
parent fa9b5f1d5d
commit 689f2b5122

View file

@ -60,7 +60,7 @@ pub fn setup(allocator: std.mem.Allocator) !Setup {
// Create the test window and discover adapters using it (esp. for OpenGL) // Create the test window and discover adapters using it (esp. for OpenGL)
var hints = glfwWindowHintsForBackend(backend_type); var hints = glfwWindowHintsForBackend(backend_type);
hints.cocoa_retina_framebuffer = true; hints.cocoa_retina_framebuffer = true;
const window = try glfw.Window.create(640, 480, "Dawn window", null, null, hints); const window = try glfw.Window.create(640, 480, "mach/gpu window", null, null, hints);
const backend_procs = c.machDawnNativeGetProcs(); const backend_procs = c.machDawnNativeGetProcs();
c.dawnProcSetProcs(backend_procs); c.dawnProcSetProcs(backend_procs);