gpu: add TextureView.Descriptor

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-16 20:27:21 -07:00 committed by Stephen Gutekanst
parent 2a50f3c3bd
commit 2e9ef64479
2 changed files with 15 additions and 12 deletions

View file

@ -1,15 +1,3 @@
pub const WGPUTextureViewDescriptor = extern struct {
next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null,
format: TextureFormat,
dimension: TextureViewDimension,
base_mip_level: u32,
mip_level_count: u32,
base_array_layer: u32,
array_layer_count: u32,
aspect: TextureAspect,
};
pub const VertexAttribute = extern struct {
format: VertexFormat,
offset: u64,