gpu: convert *opaque -> opaque for ExternalTexture

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-29 22:35:55 -07:00 committed by Stephen Gutekanst
parent 862a555697
commit 8f8bbd25bc
2 changed files with 7 additions and 7 deletions

View file

@ -69,11 +69,11 @@ pub const Device = opaque {
return Impl.deviceCreateErrorBuffer(device);
}
pub inline fn createErrorExternalTexture(device: *Device) ExternalTexture {
pub inline fn createErrorExternalTexture(device: *Device) *ExternalTexture {
return Impl.deviceCreateErrorExternalTexture(device);
}
pub inline fn createExternalTexture(device: *Device, external_texture_descriptor: *const ExternalTextureDescriptor) ExternalTexture {
pub inline fn createExternalTexture(device: *Device, external_texture_descriptor: *const ExternalTextureDescriptor) *ExternalTexture {
return Impl.deviceCreateExternalTexture(device, external_texture_descriptor);
}

View file

@ -3,26 +3,26 @@ const TextureView = @import("texture_view.zig").TextureView;
const Impl = @import("interface.zig").Impl;
pub const ExternalTexture = *opaque {
pub inline fn destroy(external_texture: ExternalTexture) void {
pub inline fn destroy(external_texture: *ExternalTexture) void {
Impl.externalTextureDestroy(external_texture);
}
pub inline fn setLabel(external_texture: ExternalTexture, label: [*:0]const u8) void {
pub inline fn setLabel(external_texture: *ExternalTexture, label: [*:0]const u8) void {
Impl.externalTextureSetLabel(external_texture, label);
}
pub inline fn reference(external_texture: ExternalTexture) void {
pub inline fn reference(external_texture: *ExternalTexture) void {
Impl.externalTextureReference(external_texture);
}
pub inline fn release(external_texture: ExternalTexture) void {
pub inline fn release(external_texture: *ExternalTexture) void {
Impl.externalTextureRelease(external_texture);
}
};
pub const ExternalTextureBindingEntry = extern struct {
chain: ChainedStruct,
external_texture: ExternalTexture,
external_texture: *ExternalTexture,
};
pub const ExternalTextureBindingLayout = extern struct {