gpu: make setBindGroup methods use slice helper API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
b369635193
commit
5d88387dac
7 changed files with 35 additions and 16 deletions
|
|
@ -547,10 +547,10 @@ pub const Interface = struct {
|
|||
procs.deviceDestroy.?(@ptrCast(c.WGPUDevice, device));
|
||||
}
|
||||
|
||||
pub inline fn deviceEnumerateFeatures(device: *gpu.Device, features: [*]gpu.FeatureName) usize {
|
||||
pub inline fn deviceEnumerateFeatures(device: *gpu.Device, features: ?[*]gpu.FeatureName) usize {
|
||||
return procs.deviceEnumerateFeatures.?(
|
||||
@ptrCast(c.WGPUDevice, device),
|
||||
@ptrCast([*]c.WGPUFeatureName, features),
|
||||
@ptrCast(?[*]c.WGPUFeatureName, features),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue