-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcustom.ih
62 lines (53 loc) · 817 Bytes
/
custom.ih
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// int
// int{[u|x]N}
// int{[[u]N] E0[=V0] E1[=V1] ... EN[=VN]}
//
// float
// float{[u]N.E}
//
// ARRAYS
// type[N]
//
// STRUCTS
// [packed|bitpacked] {
// type0 name0
// type1 name1
// ...
// typeN nameN
// }
//
// define type name
define int{u8.8} unorm8
define int{u16.16} unorm16
define int{u32.32} unorm32
define int{8.7} norm8
define int{16.15} norm16
define int{32.31} norm32
define float{16.5} float16
define {
float16 x
float16 y
} f16_16
define {
float16 x
float16 y
float16 z
} f16_16_16
define {
float16 x
float16 y
float16 z
float16 w
} f16_16_16_16
define bitpacked {
float{u11.5} x
float{u11.5} y
float{u10.5} z
} f11_11_10
define bitpacked {
float{u10.5} x
float{u11.5} y
float{u11.5} z
} f10_11_11
define uint32[4] uint32x4
define xint32[4] xint32x4