1 module dcompute.driver.ocl.raw.enums;
2 
3 import dcompute.driver.ocl;
4 
5 enum //: profiling_info
6 {
7     PROFILING_COMMAND_QUEUED = 0x1280,
8     PROFILING_COMMAND_SUBMIT = 0x1281,
9     PROFILING_COMMAND_START  = 0x1282,
10     PROFILING_COMMAND_END    = 0x1283,
11 }
12 
13 // device_partition_property_ext extension
14 enum
15 {
16     DEVICE_PARTITION_EQUALLY_EXT             = 0x4050,
17     DEVICE_PARTITION_BY_COUNTS_EXT           = 0x4051,
18     DEVICE_PARTITION_BY_NAMES_EXT            = 0x4052,
19     DEVICE_PARTITION_BY_AFFINITY_DOMAIN_EXT  = 0x4053,
20 }
21 
22 // clDeviceGetInfo selectors
23 enum
24 {
25     DEVICE_PARENT_DEVICE_EXT                 = 0x4054,
26     DEVICE_PARTITION_TYPES_EXT               = 0x4055,
27     DEVICE_AFFINITY_DOMAINS_EXT              = 0x4056,
28     DEVICE_REFERENCE_COUNT_EXT               = 0x4057,
29     DEVICE_PARTITION_STYLE_EXT               = 0x4058,
30 }
31 
32 // AFFINITY_DOMAINs
33 enum
34 {
35     AFFINITY_DOMAIN_L1_CACHE_EXT             = 0x1,
36     AFFINITY_DOMAIN_L2_CACHE_EXT             = 0x2,
37     AFFINITY_DOMAIN_L3_CACHE_EXT             = 0x3,
38     AFFINITY_DOMAIN_L4_CACHE_EXT             = 0x4,
39     AFFINITY_DOMAIN_NUMA_EXT                 = 0x10,
40     AFFINITY_DOMAIN_NEXT_FISSIONABLE_EXT     = 0x100,
41 }
42 
43 // device_partition_property_ext list terminators
44 enum
45 {
46     PROPERTIES_LIST_END_EXT          =  0,
47     PARTITION_BY_COUNTS_LIST_END_EXT =  0,
48     PARTITION_BY_NAMES_LIST_END_EXT  =  0 - 1,
49 }
50 
51 
52 // egl.h
53 
54 // gl.h
55 
56 // gl_object_type
57 enum
58 {
59     GL_OBJECT_BUFFER                         = 0x2000,
60     GL_OBJECT_TEXTURE2D                      = 0x2001,
61     GL_OBJECT_TEXTURE3D                      = 0x2002,
62     GL_OBJECT_RENDERBUFFER                   = 0x2003,
63     GL_OBJECT_TEXTURE2D_ARRAY                = 0x200E,
64     GL_OBJECT_TEXTURE1D                      = 0x200F,
65     GL_OBJECT_TEXTURE1D_ARRAY                = 0x2010,
66     GL_OBJECT_TEXTURE_BUFFER                 = 0x2011,
67 }
68 
69 // gl_texture_info
70 enum
71 {
72     GL_TEXTURE_TARGET                        = 0x2004,
73     GL_MIPMAP_LEVEL                          = 0x2005,
74     GL_NUM_SAMPLES                           = 0x2012,
75 }
76 
77 // gl_context_info
78 enum
79 {
80     CURRENT_DEVICE_FOR_GL_CONTEXT_KHR        = 0x2006,
81     DEVICES_FOR_GL_CONTEXT_KHR               = 0x2007,
82 }
83 
84 
85 // d3d10_device_source_nv
86 enum
87 {
88     D3D10_DEVICE_KHR                             = 0x4010,
89     D3D10_DXGI_ADAPTER_KHR                       = 0x4011,
90 }
91 
92 // d3d10_device_set_nv
93 enum
94 {
95     PREFERRED_DEVICES_FOR_D3D10_KHR              = 0x4012,
96     ALL_DEVICES_FOR_D3D10_KHR                    = 0x4013,
97 }
98 
99 // d3d11_device_source
100 enum
101 {
102     D3D11_DEVICE_KHR                             = 0x4019,
103     D3D11_DXGI_ADAPTER_KHR                       = 0x401A,
104 }
105 
106 // d3d11_device_set
107 enum
108 {
109     PREFERRED_DEVICES_FOR_D3D11_KHR              = 0x401B,
110     ALL_DEVICES_FOR_D3D11_KHR                    = 0x401C,
111 }
112 
113 // media_adapter_type_khr
114 enum
115 {
116     ADAPTER_D3D9_KHR                             = 0x2020,
117     ADAPTER_D3D9EX_KHR                           = 0x2021,
118     ADAPTER_DXVA_KHR                             = 0x2022,
119 }
120 
121 // media_adapter_set_khr
122 enum
123 {
124     PREFERRED_DEVICES_FOR_DX9_MEDIA_ADAPTER_KHR  = 0x2023,
125     ALL_DEVICES_FOR_DX9_MEDIA_ADAPTER_KHR        = 0x2024,
126 }
127