gpu: implement RenderPassEncoder.writeTimestamp
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
d707d7e2e2
commit
054b9e95a5
2 changed files with 14 additions and 16 deletions
|
|
@ -1083,15 +1083,15 @@ const render_pass_encoder_vtable = RenderPassEncoder.VTable{
|
|||
);
|
||||
}
|
||||
}).setViewport,
|
||||
// .writeTimestamp = (struct {
|
||||
// pub fn writeTimestamp(ptr: *anyopaque, query_set: QuerySet, query_index: u32) void {
|
||||
// c.wgpuRenderPassEncoderWriteTimestamp(
|
||||
// @ptrCast(c.WGPURenderPassEncoder, ptr),
|
||||
// @ptrCast(c.WGPUQuerySet, query_set.ptr),
|
||||
// query_index,
|
||||
// );
|
||||
// }
|
||||
// }).writeTimestamp,
|
||||
.writeTimestamp = (struct {
|
||||
pub fn writeTimestamp(ptr: *anyopaque, query_set: QuerySet, query_index: u32) void {
|
||||
c.wgpuRenderPassEncoderWriteTimestamp(
|
||||
@ptrCast(c.WGPURenderPassEncoder, ptr),
|
||||
@ptrCast(c.WGPUQuerySet, query_set.ptr),
|
||||
query_index,
|
||||
);
|
||||
}
|
||||
}).writeTimestamp,
|
||||
};
|
||||
|
||||
fn wrapRenderBundleEncoder(enc: c.WGPURenderBundleEncoder) RenderBundleEncoder {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue