gpu: implement TextureView methods
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
5ccacdf52c
commit
bccb53738d
1 changed files with 10 additions and 6 deletions
|
|
@ -2,16 +2,20 @@ const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||||
const Texture = @import("texture.zig").Texture;
|
const Texture = @import("texture.zig").Texture;
|
||||||
const TextureFormat = @import("texture.zig").TextureFormat;
|
const TextureFormat = @import("texture.zig").TextureFormat;
|
||||||
const TextureAspect = @import("texture.zig").TextureAspect;
|
const TextureAspect = @import("texture.zig").TextureAspect;
|
||||||
|
const impl = @import("interface.zig").impl;
|
||||||
|
|
||||||
pub const TextureView = *opaque {
|
pub const TextureView = *opaque {
|
||||||
// TODO
|
pub inline fn setLabel(texture_view: TextureView, label: [*:0]const u8) void {
|
||||||
// pub inline fn textureViewSetLabel(texture_view: gpu.TextureView, label: [*:0]const u8) void {
|
impl.textureViewSetLabel(texture_view, label);
|
||||||
|
}
|
||||||
|
|
||||||
// TODO
|
pub inline fn reference(texture_view: TextureView) void {
|
||||||
// pub inline fn textureViewReference(texture_view: gpu.TextureView) void {
|
impl.textureViewReference(texture_view);
|
||||||
|
}
|
||||||
|
|
||||||
// TODO
|
pub inline fn release(texture_view: TextureView) void {
|
||||||
// pub inline fn textureViewRelease(texture_view: gpu.TextureView) void {
|
impl.textureViewRelease(texture_view);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const TextureViewDimension = enum(u32) {
|
pub const TextureViewDimension = enum(u32) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue