gpu: add Texture.Descriptor

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-11 16:56:04 -07:00 committed by Stephen Gutekanst
parent 628f3d59c2
commit 13fcf98436
3 changed files with 13 additions and 11 deletions

View file

@ -32,6 +32,16 @@ pub inline fn destroy(texture: Texture) void {
texture.vtable.destroy(texture.ptr);
}
pub const Descriptor = struct {
label: ?[*:0]const u8 = null,
usage: Usage,
dimension: Dimension,
size: Extent3D,
format: Format,
mip_level_count: u32,
sample_count: u32,
};
pub const Usage = enum(u32) {
none = 0x00000000,
copy_src = 0x00000001,
@ -189,6 +199,7 @@ test "syntax" {
_ = reference;
_ = release;
_ = destroy;
_ = Descriptor;
_ = Usage;
_ = Format;
_ = Aspect;