gpu: add Texture.destroy
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
181e0a19f5
commit
e9ac2a0f4f
2 changed files with 11 additions and 1 deletions
|
|
@ -571,6 +571,11 @@ const texture_vtable = Texture.VTable{
|
|||
c.wgpuTextureSetLabel(@ptrCast(c.WGPUTexture, ptr), label);
|
||||
}
|
||||
}).setLabel,
|
||||
.destroy = (struct {
|
||||
pub fn destroy(ptr: *anyopaque) void {
|
||||
c.wgpuTextureDestroy(@ptrCast(c.WGPUTexture, ptr));
|
||||
}
|
||||
}).destroy,
|
||||
};
|
||||
|
||||
fn wrapSampler(sampler: c.WGPUSampler) Sampler {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue