gpu: rename Surface.Descriptor.xlib_window -> xlib

To appropriately match the upstream, webgpu.h, which has renamed in this way.

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-08 19:40:33 -07:00 committed by Stephen Gutekanst
parent 0be5cae328
commit 99744134f8
3 changed files with 4 additions and 4 deletions

View file

@ -141,7 +141,7 @@ pub fn createSurface(native: *const NativeInstance, descriptor: *const Surface.D
.label = if (src.label) |l| @ptrCast([*c]const u8, l) else null,
});
},
.xlib_window => |src| blk: {
.xlib => |src| blk: {
var desc: c.WGPUSurfaceDescriptorFromXlibWindow = undefined;
desc.chain.next = null;
desc.chain.sType = c.WGPUSType_SurfaceDescriptorFromXlibWindow;