-
Notifications
You must be signed in to change notification settings - Fork 0
/
texture_view.c3i
48 lines (37 loc) · 979 Bytes
/
texture_view.c3i
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
module webgpu;
distinct TextureView = void*;
fn void TextureView.setLabel(TextureView texture, ZString label) @extern("wgpuTextureViewSetLabel");
fn void TextureView.reference(TextureView texture) @extern("wgpuTextureViewReference");
fn void TextureView.release(TextureView texture) @extern("wgpuTextureViewRelease");
struct TextureViewDescriptor {
ChainedStruct* next;
ZString label;
TextureFormat format;
TextureViewDimension dimension;
CUInt baseMipLevel;
CUInt mipLevelCount;
CUInt baseArrayLayer;
CUInt arrayLayerCount;
TextureAspect aspect;
}
struct StorageTextureBindingLayout {
ChainedStruct* next;
StorageTextureAccess access;
TextureFormat format;
TextureViewDimension viewDimension;
}
enum StorageTextureAccess {
UNDEFINED,
WRITE_ONLY,
READ_ONLY,
READ_WRITE
}
enum TextureViewDimension {
UNDEFINED,
SINGLE_1D,
SINGLE_2D,
ARRAY_2D,
CUBE,
CUBE_ARRAY,
SINGLE_3D
}