gpu: implement Dawn commandEncoderResolveQuerySet

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 17:37:44 -07:00 committed by Stephen Gutekanst
parent e9998e4e6d
commit e49a8f95d7

View file

@ -275,13 +275,14 @@ pub const Interface = gpu.Interface(struct {
}
pub inline fn commandEncoderResolveQuerySet(command_encoder: *gpu.CommandEncoder, query_set: *gpu.QuerySet, first_query: u32, query_count: u32, destination: *gpu.Buffer, destination_offset: u64) void {
_ = command_encoder;
_ = query_set;
_ = first_query;
_ = query_count;
_ = destination;
_ = destination_offset;
unreachable;
procs.commandEncoderResolveQuerySet.?(
@ptrCast(c.WGPUCommandEncoder, command_encoder),
@ptrCast(c.WGPUQuerySet, query_set),
first_query,
query_count,
@ptrCast(c.WGPUBuffer, destination),
destination_offset,
);
}
pub inline fn commandEncoderSetLabel(command_encoder: *gpu.CommandEncoder, label: [*:0]const u8) void {