-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathformat.go
More file actions
77 lines (72 loc) · 1.61 KB
/
format.go
File metadata and controls
77 lines (72 loc) · 1.61 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// Code generated by idiomgen. DO NOT EDIT.
package hwbuf
import "fmt"
type Format int32
const (
R8g8b8a8Unorm Format = 1
R8g8b8x8Unorm Format = 2
R8g8b8Unorm Format = 3
R5g6b5Unorm Format = 4
R16g16b16a16Float Format = 22
R10g10b10a2Unorm Format = 43
Blob Format = 33
D16Unorm Format = 48
D24Unorm Format = 49
D24UnormS8Uint Format = 50
D32Float Format = 51
D32FloatS8Uint Format = 52
S8Uint Format = 53
Y8cb8cr8420 Format = 35
YcbcrP010 Format = 54
YcbcrP210 Format = 60
R8Unorm Format = 56
R16Uint Format = 57
R16g16Uint Format = 58
R10g10b10a10Unorm Format = 59
)
func (v Format) String() string {
switch v {
case R8g8b8a8Unorm:
return "R8g8b8a8Unorm"
case R8g8b8x8Unorm:
return "R8g8b8x8Unorm"
case R8g8b8Unorm:
return "R8g8b8Unorm"
case R5g6b5Unorm:
return "R5g6b5Unorm"
case R16g16b16a16Float:
return "R16g16b16a16Float"
case R10g10b10a2Unorm:
return "R10g10b10a2Unorm"
case Blob:
return "Blob"
case D16Unorm:
return "D16Unorm"
case D24Unorm:
return "D24Unorm"
case D24UnormS8Uint:
return "D24UnormS8Uint"
case D32Float:
return "D32Float"
case D32FloatS8Uint:
return "D32FloatS8Uint"
case S8Uint:
return "S8Uint"
case Y8cb8cr8420:
return "Y8cb8cr8420"
case YcbcrP010:
return "YcbcrP010"
case YcbcrP210:
return "YcbcrP210"
case R8Unorm:
return "R8Unorm"
case R16Uint:
return "R16Uint"
case R16g16Uint:
return "R16g16Uint"
case R10g10b10a10Unorm:
return "R10g10b10a10Unorm"
default:
return fmt.Sprintf("Format(%d)", int(v))
}
}