gpu: convert *opaque -> opaque for TextureView

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-29 23:01:55 -07:00 committed by Stephen Gutekanst
parent f59435f0b0
commit 3589e9cbaf
4 changed files with 7 additions and 7 deletions

View file

@ -6,16 +6,16 @@ const Impl = @import("interface.zig").Impl;
const mip_level_count_undefined = @import("main.zig").mip_level_count_undefined;
const array_layer_count_undefined = @import("main.zig").array_layer_count_undefined;
pub const TextureView = *opaque {
pub inline fn setLabel(texture_view: TextureView, label: [*:0]const u8) void {
pub const TextureView = opaque {
pub inline fn setLabel(texture_view: *TextureView, label: [*:0]const u8) void {
Impl.textureViewSetLabel(texture_view, label);
}
pub inline fn reference(texture_view: TextureView) void {
pub inline fn reference(texture_view: *TextureView) void {
Impl.textureViewReference(texture_view);
}
pub inline fn release(texture_view: TextureView) void {
pub inline fn release(texture_view: *TextureView) void {
Impl.textureViewRelease(texture_view);
}
};