gpu: add Texture.Descriptor

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-16 20:54:45 -07:00 committed by Stephen Gutekanst
parent 7f8dedcbd5
commit ed1232f59d
2 changed files with 14 additions and 13 deletions

View file

@ -1,16 +1,3 @@
pub const WGPUTextureDescriptor = extern struct {
next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null,
usage: TextureUsageFlags,
dimension: TextureDimension,
size: Extent3D,
format: TextureFormat,
mip_level_count: u32,
sample_count: u32,
view_format_count: u32,
view_formats: [*]const TextureFormat,
};
pub const VertexBufferLayout = extern struct {
array_stride: u64,
step_mode: VertexStepMode,