gpu: implement ExternalTexture methods
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
4641e6632e
commit
8fd861df1d
1 changed files with 13 additions and 8 deletions
|
|
@ -1,18 +1,23 @@
|
||||||
const ChainedStruct = @import("types.zig").ChainedStruct;
|
const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||||
const TextureView = @import("texture_view.zig").TextureView;
|
const TextureView = @import("texture_view.zig").TextureView;
|
||||||
|
const impl = @import("interface.zig").impl;
|
||||||
|
|
||||||
pub const ExternalTexture = *opaque {
|
pub const ExternalTexture = *opaque {
|
||||||
// TODO
|
pub inline fn destroy(external_texture: ExternalTexture) void {
|
||||||
// pub inline fn externalTextureDestroy(external_texture: gpu.ExternalTexture) void {
|
impl.externalTextureDestroy(external_texture);
|
||||||
|
}
|
||||||
|
|
||||||
// TODO
|
pub inline fn setLabel(external_texture: ExternalTexture, label: [*:0]const u8) void {
|
||||||
// pub inline fn externalTextureSetLabel(external_texture: gpu.ExternalTexture, label: [*:0]const u8) void {
|
impl.externalTextureSetLabel(external_texture, label);
|
||||||
|
}
|
||||||
|
|
||||||
// TODO
|
pub inline fn reference(external_texture: ExternalTexture) void {
|
||||||
// pub inline fn externalTextureReference(external_texture: gpu.ExternalTexture) void {
|
impl.externalTextureReference(external_texture);
|
||||||
|
}
|
||||||
|
|
||||||
// TODO
|
pub inline fn release(external_texture: ExternalTexture) void {
|
||||||
// pub inline fn externalTextureRelease(external_texture: gpu.ExternalTexture) void {
|
impl.externalTextureRelease(external_texture);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const ExternalTextureBindingEntry = extern struct {
|
pub const ExternalTextureBindingEntry = extern struct {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue