diff --git a/gpu/src/device.zig b/gpu/src/device.zig index 54a5a930..5cc677f8 100644 --- a/gpu/src/device.zig +++ b/gpu/src/device.zig @@ -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); } diff --git a/gpu/src/external_texture.zig b/gpu/src/external_texture.zig index e8e4fedb..4d896109 100644 --- a/gpu/src/external_texture.zig +++ b/gpu/src/external_texture.zig @@ -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 {