-
Notifications
You must be signed in to change notification settings - Fork 3
/
image.go
51 lines (45 loc) · 1.79 KB
/
image.go
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
package opencl
type ImageChannelOrder uint32
const (
ImageChannelOrder_R ImageChannelOrder = 0x10B0
ImageChannelOrder_A ImageChannelOrder = 0x10B1
ImageChannelOrder_RG ImageChannelOrder = 0x10B2
ImageChannelOrder_RA ImageChannelOrder = 0x10B3
ImageChannelOrder_RGB ImageChannelOrder = 0x10B4
ImageChannelOrder_RGBA ImageChannelOrder = 0x10B5
ImageChannelOrder_BGRA ImageChannelOrder = 0x10B6
ImageChannelOrder_ARGB ImageChannelOrder = 0x10B7
ImageChannelOrder_Intensity ImageChannelOrder = 0x10B8
ImageChannelOrder_Luminance ImageChannelOrder = 0x10B9
)
type ImageChannelType uint32
const (
ImageChannelType_SNormInt8 ImageChannelType = 0x10D0
ImageChannelType_SNormInt16 ImageChannelType = 0x10D1
ImageChannelType_UNormInt8 ImageChannelType = 0x10D2
ImageChannelType_UNormInt16 ImageChannelType = 0x10D3
ImageChannelType_UNormShort565 ImageChannelType = 0x10D4
ImageChannelType_UNormShort555 ImageChannelType = 0x10D5
ImageChannelType_UNormInt101010 ImageChannelType = 0x10D6
ImageChannelType_SignedInt8 ImageChannelType = 0x10D7
ImageChannelType_SignedInt16 ImageChannelType = 0x10D8
ImageChannelType_SignedInt32 ImageChannelType = 0x10D9
ImageChannelType_UnsignedInt8 ImageChannelType = 0x10DA
ImageChannelType_UnsignedInt16 ImageChannelType = 0x10DB
ImageChannelType_UnsignedInt32 ImageChannelType = 0x10DC
ImageChannelType_HalfFloat ImageChannelType = 0x10DD
ImageChannelType_Float ImageChannelType = 0x10DE
// CL_VERSION 2.1
ImageChannelType_UNormInt101010_2 ImageChannelType = 0x10E0
)
type ImageFormat struct {
ChannelOrder ImageChannelOrder
ChannelType ImageChannelType
}
type ImageData struct {
*BufferData
Origin [3]uint
Region [3]uint
RowPitch uint
SlicePitch uint
}