gpu: convert *opaque -> opaque for QuerySet
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
ca0fa7f045
commit
c75d1d9e06
5 changed files with 13 additions and 13 deletions
|
|
@ -69,7 +69,7 @@ pub const CommandEncoder = opaque {
|
|||
Impl.commandEncoderPushDebugGroup(command_encoder, group_label);
|
||||
}
|
||||
|
||||
pub inline fn resolveQuerySet(command_encoder: *CommandEncoder, query_set: QuerySet, first_query: u32, query_count: u32, destination: *Buffer, destination_offset: u64) void {
|
||||
pub inline fn resolveQuerySet(command_encoder: *CommandEncoder, query_set: *QuerySet, first_query: u32, query_count: u32, destination: *Buffer, destination_offset: u64) void {
|
||||
Impl.commandEncoderResolveQuerySet(command_encoder, query_set, first_query, query_count, destination, destination_offset);
|
||||
}
|
||||
|
||||
|
|
@ -81,7 +81,7 @@ pub const CommandEncoder = opaque {
|
|||
Impl.commandEncoderWriteBuffer(command_encoder, buffer, buffer_offset, data, size);
|
||||
}
|
||||
|
||||
pub inline fn writeTimestamp(command_encoder: *CommandEncoder, query_set: QuerySet, query_index: u32) void {
|
||||
pub inline fn writeTimestamp(command_encoder: *CommandEncoder, query_set: *QuerySet, query_index: u32) void {
|
||||
Impl.commandEncoderWriteTimestamp(command_encoder, query_set, query_index);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ pub const Device = opaque {
|
|||
return Impl.deviceCreatePipelineLayout(device, pipeline_layout_descriptor);
|
||||
}
|
||||
|
||||
pub inline fn createQuerySet(device: *Device, descriptor: *const QuerySetDescriptor) QuerySet {
|
||||
pub inline fn createQuerySet(device: *Device, descriptor: *const QuerySetDescriptor) *QuerySet {
|
||||
return Impl.deviceCreateQuerySet(device, descriptor);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -601,7 +601,7 @@ pub fn Export(comptime T: type) type {
|
|||
}
|
||||
|
||||
// WGPU_EXPORT WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor);
|
||||
export fn wgpuDeviceCreateQuerySet(device: *gpu.Device, descriptor: *const gpu.QuerySetDescriptor) gpu.QuerySet {
|
||||
export fn wgpuDeviceCreateQuerySet(device: *gpu.Device, descriptor: *const gpu.QuerySetDescriptor) *gpu.QuerySet {
|
||||
return T.deviceCreateQuerySet(device, descriptor);
|
||||
}
|
||||
|
||||
|
|
@ -1679,7 +1679,7 @@ pub const StubInterface = Interface(struct {
|
|||
unreachable;
|
||||
}
|
||||
|
||||
pub inline fn deviceCreateQuerySet(device: *gpu.Device, descriptor: *const gpu.QuerySetDescriptor) gpu.QuerySet {
|
||||
pub inline fn deviceCreateQuerySet(device: *gpu.Device, descriptor: *const gpu.QuerySetDescriptor) *gpu.QuerySet {
|
||||
_ = device;
|
||||
_ = descriptor;
|
||||
unreachable;
|
||||
|
|
|
|||
|
|
@ -3,28 +3,28 @@ const PipelineStatisticName = @import("types.zig").PipelineStatisticName;
|
|||
const QueryType = @import("types.zig").QueryType;
|
||||
const Impl = @import("interface.zig").Impl;
|
||||
|
||||
pub const QuerySet = *opaque {
|
||||
pub inline fn destroy(query_set: QuerySet) void {
|
||||
pub const QuerySet = opaque {
|
||||
pub inline fn destroy(query_set: *QuerySet) void {
|
||||
Impl.querySetDestroy(query_set);
|
||||
}
|
||||
|
||||
pub inline fn getCount(query_set: QuerySet) u32 {
|
||||
pub inline fn getCount(query_set: *QuerySet) u32 {
|
||||
return Impl.querySetGetCount(query_set);
|
||||
}
|
||||
|
||||
pub inline fn getType(query_set: QuerySet) QueryType {
|
||||
pub inline fn getType(query_set: *QuerySet) QueryType {
|
||||
return Impl.querySetGetType(query_set);
|
||||
}
|
||||
|
||||
pub inline fn setLabel(query_set: QuerySet, label: [*:0]const u8) void {
|
||||
pub inline fn setLabel(query_set: *QuerySet, label: [*:0]const u8) void {
|
||||
Impl.querySetSetLabel(query_set, label);
|
||||
}
|
||||
|
||||
pub inline fn reference(query_set: QuerySet) void {
|
||||
pub inline fn reference(query_set: *QuerySet) void {
|
||||
Impl.querySetReference(query_set);
|
||||
}
|
||||
|
||||
pub inline fn release(query_set: QuerySet) void {
|
||||
pub inline fn release(query_set: *QuerySet) void {
|
||||
Impl.querySetRelease(query_set);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ pub const RenderPassEncoder = *opaque {
|
|||
Impl.renderPassEncoderSetViewport(render_pass_encoder, x, y, width, height, min_depth, max_depth);
|
||||
}
|
||||
|
||||
pub inline fn writeTimestamp(render_pass_encoder: RenderPassEncoder, query_set: QuerySet, query_index: u32) void {
|
||||
pub inline fn writeTimestamp(render_pass_encoder: RenderPassEncoder, query_set: *QuerySet, query_index: u32) void {
|
||||
Impl.renderPassEncoderWriteTimestamp(render_pass_encoder, query_set, query_index);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue