gpu: workaround issue in self-hosted compiler

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-08-20 23:28:28 -07:00
parent c4421840cb
commit f56606a3c3
2 changed files with 9 additions and 3 deletions

View file

@ -523,7 +523,9 @@ pub const Interface = struct {
);
}
pub inline fn deviceCreateSampler(device: *gpu.Device, descriptor: ?*const gpu.Sampler.Descriptor) *gpu.Sampler {
// TODO(self-hosted): this cannot be marked as inline for some reason.
// https://github.com/ziglang/zig/issues/12545
pub fn deviceCreateSampler(device: *gpu.Device, descriptor: ?*const gpu.Sampler.Descriptor) *gpu.Sampler {
return @ptrCast(*gpu.Sampler, procs.deviceCreateSampler.?(
@ptrCast(c.WGPUDevice, device),
@ptrCast(?*const c.WGPUSamplerDescriptor, descriptor),