gpu: add Texture.Descriptor
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
7f8dedcbd5
commit
ed1232f59d
2 changed files with 14 additions and 13 deletions
|
|
@ -1,6 +1,7 @@
|
|||
const std = @import("std");
|
||||
const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||
const TextureView = @import("texture_view.zig").TextureView;
|
||||
const Extent3D = @import("types.zig").Extent3D;
|
||||
|
||||
pub const Texture = enum(usize) {
|
||||
_,
|
||||
|
|
@ -174,4 +175,17 @@ pub const Texture = enum(usize) {
|
|||
bytes_per_row: u32,
|
||||
rows_per_image: u32,
|
||||
};
|
||||
|
||||
pub const Descriptor = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
label: ?[*:0]const u8 = null,
|
||||
usage: UsageFlags,
|
||||
dimension: Dimension,
|
||||
size: Extent3D,
|
||||
format: Format,
|
||||
mip_level_count: u32,
|
||||
sample_count: u32,
|
||||
view_format_count: u32,
|
||||
view_formats: [*]const Format,
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue