-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLUX.Vulkan.pas
More file actions
195 lines (148 loc) · 7.36 KB
/
Copy pathLUX.Vulkan.pas
File metadata and controls
195 lines (148 loc) · 7.36 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
unit LUX.Vulkan;
interface //#################################################################### ■
uses System.Classes,
LUX.Vulkan.core,
LUX.Vulkan.Show,
LUX.Vulkan.Device,
LUX.Vulkan.Contex,
LUX.Vulkan.Queuer,
LUX.Vulkan.Argume,
LUX.Vulkan.Argume.Samplr,
LUX.Vulkan.Argume.Memory,
LUX.Vulkan.Argume.Memory.Buffer,
LUX.Vulkan.Argume.Memory.Imager,
LUX.Vulkan.Argume.Memory.Imager.D1,
LUX.Vulkan.Argume.Memory.Imager.D2,
LUX.Vulkan.Argume.Memory.Imager.D3,
LUX.Vulkan.Shader,
LUX.Vulkan.Kernel,
LUX.Vulkan.Passer,
LUX.Vulkan.Raster;
type //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【 T Y P E 】
TVulkan = class;
TVkSystem = class;
TVkDevices = TVkDevices<TVkSystem>;
TVkDevice = TVkDevice <TVkSystem>;
TVkContexs = TVkContexs<TVkSystem,TVkDevice>;
TVkContex = TVkContex <TVkSystem,TVkDevice>;
TVkQueuers = TVkQueuers<TVkSystem,TVkDevice,TVkContex>;
TVkQueuer = TVkQueuer <TVkSystem,TVkDevice,TVkContex>;
TVkArgumes = TVkArgumes<TVkSystem,TVkDevice,TVkContex>;
TVkArgume = TVkArgume <TVkSystem,TVkDevice,TVkContex>;
TVkSamplr = TVkSamplr <TVkSystem,TVkDevice,TVkContex>;
TVkMemory = TVkMemory <TVkSystem,TVkDevice,TVkContex>;
TVkLibrars = TVkLibrars<TVkSystem,TVkDevice,TVkContex>;
TVkLibrar = TVkLibrar <TVkSystem,TVkDevice,TVkContex>;
TVkShaders = TVkShaders<TVkSystem,TVkDevice,TVkContex>;
TVkShader = TVkShader <TVkSystem,TVkDevice,TVkContex>;
TVkKernels = TVkKernels<TVkSystem,TVkDevice,TVkContex,TVkShader>;
TVkKernel = TVkKernel <TVkSystem,TVkDevice,TVkContex,TVkShader>;
TVkParames = TVkParames<TVkSystem,TVkDevice,TVkContex,TVkShader>;
TVkParame = TVkParame <TVkSystem,TVkDevice,TVkContex,TVkShader>;
TVkPassers = TVkPassers<TVkSystem,TVkDevice,TVkContex>;
TVkPasser = TVkPasser <TVkSystem,TVkDevice,TVkContex>;
TVkRasters = TVkRasters<TVkSystem,TVkDevice,TVkContex>;
TVkRaster = TVkRaster <TVkSystem,TVkDevice,TVkContex>;
TVkStagers = TVkStagers<TVkSystem,TVkDevice,TVkContex>;
TVkStager = TVkStager <TVkSystem,TVkDevice,TVkContex>;
TVkBinding = LUX.Vulkan.Shader.TVkBinding;
TVkBuffer<TValue_:record> = class( TVkBuffer<TVkSystem,TVkDevice,TVkContex,TValue_> );
TVkImager1DxBGRAxUInt8 = TVkImager1DxBGRAxUInt8 <TVkSystem,TVkDevice,TVkContex>;
TVkImager1DxBGRAxUFix8 = TVkImager1DxBGRAxUFix8 <TVkSystem,TVkDevice,TVkContex>;
TVkImager1DxRGBAxUInt32 = TVkImager1DxRGBAxUInt32<TVkSystem,TVkDevice,TVkContex>;
TVkImager1DxRGBAxSFlo32 = TVkImager1DxRGBAxSFlo32<TVkSystem,TVkDevice,TVkContex>;
TVkImager2DxBGRAxUInt8 = TVkImager2DxBGRAxUInt8 <TVkSystem,TVkDevice,TVkContex>;
TVkImager2DxBGRAxUFix8 = TVkImager2DxBGRAxUFix8 <TVkSystem,TVkDevice,TVkContex>;
TVkImager2DxRGBAxUInt32 = TVkImager2DxRGBAxUInt32<TVkSystem,TVkDevice,TVkContex>;
TVkImager2DxRGBAxSFlo32 = TVkImager2DxRGBAxSFlo32<TVkSystem,TVkDevice,TVkContex>;
TVkImager3DxBGRAxUInt8 = TVkImager3DxBGRAxUInt8 <TVkSystem,TVkDevice,TVkContex>;
TVkImager3DxBGRAxUFix8 = TVkImager3DxBGRAxUFix8 <TVkSystem,TVkDevice,TVkContex>;
TVkImager3DxRGBAxUInt32 = TVkImager3DxRGBAxUInt32<TVkSystem,TVkDevice,TVkContex>;
TVkImager3DxRGBAxSFlo32 = TVkImager3DxRGBAxSFlo32<TVkSystem,TVkDevice,TVkContex>;
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【 R E C O R D 】
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【 C L A S S 】
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TVkSystem
TVkSystem = class
private
protected
_Devices :TVkDevices;
///// A C C E S S O R
function GetDevices :TVkDevices;
public
constructor Create;
destructor Destroy; override;
///// P R O P E R T Y
property Devices :TVkDevices read GetDevices;
end;
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TVulkan
TVulkan = class
private
class var _System :TVkSystem;
protected
///// A C C E S S O R
class function GetAvailable :Boolean; static;
class function GetDevices :TVkDevices; static;
public
class constructor Create;
class destructor Destroy;
///// P R O P E R T Y
class property Available :Boolean read GetAvailable;
class property Devices :TVkDevices read GetDevices ;
///// M E T H O D
class procedure Show( const Strings_:TStrings );
end;
//const //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【 C O N S T A N T 】
//var //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【 V A R I A B L E 】
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【 R O U T I N E 】
implementation //############################################################### ■
uses vulkan_functions;
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【 R E C O R D 】
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【 C L A S S 】
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TVkSystem
//&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& private
//&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& protected
//////////////////////////////////////////////////////////////// A C C E S S O R
function TVkSystem.GetDevices :TVkDevices;
begin
Result := _Devices;
end;
//&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& public
constructor TVkSystem.Create;
begin
inherited;
_Devices := TVkDevices.Create( Self );
end;
destructor TVkSystem.Destroy;
begin
_Devices.Free;
inherited;
end;
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TVulkan
//&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& private
//&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& protected
//////////////////////////////////////////////////////////////// A C C E S S O R
class function TVulkan.GetAvailable :Boolean;
begin
Result := LoadFunctions;
end;
class function TVulkan.GetDevices :TVkDevices;
begin
Result := _System.Devices;
end;
//&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& public
class constructor TVulkan.Create;
begin
LoadFunctions;
_System := TVkSystem.Create;
end;
class destructor TVulkan.Destroy;
begin
_System.Free;
end;
//////////////////////////////////////////////////////////////////// M E T H O D
class procedure TVulkan.Show( const Strings_:TStrings );
begin
ShowSystem( Strings_ );
end;
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【 R O U T I N E 】
end. //######################################################################### ■