gpu: convert *opaque -> opaque for ExternalTexture
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
862a555697
commit
8f8bbd25bc
2 changed files with 7 additions and 7 deletions
|
|
@ -69,11 +69,11 @@ pub const Device = opaque {
|
||||||
return Impl.deviceCreateErrorBuffer(device);
|
return Impl.deviceCreateErrorBuffer(device);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn createErrorExternalTexture(device: *Device) ExternalTexture {
|
pub inline fn createErrorExternalTexture(device: *Device) *ExternalTexture {
|
||||||
return Impl.deviceCreateErrorExternalTexture(device);
|
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);
|
return Impl.deviceCreateExternalTexture(device, external_texture_descriptor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,26 +3,26 @@ const TextureView = @import("texture_view.zig").TextureView;
|
||||||
const Impl = @import("interface.zig").Impl;
|
const Impl = @import("interface.zig").Impl;
|
||||||
|
|
||||||
pub const ExternalTexture = *opaque {
|
pub const ExternalTexture = *opaque {
|
||||||
pub inline fn destroy(external_texture: ExternalTexture) void {
|
pub inline fn destroy(external_texture: *ExternalTexture) void {
|
||||||
Impl.externalTextureDestroy(external_texture);
|
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);
|
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);
|
Impl.externalTextureReference(external_texture);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn release(external_texture: ExternalTexture) void {
|
pub inline fn release(external_texture: *ExternalTexture) void {
|
||||||
Impl.externalTextureRelease(external_texture);
|
Impl.externalTextureRelease(external_texture);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const ExternalTextureBindingEntry = extern struct {
|
pub const ExternalTextureBindingEntry = extern struct {
|
||||||
chain: ChainedStruct,
|
chain: ChainedStruct,
|
||||||
external_texture: ExternalTexture,
|
external_texture: *ExternalTexture,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const ExternalTextureBindingLayout = extern struct {
|
pub const ExternalTextureBindingLayout = extern struct {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue