Debian Codegraph @

doc/classes/RenderingDevice.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <class name="RenderingDevice" inherits="Object" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 Abstraction for working with modern low-level graphics APIs.
5 </brief_description>
6 <description>
7 [RenderingDevice] is an abstraction for working with modern low-level graphics APIs such as Vulkan. Compared to [RenderingServer] (which works with Godot's own rendering subsystems), [RenderingDevice] is much lower-level and allows working more directly with the underlying graphics APIs. [RenderingDevice] is used in Godot to provide support for several modern low-level graphics APIs while reducing the amount of code duplication required. [RenderingDevice] can also be used in your own projects to perform things that are not exposed by [RenderingServer] or high-level nodes, such as using compute shaders.
8 On startup, Godot creates a global [RenderingDevice] which can be retrieved using [method RenderingServer.get_rendering_device]. This global [RenderingDevice] performs drawing to the screen.
9 [b]Local RenderingDevices:[/b] Using [method RenderingServer.create_local_rendering_device], you can create "secondary" rendering devices to perform drawing and GPU compute operations on separate threads.
10 [b]Note:[/b] [RenderingDevice] assumes intermediate knowledge of modern graphics APIs such as Vulkan, Direct3D 12, Metal or WebGPU. These graphics APIs are lower-level than OpenGL or Direct3D 11, requiring you to perform what was previously done by the graphics driver itself. If you have difficulty understanding the concepts used in this class, follow the [url=https://vulkan-tutorial.com/]Vulkan Tutorial[/url] or [url=https://vkguide.dev/]Vulkan Guide[/url]. It's recommended to have existing modern OpenGL or Direct3D 11 knowledge before attempting to learn a low-level graphics API.
11 [b]Note:[/b] [RenderingDevice] is not available when running in headless mode or when using the Compatibility rendering method.
12 </description>
13 <tutorials>
14 <link title="Using compute shaders">$DOCS_URL/tutorials/shaders/compute_shaders.html</link>
15 </tutorials>
16 <methods>
17 <method name="barrier" deprecated="Barriers are automatically inserted by RenderingDevice.">
18 <return type="void" />
19 <param index="0" name="from" type="int" enum="RenderingDevice.BarrierMask" is_bitfield="true" default="32767" />
20 <param index="1" name="to" type="int" enum="RenderingDevice.BarrierMask" is_bitfield="true" default="32767" />
21 <description>
22 This method does nothing.
23 </description>
24 </method>
25 <method name="buffer_clear">
26 <return type="int" enum="Error" />
27 <param index="0" name="buffer" type="RID" />
28 <param index="1" name="offset" type="int" />
29 <param index="2" name="size_bytes" type="int" />
30 <description>
31 Clears the contents of the [param buffer], clearing [param size_bytes] bytes, starting at [param offset].
32 Prints an error if:
33 - the size isn't a multiple of four
34 - the region specified by [param offset] + [param size_bytes] exceeds the buffer
35 - a draw list is currently active (created by [method draw_list_begin])
36 - a compute list is currently active (created by [method compute_list_begin])
37 </description>
38 </method>
39 <method name="buffer_copy">
40 <return type="int" enum="Error" />
41 <param index="0" name="src_buffer" type="RID" />
42 <param index="1" name="dst_buffer" type="RID" />
43 <param index="2" name="src_offset" type="int" />
44 <param index="3" name="dst_offset" type="int" />
45 <param index="4" name="size" type="int" />
46 <description>
47 Copies [param size] bytes from the [param src_buffer] at [param src_offset] into [param dst_buffer] at [param dst_offset].
48 Prints an error if:
49 - [param size] exceeds the size of either [param src_buffer] or [param dst_buffer] at their corresponding offsets
50 - a draw list is currently active (created by [method draw_list_begin])
51 - a compute list is currently active (created by [method compute_list_begin])
52 </description>
53 </method>
54 <method name="buffer_get_data">
55 <return type="PackedByteArray" />
56 <param index="0" name="buffer" type="RID" />
57 <param index="1" name="offset_bytes" type="int" default="0" />
58 <param index="2" name="size_bytes" type="int" default="0" />
59 <description>
60 Returns a copy of the data of the specified [param buffer], optionally [param offset_bytes] and [param size_bytes] can be set to copy only a portion of the buffer.
61 [b]Note:[/b] This method will block the GPU from working until the data is retrieved. Refer to [method buffer_get_data_async] for an alternative that returns the data in more performant way.
62 </description>
63 </method>
64 <method name="buffer_get_data_async">
65 <return type="int" enum="Error" />
66 <param index="0" name="buffer" type="RID" />
67 <param index="1" name="callback" type="Callable" />
68 <param index="2" name="offset_bytes" type="int" default="0" />
69 <param index="3" name="size_bytes" type="int" default="0" />
70 <description>
71 Asynchronous version of [method buffer_get_data]. RenderingDevice will call [param callback] in a certain amount of frames with the data the buffer had at the time of the request.
72 [b]Note:[/b] At the moment, the delay corresponds to the amount of frames specified by [member ProjectSettings.rendering/rendering_device/vsync/frame_queue_size].
73 [b]Note:[/b] Downloading large buffers can have a prohibitive cost for real-time even when using the asynchronous method due to hardware bandwidth limitations. When dealing with large resources, you can adjust settings such as [member ProjectSettings.rendering/rendering_device/staging_buffer/block_size_kb] to improve the transfer speed at the cost of extra memory.
74 [codeblock]
75 func _buffer_get_data_callback(array):
76 value = array.decode_u32(0)
77
78 ...
79
80 rd.buffer_get_data_async(buffer, _buffer_get_data_callback)
81 [/codeblock]
82 </description>
83 </method>
84 <method name="buffer_get_device_address">
85 <return type="int" />
86 <param index="0" name="buffer" type="RID" />
87 <description>
88 Returns the address of the given [param buffer] which can be passed to shaders in any way to access underlying data. Buffer must have been created with this feature enabled.
89 [b]Note:[/b] You must check that the GPU supports this functionality by calling [method has_feature] with [constant SUPPORTS_BUFFER_DEVICE_ADDRESS] as a parameter.
90 </description>
91 </method>
92 <method name="buffer_update">
93 <return type="int" enum="Error" />
94 <param index="0" name="buffer" type="RID" />
95 <param index="1" name="offset" type="int" />
96 <param index="2" name="size_bytes" type="int" />
97 <param index="3" name="data" type="PackedByteArray" />
98 <description>
99 Updates a region of [param size_bytes] bytes, starting at [param offset], in the buffer, with the specified [param data].
100 Prints an error if:
101 - the region specified by [param offset] + [param size_bytes] exceeds the buffer
102 - a draw list is currently active (created by [method draw_list_begin])
103 - a compute list is currently active (created by [method compute_list_begin])
104 </description>
105 </method>
106 <method name="capture_timestamp">
107 <return type="void" />
108 <param index="0" name="name" type="String" />
109 <description>
110 Creates a timestamp marker with the specified [param name]. This is used for performance reporting with the [method get_captured_timestamp_cpu_time], [method get_captured_timestamp_gpu_time] and [method get_captured_timestamp_name] methods.
111 </description>
112 </method>
113 <method name="compute_list_add_barrier">
114 <return type="void" />
115 <param index="0" name="compute_list" type="int" />
116 <description>
117 Raises a Vulkan compute barrier in the specified [param compute_list].
118 </description>
119 </method>
120 <method name="compute_list_begin">
121 <return type="int" />
122 <description>
123 Starts a list of compute commands created with the [code]compute_*[/code] methods. The returned value should be passed to other [code]compute_list_*[/code] functions.
124 Multiple compute lists cannot be created at the same time; you must finish the previous compute list first using [method compute_list_end].
125 A simple compute operation might look like this (code is not a complete example):
126 [codeblock]
127 var rd = RenderingDevice.new()
128 var compute_list = rd.compute_list_begin()
129
130 rd.compute_list_bind_compute_pipeline(compute_list, compute_shader_dilate_pipeline)
131 rd.compute_list_bind_uniform_set(compute_list, compute_base_uniform_set, 0)
132 rd.compute_list_bind_uniform_set(compute_list, dilate_uniform_set, 1)
133
134 for i in atlas_slices:
135 rd.compute_list_set_push_constant(compute_list, push_constant, push_constant.size())
136 rd.compute_list_dispatch(compute_list, group_size.x, group_size.y, group_size.z)
137 # No barrier, let them run all together.
138
139 rd.compute_list_end()
140 [/codeblock]
141 </description>
142 </method>
143 <method name="compute_list_bind_compute_pipeline">
144 <return type="void" />
145 <param index="0" name="compute_list" type="int" />
146 <param index="1" name="compute_pipeline" type="RID" />
147 <description>
148 Tells the GPU what compute pipeline to use when processing the compute list. If the shader has changed since the last time this function was called, Godot will unbind all descriptor sets and will re-bind them inside [method compute_list_dispatch].
149 </description>
150 </method>
151 <method name="compute_list_bind_uniform_set">
152 <return type="void" />
153 <param index="0" name="compute_list" type="int" />
154 <param index="1" name="uniform_set" type="RID" />
155 <param index="2" name="set_index" type="int" />
156 <description>
157 Binds the [param uniform_set] to this [param compute_list]. Godot ensures that all textures in the uniform set have the correct Vulkan access masks. If Godot had to change access masks of textures, it will raise a Vulkan image memory barrier.
158 </description>
159 </method>
160 <method name="compute_list_dispatch">
161 <return type="void" />
162 <param index="0" name="compute_list" type="int" />
163 <param index="1" name="x_groups" type="int" />
164 <param index="2" name="y_groups" type="int" />
165 <param index="3" name="z_groups" type="int" />
166 <description>
167 Submits the compute list for processing on the GPU. This is the compute equivalent to [method draw_list_draw].
168 </description>
169 </method>
170 <method name="compute_list_dispatch_indirect">
171 <return type="void" />
172 <param index="0" name="compute_list" type="int" />
173 <param index="1" name="buffer" type="RID" />
174 <param index="2" name="offset" type="int" />
175 <description>
176 Submits the compute list for processing on the GPU with the given group counts stored in the [param buffer] at [param offset]. Buffer must have been created with [constant STORAGE_BUFFER_USAGE_DISPATCH_INDIRECT] flag.
177 </description>
178 </method>
179 <method name="compute_list_end">
180 <return type="void" />
181 <description>
182 Finishes a list of compute commands created with the [code]compute_*[/code] methods.
183 </description>
184 </method>
185 <method name="compute_list_set_push_constant">
186 <return type="void" />
187 <param index="0" name="compute_list" type="int" />
188 <param index="1" name="buffer" type="PackedByteArray" />
189 <param index="2" name="size_bytes" type="int" />
190 <description>
191 Sets the push constant data to [param buffer] for the specified [param compute_list]. The shader determines how this binary data is used. The buffer's size in bytes must also be specified in [param size_bytes] (this can be obtained by calling the [method PackedByteArray.size] method on the passed [param buffer]).
192 </description>
193 </method>
194 <method name="compute_pipeline_create">
195 <return type="RID" />
196 <param index="0" name="shader" type="RID" />
197 <param index="1" name="specialization_constants" type="RDPipelineSpecializationConstant[]" default="[]" />
198 <description>
199 Creates a new compute pipeline. It can be accessed with the RID that is returned.
200 Once finished with your RID, you will want to free the RID using the RenderingDevice's [method free_rid] method.
201 This will be freed automatically when the [param shader] is freed.
202 </description>
203 </method>
204 <method name="compute_pipeline_is_valid">
205 <return type="bool" />
206 <param index="0" name="compute_pipeline" type="RID" />
207 <description>
208 Returns [code]true[/code] if the compute pipeline specified by the [param compute_pipeline] RID is valid, [code]false[/code] otherwise.
209 </description>
210 </method>
211 <method name="create_local_device">
212 <return type="RenderingDevice" />
213 <description>
214 Create a new local [RenderingDevice]. This is most useful for performing compute operations on the GPU independently from the rest of the engine.
215 </description>
216 </method>
217 <method name="draw_command_begin_label">
218 <return type="void" />
219 <param index="0" name="name" type="String" />
220 <param index="1" name="color" type="Color" />
221 <description>
222 Create a command buffer debug label region that can be displayed in third-party tools such as [url=https://renderdoc.org/]RenderDoc[/url]. All regions must be ended with a [method draw_command_end_label] call. When viewed from the linear series of submissions to a single queue, calls to [method draw_command_begin_label] and [method draw_command_end_label] must be matched and balanced.
223 The [code]VK_EXT_DEBUG_UTILS_EXTENSION_NAME[/code] Vulkan extension must be available and enabled for command buffer debug label region to work. See also [method draw_command_end_label].
224 </description>
225 </method>
226 <method name="draw_command_end_label">
227 <return type="void" />
228 <description>
229 Ends the command buffer debug label region started by a [method draw_command_begin_label] call.
230 </description>
231 </method>
232 <method name="draw_command_insert_label" deprecated="Inserting labels no longer applies due to command reordering.">
233 <return type="void" />
234 <param index="0" name="name" type="String" />
235 <param index="1" name="color" type="Color" />
236 <description>
237 This method does nothing.
238 </description>
239 </method>
240 <method name="draw_list_begin">
241 <return type="int" />
242 <param index="0" name="framebuffer" type="RID" />
243 <param index="1" name="draw_flags" type="int" enum="RenderingDevice.DrawFlags" is_bitfield="true" default="0" />
244 <param index="2" name="clear_color_values" type="PackedColorArray" default="PackedColorArray()" />
245 <param index="3" name="clear_depth_value" type="float" default="1.0" />
246 <param index="4" name="clear_stencil_value" type="int" default="0" />
247 <param index="5" name="region" type="Rect2" default="Rect2(0, 0, 0, 0)" />
248 <param index="6" name="breadcrumb" type="int" default="0" />
249 <description>
250 Starts a list of raster drawing commands created with the [code]draw_*[/code] methods. The returned value should be passed to other [code]draw_list_*[/code] functions.
251 Multiple draw lists cannot be created at the same time; you must finish the previous draw list first using [method draw_list_end].
252 A simple drawing operation might look like this (code is not a complete example):
253 [codeblock]
254 var rd = RenderingDevice.new()
255 var clear_colors = PackedColorArray([Color(0, 0, 0, 0), Color(0, 0, 0, 0), Color(0, 0, 0, 0)])
256 var draw_list = rd.draw_list_begin(framebuffers[i], RenderingDevice.CLEAR_COLOR_ALL, clear_colors, true, 1.0f, true, 0, Rect2(), RenderingDevice.OPAQUE_PASS)
257
258 # Draw opaque.
259 rd.draw_list_bind_render_pipeline(draw_list, raster_pipeline)
260 rd.draw_list_bind_uniform_set(draw_list, raster_base_uniform, 0)
261 rd.draw_list_set_push_constant(draw_list, raster_push_constant, raster_push_constant.size())
262 rd.draw_list_draw(draw_list, false, 1, slice_triangle_count[i] * 3)
263 # Draw wire.
264 rd.draw_list_bind_render_pipeline(draw_list, raster_pipeline_wire)
265 rd.draw_list_bind_uniform_set(draw_list, raster_base_uniform, 0)
266 rd.draw_list_set_push_constant(draw_list, raster_push_constant, raster_push_constant.size())
267 rd.draw_list_draw(draw_list, false, 1, slice_triangle_count[i] * 3)
268
269 rd.draw_list_end()
270 [/codeblock]
271 The [param draw_flags] indicates if the texture attachments of the framebuffer should be cleared or ignored. Only one of the two flags can be used for each individual attachment. Ignoring an attachment means that any contents that existed before the draw list will be completely discarded, reducing the memory bandwidth used by the render pass but producing garbage results if the pixels aren't replaced. The default behavior allows the engine to figure out the right operation to use if the texture is discardable, which can result in increased performance. See [RDTextureFormat] or [method texture_set_discardable].
272 The [param breadcrumb] parameter can be an arbitrary 32-bit integer that is useful to diagnose GPU crashes. If Godot is built in dev or debug mode; when the GPU crashes Godot will dump all shaders that were being executed at the time of the crash and the breadcrumb is useful to diagnose what passes did those shaders belong to.
273 It does not affect rendering behavior and can be set to 0. It is recommended to use [enum BreadcrumbMarker] enumerations for consistency but it's not required. It is also possible to use bitwise operations to add extra data. e.g.
274 [codeblock]
275 rd.draw_list_begin(fb[i], RenderingDevice.CLEAR_COLOR_ALL, clear_colors, true, 1.0f, true, 0, Rect2(), RenderingDevice.OPAQUE_PASS | 5)
276 [/codeblock]
277 </description>
278 </method>
279 <method name="draw_list_begin_for_screen">
280 <return type="int" />
281 <param index="0" name="screen" type="int" default="0" />
282 <param index="1" name="clear_color" type="Color" default="Color(0, 0, 0, 1)" />
283 <description>
284 High-level variant of [method draw_list_begin], with the parameters automatically being adjusted for drawing onto the window specified by the [param screen] ID.
285 [b]Note:[/b] Cannot be used with local RenderingDevices, as these don't have a screen. If called on a local RenderingDevice, [method draw_list_begin_for_screen] returns [constant INVALID_ID].
286 </description>
287 </method>
288 <method name="draw_list_begin_split" deprecated="Split draw lists are used automatically by RenderingDevice.">
289 <return type="PackedInt64Array" />
290 <param index="0" name="framebuffer" type="RID" />
291 <param index="1" name="splits" type="int" />
292 <param index="2" name="initial_color_action" type="int" enum="RenderingDevice.InitialAction" />
293 <param index="3" name="final_color_action" type="int" enum="RenderingDevice.FinalAction" />
294 <param index="4" name="initial_depth_action" type="int" enum="RenderingDevice.InitialAction" />
295 <param index="5" name="final_depth_action" type="int" enum="RenderingDevice.FinalAction" />
296 <param index="6" name="clear_color_values" type="PackedColorArray" default="PackedColorArray()" />
297 <param index="7" name="clear_depth" type="float" default="1.0" />
298 <param index="8" name="clear_stencil" type="int" default="0" />
299 <param index="9" name="region" type="Rect2" default="Rect2(0, 0, 0, 0)" />
300 <param index="10" name="storage_textures" type="RID[]" default="[]" />
301 <description>
302 This method does nothing and always returns an empty [PackedInt64Array].
303 </description>
304 </method>
305 <method name="draw_list_bind_index_array">
306 <return type="void" />
307 <param index="0" name="draw_list" type="int" />
308 <param index="1" name="index_array" type="RID" />
309 <description>
310 Binds [param index_array] to the specified [param draw_list].
311 </description>
312 </method>
313 <method name="draw_list_bind_render_pipeline">
314 <return type="void" />
315 <param index="0" name="draw_list" type="int" />
316 <param index="1" name="render_pipeline" type="RID" />
317 <description>
318 Binds [param render_pipeline] to the specified [param draw_list].
319 </description>
320 </method>
321 <method name="draw_list_bind_uniform_set">
322 <return type="void" />
323 <param index="0" name="draw_list" type="int" />
324 <param index="1" name="uniform_set" type="RID" />
325 <param index="2" name="set_index" type="int" />
326 <description>
327 Binds [param uniform_set] to the specified [param draw_list]. A [param set_index] must also be specified, which is an identifier starting from [code]0[/code] that must match the one expected by the draw list.
328 </description>
329 </method>
330 <method name="draw_list_bind_vertex_array">
331 <return type="void" />
332 <param index="0" name="draw_list" type="int" />
333 <param index="1" name="vertex_array" type="RID" />
334 <description>
335 Binds [param vertex_array] to the specified [param draw_list].
336 </description>
337 </method>
338 <method name="draw_list_bind_vertex_buffers_format">
339 <return type="void" />
340 <param index="0" name="draw_list" type="int" />
341 <param index="1" name="vertex_format" type="int" />
342 <param index="2" name="vertex_count" type="int" />
343 <param index="3" name="vertex_buffers" type="RID[]" />
344 <param index="4" name="offsets" type="PackedInt64Array" default="PackedInt64Array()" />
345 <description>
346 Binds a set of [param vertex_buffers] directly to the specified [param draw_list] using [param vertex_format] without creating a vertex array RID. Provide the number of vertices in [param vertex_count]; optional per-buffer byte [param offsets] may also be supplied.
347 </description>
348 </method>
349 <method name="draw_list_disable_scissor">
350 <return type="void" />
351 <param index="0" name="draw_list" type="int" />
352 <description>
353 Removes and disables the scissor rectangle for the specified [param draw_list]. See also [method draw_list_enable_scissor].
354 </description>
355 </method>
356 <method name="draw_list_draw">
357 <return type="void" />
358 <param index="0" name="draw_list" type="int" />
359 <param index="1" name="use_indices" type="bool" />
360 <param index="2" name="instances" type="int" />
361 <param index="3" name="procedural_vertex_count" type="int" default="0" />
362 <description>
363 Submits [param draw_list] for rendering on the GPU. This is the raster equivalent to [method compute_list_dispatch].
364 </description>
365 </method>
366 <method name="draw_list_draw_indirect">
367 <return type="void" />
368 <param index="0" name="draw_list" type="int" />
369 <param index="1" name="use_indices" type="bool" />
370 <param index="2" name="buffer" type="RID" />
371 <param index="3" name="offset" type="int" default="0" />
372 <param index="4" name="draw_count" type="int" default="1" />
373 <param index="5" name="stride" type="int" default="0" />
374 <description>
375 Submits [param draw_list] for rendering on the GPU with the given parameters stored in the [param buffer] at [param offset]. Parameters being integers: vertex count, instance count, first vertex, first instance. And when using indices: index count, instance count, first index, vertex offset, first instance. Buffer must have been created with [constant STORAGE_BUFFER_USAGE_DISPATCH_INDIRECT] flag.
376 </description>
377 </method>
378 <method name="draw_list_enable_scissor">
379 <return type="void" />
380 <param index="0" name="draw_list" type="int" />
381 <param index="1" name="rect" type="Rect2" default="Rect2(0, 0, 0, 0)" />
382 <description>
383 Creates a scissor rectangle and enables it for the specified [param draw_list]. Scissor rectangles are used for clipping by discarding fragments that fall outside a specified rectangular portion of the screen. See also [method draw_list_disable_scissor].
384 [b]Note:[/b] The specified [param rect] is automatically intersected with the screen's dimensions, which means it cannot exceed the screen's dimensions.
385 </description>
386 </method>
387 <method name="draw_list_end">
388 <return type="void" />
389 <description>
390 Finishes a list of raster drawing commands created with the [code]draw_*[/code] methods.
391 </description>
392 </method>
393 <method name="draw_list_set_blend_constants">
394 <return type="void" />
395 <param index="0" name="draw_list" type="int" />
396 <param index="1" name="color" type="Color" />
397 <description>
398 Sets blend constants for the specified [param draw_list] to [param color]. Blend constants are used only if the graphics pipeline is created with [constant DYNAMIC_STATE_BLEND_CONSTANTS] flag set.
399 </description>
400 </method>
401 <method name="draw_list_set_push_constant">
402 <return type="void" />
403 <param index="0" name="draw_list" type="int" />
404 <param index="1" name="buffer" type="PackedByteArray" />
405 <param index="2" name="size_bytes" type="int" />
406 <description>
407 Sets the push constant data to [param buffer] for the specified [param draw_list]. The shader determines how this binary data is used. The buffer's size in bytes must also be specified in [param size_bytes] (this can be obtained by calling the [method PackedByteArray.size] method on the passed [param buffer]).
408 </description>
409 </method>
410 <method name="draw_list_switch_to_next_pass">
411 <return type="int" />
412 <description>
413 Switches to the next draw pass.
414 </description>
415 </method>
416 <method name="draw_list_switch_to_next_pass_split" deprecated="Split draw lists are used automatically by RenderingDevice.">
417 <return type="PackedInt64Array" />
418 <param index="0" name="splits" type="int" />
419 <description>
420 This method does nothing and always returns an empty [PackedInt64Array].
421 </description>
422 </method>
423 <method name="framebuffer_create">
424 <return type="RID" />
425 <param index="0" name="textures" type="RID[]" />
426 <param index="1" name="validate_with_format" type="int" default="-1" />
427 <param index="2" name="view_count" type="int" default="1" />
428 <description>
429 Creates a new framebuffer. It can be accessed with the RID that is returned.
430 Once finished with your RID, you will want to free the RID using the RenderingDevice's [method free_rid] method.
431 This will be freed automatically when any of the [param textures] is freed.
432 </description>
433 </method>
434 <method name="framebuffer_create_empty">
435 <return type="RID" />
436 <param index="0" name="size" type="Vector2i" />
437 <param index="1" name="samples" type="int" enum="RenderingDevice.TextureSamples" default="0" />
438 <param index="2" name="validate_with_format" type="int" default="-1" />
439 <description>
440 Creates a new empty framebuffer. It can be accessed with the RID that is returned.
441 Once finished with your RID, you will want to free the RID using the RenderingDevice's [method free_rid] method.
442 </description>
443 </method>
444 <method name="framebuffer_create_multipass">
445 <return type="RID" />
446 <param index="0" name="textures" type="RID[]" />
447 <param index="1" name="passes" type="RDFramebufferPass[]" />
448 <param index="2" name="validate_with_format" type="int" default="-1" />
449 <param index="3" name="view_count" type="int" default="1" />
450 <description>
451 Creates a new multipass framebuffer. It can be accessed with the RID that is returned.
452 Once finished with your RID, you will want to free the RID using the RenderingDevice's [method free_rid] method.
453 This will be freed automatically when any of the [param textures] is freed.
454 </description>
455 </method>
456 <method name="framebuffer_format_create">
457 <return type="int" />
458 <param index="0" name="attachments" type="RDAttachmentFormat[]" />
459 <param index="1" name="view_count" type="int" default="1" />
460 <description>
461 Creates a new framebuffer format with the specified [param attachments] and [param view_count]. Returns the new framebuffer's unique framebuffer format ID.
462 If [param view_count] is greater than or equal to [code]2[/code], enables multiview which is used for VR rendering. This requires support for the Vulkan multiview extension.
463 </description>
464 </method>
465 <method name="framebuffer_format_create_empty">
466 <return type="int" />
467 <param index="0" name="samples" type="int" enum="RenderingDevice.TextureSamples" default="0" />
468 <description>
469 Creates a new empty framebuffer format with the specified number of [param samples] and returns its ID.
470 </description>
471 </method>
472 <method name="framebuffer_format_create_multipass">
473 <return type="int" />
474 <param index="0" name="attachments" type="RDAttachmentFormat[]" />
475 <param index="1" name="passes" type="RDFramebufferPass[]" />
476 <param index="2" name="view_count" type="int" default="1" />
477 <description>
478 Creates a multipass framebuffer format with the specified [param attachments], [param passes] and [param view_count] and returns its ID. If [param view_count] is greater than or equal to [code]2[/code], enables multiview which is used for VR rendering. This requires support for the Vulkan multiview extension.
479 </description>
480 </method>
481 <method name="framebuffer_format_get_texture_samples">
482 <return type="int" enum="RenderingDevice.TextureSamples" />
483 <param index="0" name="format" type="int" />
484 <param index="1" name="render_pass" type="int" default="0" />
485 <description>
486 Returns the number of texture samples used for the given framebuffer [param format] ID (returned by [method framebuffer_get_format]).
487 </description>
488 </method>
489 <method name="framebuffer_get_format">
490 <return type="int" />
491 <param index="0" name="framebuffer" type="RID" />
492 <description>
493 Returns the format ID of the framebuffer specified by the [param framebuffer] RID. This ID is guaranteed to be unique for the same formats and does not need to be freed.
494 </description>
495 </method>
496 <method name="framebuffer_is_valid" qualifiers="const">
497 <return type="bool" />
498 <param index="0" name="framebuffer" type="RID" />
499 <description>
500 Returns [code]true[/code] if the framebuffer specified by the [param framebuffer] RID is valid, [code]false[/code] otherwise.
501 </description>
502 </method>
503 <method name="free_rid">
504 <return type="void" />
505 <param index="0" name="rid" type="RID" />
506 <description>
507 Tries to free an object in the RenderingDevice. To avoid memory leaks, this should be called after using an object as memory management does not occur automatically when using RenderingDevice directly.
508 </description>
509 </method>
510 <method name="full_barrier" deprecated="Barriers are automatically inserted by RenderingDevice.">
511 <return type="void" />
512 <description>
513 This method does nothing.
514 </description>
515 </method>
516 <method name="get_captured_timestamp_cpu_time" qualifiers="const">
517 <return type="int" />
518 <param index="0" name="index" type="int" />
519 <description>
520 Returns the timestamp in CPU time for the rendering step specified by [param index] (in microseconds since the engine started). See also [method get_captured_timestamp_gpu_time] and [method capture_timestamp].
521 </description>
522 </method>
523 <method name="get_captured_timestamp_gpu_time" qualifiers="const">
524 <return type="int" />
525 <param index="0" name="index" type="int" />
526 <description>
527 Returns the timestamp in GPU time for the rendering step specified by [param index] (in microseconds since the engine started). See also [method get_captured_timestamp_cpu_time] and [method capture_timestamp].
528 </description>
529 </method>
530 <method name="get_captured_timestamp_name" qualifiers="const">
531 <return type="String" />
532 <param index="0" name="index" type="int" />
533 <description>
534 Returns the timestamp's name for the rendering step specified by [param index]. See also [method capture_timestamp].
535 </description>
536 </method>
537 <method name="get_captured_timestamps_count" qualifiers="const">
538 <return type="int" />
539 <description>
540 Returns the total number of timestamps (rendering steps) available for profiling.
541 </description>
542 </method>
543 <method name="get_captured_timestamps_frame" qualifiers="const">
544 <return type="int" />
545 <description>
546 Returns the index of the last frame rendered that has rendering timestamps available for querying.
547 </description>
548 </method>
549 <method name="get_device_allocation_count" qualifiers="const">
550 <return type="int" />
551 <description>
552 Returns how many allocations the GPU has performed for internal driver structures.
553 This is only used by Vulkan in debug builds and can return 0 when this information is not tracked or unknown.
554 </description>
555 </method>
556 <method name="get_device_allocs_by_object_type" qualifiers="const">
557 <return type="int" />
558 <param index="0" name="type" type="int" />
559 <description>
560 Same as [method get_device_allocation_count] but filtered for a given object type.
561 The type argument must be in range [code][0; get_tracked_object_type_count - 1][/code]. If [method get_tracked_object_type_count] is 0, then type argument is ignored and always returns 0.
562 This is only used by Vulkan in debug builds and can return 0 when this information is not tracked or unknown.
563 </description>
564 </method>
565 <method name="get_device_memory_by_object_type" qualifiers="const">
566 <return type="int" />
567 <param index="0" name="type" type="int" />
568 <description>
569 Same as [method get_device_total_memory] but filtered for a given object type.
570 The type argument must be in range [code][0; get_tracked_object_type_count - 1][/code]. If [method get_tracked_object_type_count] is 0, then type argument is ignored and always returns 0.
571 This is only used by Vulkan in debug builds and can return 0 when this information is not tracked or unknown.
572 </description>
573 </method>
574 <method name="get_device_name" qualifiers="const">
575 <return type="String" />
576 <description>
577 Returns the name of the video adapter (e.g. "GeForce GTX 1080/PCIe/SSE2"). Equivalent to [method RenderingServer.get_video_adapter_name]. See also [method get_device_vendor_name].
578 </description>
579 </method>
580 <method name="get_device_pipeline_cache_uuid" qualifiers="const">
581 <return type="String" />
582 <description>
583 Returns the universally unique identifier for the pipeline cache. This is used to cache shader files on disk, which avoids shader recompilations on subsequent engine runs. This UUID varies depending on the graphics card model, but also the driver version. Therefore, updating graphics drivers will invalidate the shader cache.
584 </description>
585 </method>
586 <method name="get_device_total_memory" qualifiers="const">
587 <return type="int" />
588 <description>
589 Returns how much bytes the GPU is using.
590 This is only used by Vulkan in debug builds and can return 0 when this information is not tracked or unknown.
591 </description>
592 </method>
593 <method name="get_device_vendor_name" qualifiers="const">
594 <return type="String" />
595 <description>
596 Returns the vendor of the video adapter (e.g. "NVIDIA Corporation"). Equivalent to [method RenderingServer.get_video_adapter_vendor]. See also [method get_device_name].
597 </description>
598 </method>
599 <method name="get_driver_allocation_count" qualifiers="const">
600 <return type="int" />
601 <description>
602 Returns how many allocations the GPU driver has performed for internal driver structures.
603 This is only used by Vulkan in debug builds and can return 0 when this information is not tracked or unknown.
604 </description>
605 </method>
606 <method name="get_driver_allocs_by_object_type" qualifiers="const">
607 <return type="int" />
608 <param index="0" name="type" type="int" />
609 <description>
610 Same as [method get_driver_allocation_count] but filtered for a given object type.
611 The type argument must be in range [code][0; get_tracked_object_type_count - 1][/code]. If [method get_tracked_object_type_count] is 0, then type argument is ignored and always returns 0.
612 This is only used by Vulkan in debug builds and can return 0 when this information is not tracked or unknown.
613 </description>
614 </method>
615 <method name="get_driver_and_device_memory_report" qualifiers="const">
616 <return type="String" />
617 <description>
618 Returns string report in CSV format using the following methods:
619 - [method get_tracked_object_name]
620 - [method get_tracked_object_type_count]
621 - [method get_driver_total_memory]
622 - [method get_driver_allocation_count]
623 - [method get_driver_memory_by_object_type]
624 - [method get_driver_allocs_by_object_type]
625 - [method get_device_total_memory]
626 - [method get_device_allocation_count]
627 - [method get_device_memory_by_object_type]
628 - [method get_device_allocs_by_object_type]
629 This is only used by Vulkan in debug builds. Godot must also be started with the [code]--extra-gpu-memory-tracking[/code] [url=$DOCS_URL/tutorials/editor/command_line_tutorial.html]command line argument[/url].
630 </description>
631 </method>
632 <method name="get_driver_memory_by_object_type" qualifiers="const">
633 <return type="int" />
634 <param index="0" name="type" type="int" />
635 <description>
636 Same as [method get_driver_total_memory] but filtered for a given object type.
637 The type argument must be in range [code][0; get_tracked_object_type_count - 1][/code]. If [method get_tracked_object_type_count] is 0, then type argument is ignored and always returns 0.
638 This is only used by Vulkan in debug builds and can return 0 when this information is not tracked or unknown.
639 </description>
640 </method>
641 <method name="get_driver_resource">
642 <return type="int" />
643 <param index="0" name="resource" type="int" enum="RenderingDevice.DriverResource" />
644 <param index="1" name="rid" type="RID" />
645 <param index="2" name="index" type="int" />
646 <description>
647 Returns the unique identifier of the driver [param resource] for the specified [param rid]. Some driver resource types ignore the specified [param rid]. [param index] is always ignored but must be specified anyway.
648 </description>
649 </method>
650 <method name="get_driver_total_memory" qualifiers="const">
651 <return type="int" />
652 <description>
653 Returns how much bytes the GPU driver is using for internal driver structures.
654 This is only used by Vulkan in debug builds and can return 0 when this information is not tracked or unknown.
655 </description>
656 </method>
657 <method name="get_frame_delay" qualifiers="const">
658 <return type="int" />
659 <description>
660 Returns the frame count kept by the graphics API. Higher values result in higher input lag, but with more consistent throughput. For the main [RenderingDevice], frames are cycled (usually 3 with triple-buffered V-Sync enabled). However, local [RenderingDevice]s only have 1 frame.
661 </description>
662 </method>
663 <method name="get_memory_usage" qualifiers="const">
664 <return type="int" />
665 <param index="0" name="type" type="int" enum="RenderingDevice.MemoryType" />
666 <description>
667 Returns the memory usage in bytes corresponding to the given [param type]. When using Vulkan, these statistics are calculated by [url=https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator]Vulkan Memory Allocator[/url].
668 </description>
669 </method>
670 <method name="get_perf_report" qualifiers="const">
671 <return type="String" />
672 <description>
673 Returns a string with a performance report from the past frame. Updates every frame.
674 </description>
675 </method>
676 <method name="get_tracked_object_name" qualifiers="const">
677 <return type="String" />
678 <param index="0" name="type_index" type="int" />
679 <description>
680 Returns the name of the type of object for the given [param type_index]. This value must be in range [code][0; get_tracked_object_type_count - 1][/code]. If [method get_tracked_object_type_count] is 0, then type argument is ignored and always returns the same string.
681 The return value is important because it gives meaning to the types passed to [method get_driver_memory_by_object_type], [method get_driver_allocs_by_object_type], [method get_device_memory_by_object_type], and [method get_device_allocs_by_object_type]. Examples of strings it can return (not exhaustive):
682 - DEVICE_MEMORY
683 - PIPELINE_CACHE
684 - SWAPCHAIN_KHR
685 - COMMAND_POOL
686 Thus if e.g. [code]get_tracked_object_name(5)[/code] returns "COMMAND_POOL", then [code]get_device_memory_by_object_type(5)[/code] returns the bytes used by the GPU for command pools.
687 This is only used by Vulkan in debug builds. Godot must also be started with the [code]--extra-gpu-memory-tracking[/code] [url=$DOCS_URL/tutorials/editor/command_line_tutorial.html]command line argument[/url].
688 </description>
689 </method>
690 <method name="get_tracked_object_type_count" qualifiers="const">
691 <return type="int" />
692 <description>
693 Returns how many types of trackable objects there are.
694 This is only used by Vulkan in debug builds. Godot must also be started with the [code]--extra-gpu-memory-tracking[/code] [url=$DOCS_URL/tutorials/editor/command_line_tutorial.html]command line argument[/url].
695 </description>
696 </method>
697 <method name="has_feature" qualifiers="const">
698 <return type="bool" />
699 <param index="0" name="feature" type="int" enum="RenderingDevice.Features" />
700 <description>
701 Returns [code]true[/code] if the [param feature] is supported by the GPU.
702 </description>
703 </method>
704 <method name="index_array_create">
705 <return type="RID" />
706 <param index="0" name="index_buffer" type="RID" />
707 <param index="1" name="index_offset" type="int" />
708 <param index="2" name="index_count" type="int" />
709 <description>
710 Creates a new index array. It can be accessed with the RID that is returned.
711 Once finished with your RID, you will want to free the RID using the RenderingDevice's [method free_rid] method.
712 This will be freed automatically when the [param index_buffer] is freed.
713 </description>
714 </method>
715 <method name="index_buffer_create">
716 <return type="RID" />
717 <param index="0" name="size_indices" type="int" />
718 <param index="1" name="format" type="int" enum="RenderingDevice.IndexBufferFormat" />
719 <param index="2" name="data" type="PackedByteArray" default="PackedByteArray()" />
720 <param index="3" name="use_restart_indices" type="bool" default="false" />
721 <param index="4" name="creation_bits" type="int" enum="RenderingDevice.BufferCreationBits" is_bitfield="true" default="0" />
722 <description>
723 Creates a new index buffer. It can be accessed with the RID that is returned.
724 Once finished with your RID, you will want to free the RID using the RenderingDevice's [method free_rid] method.
725 </description>
726 </method>
727 <method name="limit_get" qualifiers="const">
728 <return type="int" />
729 <param index="0" name="limit" type="int" enum="RenderingDevice.Limit" />
730 <description>
731 Returns the value of the specified [param limit]. This limit varies depending on the current graphics hardware (and sometimes the driver version). If the given limit is exceeded, rendering errors will occur.
732 Limits for various graphics hardware can be found in the [url=https://vulkan.gpuinfo.org/]Vulkan Hardware Database[/url].
733 </description>
734 </method>
735 <method name="render_pipeline_create">
736 <return type="RID" />
737 <param index="0" name="shader" type="RID" />
738 <param index="1" name="framebuffer_format" type="int" />
739 <param index="2" name="vertex_format" type="int" />
740 <param index="3" name="primitive" type="int" enum="RenderingDevice.RenderPrimitive" />
741 <param index="4" name="rasterization_state" type="RDPipelineRasterizationState" />
742 <param index="5" name="multisample_state" type="RDPipelineMultisampleState" />
743 <param index="6" name="stencil_state" type="RDPipelineDepthStencilState" />
744 <param index="7" name="color_blend_state" type="RDPipelineColorBlendState" />
745 <param index="8" name="dynamic_state_flags" type="int" enum="RenderingDevice.PipelineDynamicStateFlags" is_bitfield="true" default="0" />
746 <param index="9" name="for_render_pass" type="int" default="0" />
747 <param index="10" name="specialization_constants" type="RDPipelineSpecializationConstant[]" default="[]" />
748 <description>
749 Creates a new render pipeline. It can be accessed with the RID that is returned.
750 Once finished with your RID, you will want to free the RID using the RenderingDevice's [method free_rid] method.
751 This will be freed automatically when the [param shader] is freed.
752 </description>
753 </method>
754 <method name="render_pipeline_is_valid">
755 <return type="bool" />
756 <param index="0" name="render_pipeline" type="RID" />
757 <description>
758 Returns [code]true[/code] if the render pipeline specified by the [param render_pipeline] RID is valid, [code]false[/code] otherwise.
759 </description>
760 </method>
761 <method name="sampler_create">
762 <return type="RID" />
763 <param index="0" name="state" type="RDSamplerState" />
764 <description>
765 Creates a new sampler. It can be accessed with the RID that is returned.
766 Once finished with your RID, you will want to free the RID using the RenderingDevice's [method free_rid] method.
767 </description>
768 </method>
769 <method name="sampler_is_format_supported_for_filter" qualifiers="const">
770 <return type="bool" />
771 <param index="0" name="format" type="int" enum="RenderingDevice.DataFormat" />
772 <param index="1" name="sampler_filter" type="int" enum="RenderingDevice.SamplerFilter" />
773 <description>
774 Returns [code]true[/code] if implementation supports using a texture of [param format] with the given [param sampler_filter].
775 </description>
776 </method>
777 <method name="screen_get_framebuffer_format" qualifiers="const">
778 <return type="int" />
779 <param index="0" name="screen" type="int" default="0" />
780 <description>
781 Returns the framebuffer format of the given screen.
782 [b]Note:[/b] Only the main [RenderingDevice] returned by [method RenderingServer.get_rendering_device] has a format. If called on a local [RenderingDevice], this method prints an error and returns [constant INVALID_ID].
783 </description>
784 </method>
785 <method name="screen_get_height" qualifiers="const">
786 <return type="int" />
787 <param index="0" name="screen" type="int" default="0" />
788 <description>
789 Returns the window height matching the graphics API context for the given window ID (in pixels). Despite the parameter being named [param screen], this returns the [i]window[/i] size. See also [method screen_get_width].
790 [b]Note:[/b] Only the main [RenderingDevice] returned by [method RenderingServer.get_rendering_device] has a height. If called on a local [RenderingDevice], this method prints an error and returns [constant INVALID_ID].
791 </description>
792 </method>
793 <method name="screen_get_width" qualifiers="const">
794 <return type="int" />
795 <param index="0" name="screen" type="int" default="0" />
796 <description>
797 Returns the window width matching the graphics API context for the given window ID (in pixels). Despite the parameter being named [param screen], this returns the [i]window[/i] size. See also [method screen_get_height].
798 [b]Note:[/b] Only the main [RenderingDevice] returned by [method RenderingServer.get_rendering_device] has a width. If called on a local [RenderingDevice], this method prints an error and returns [constant INVALID_ID].
799 </description>
800 </method>
801 <method name="set_resource_name">
802 <return type="void" />
803 <param index="0" name="id" type="RID" />
804 <param index="1" name="name" type="String" />
805 <description>
806 Sets the resource name for [param id] to [param name]. This is used for debugging with third-party tools such as [url=https://renderdoc.org/]RenderDoc[/url].
807 The following types of resources can be named: texture, sampler, vertex buffer, index buffer, uniform buffer, texture buffer, storage buffer, uniform set buffer, shader, render pipeline and compute pipeline. Framebuffers cannot be named. Attempting to name an incompatible resource type will print an error.
808 [b]Note:[/b] Resource names are only set when the engine runs in verbose mode ([method OS.is_stdout_verbose] = [code]true[/code]), or when using an engine build compiled with the [code]dev_mode=yes[/code] SCons option. The graphics driver must also support the [code]VK_EXT_DEBUG_UTILS_EXTENSION_NAME[/code] Vulkan extension for named resources to work.
809 </description>
810 </method>
811 <method name="shader_compile_binary_from_spirv">
812 <return type="PackedByteArray" />
813 <param index="0" name="spirv_data" type="RDShaderSPIRV" />
814 <param index="1" name="name" type="String" default="&quot;&quot;" />
815 <description>
816 Compiles a binary shader from [param spirv_data] and returns the compiled binary data as a [PackedByteArray]. This compiled shader is specific to the GPU model and driver version used; it will not work on different GPU models or even different driver versions. See also [method shader_compile_spirv_from_source].
817 [param name] is an optional human-readable name that can be given to the compiled shader for organizational purposes.
818 </description>
819 </method>
820 <method name="shader_compile_spirv_from_source">
821 <return type="RDShaderSPIRV" />
822 <param index="0" name="shader_source" type="RDShaderSource" />
823 <param index="1" name="allow_cache" type="bool" default="true" />
824 <description>
825 Compiles a SPIR-V from the shader source code in [param shader_source] and returns the SPIR-V as an [RDShaderSPIRV]. This intermediate language shader is portable across different GPU models and driver versions, but cannot be run directly by GPUs until compiled into a binary shader using [method shader_compile_binary_from_spirv].
826 If [param allow_cache] is [code]true[/code], make use of the shader cache generated by Godot. This avoids a potentially lengthy shader compilation step if the shader is already in cache. If [param allow_cache] is [code]false[/code], Godot's shader cache is ignored and the shader will always be recompiled.
827 </description>
828 </method>
829 <method name="shader_create_from_bytecode">
830 <return type="RID" />
831 <param index="0" name="binary_data" type="PackedByteArray" />
832 <param index="1" name="placeholder_rid" type="RID" default="RID()" />
833 <description>
834 Creates a new shader instance from a binary compiled shader. It can be accessed with the RID that is returned.
835 Once finished with your RID, you will want to free the RID using the RenderingDevice's [method free_rid] method. See also [method shader_compile_binary_from_spirv] and [method shader_create_from_spirv].
836 </description>
837 </method>
838 <method name="shader_create_from_spirv">
839 <return type="RID" />
840 <param index="0" name="spirv_data" type="RDShaderSPIRV" />
841 <param index="1" name="name" type="String" default="&quot;&quot;" />
842 <description>
843 Creates a new shader instance from SPIR-V intermediate code. It can be accessed with the RID that is returned.
844 Once finished with your RID, you will want to free the RID using the RenderingDevice's [method free_rid] method. See also [method shader_compile_spirv_from_source] and [method shader_create_from_bytecode].
845 </description>
846 </method>
847 <method name="shader_create_placeholder">
848 <return type="RID" />
849 <description>
850 Create a placeholder RID by allocating an RID without initializing it for use in [method shader_create_from_bytecode]. This allows you to create an RID for a shader and pass it around, but defer compiling the shader to a later time.
851 </description>
852 </method>
853 <method name="shader_get_vertex_input_attribute_mask">
854 <return type="int" />
855 <param index="0" name="shader" type="RID" />
856 <description>
857 Returns the internal vertex input mask. Internally, the vertex input mask is an unsigned integer consisting of the locations (specified in GLSL via. [code]layout(location = ...)[/code]) of the input variables (specified in GLSL by the [code]in[/code] keyword).
858 </description>
859 </method>
860 <method name="storage_buffer_create">
861 <return type="RID" />
862 <param index="0" name="size_bytes" type="int" />
863 <param index="1" name="data" type="PackedByteArray" default="PackedByteArray()" />
864 <param index="2" name="usage" type="int" enum="RenderingDevice.StorageBufferUsage" is_bitfield="true" default="0" />
865 <param index="3" name="creation_bits" type="int" enum="RenderingDevice.BufferCreationBits" is_bitfield="true" default="0" />
866 <description>
867 Creates a [url=https://vkguide.dev/docs/chapter-4/storage_buffers/]storage buffer[/url] with the specified [param data] and [param usage]. It can be accessed with the RID that is returned.
868 Once finished with your RID, you will want to free the RID using the RenderingDevice's [method free_rid] method.
869 </description>
870 </method>
871 <method name="submit">
872 <return type="void" />
873 <description>
874 Pushes the frame setup and draw command buffers then marks the local device as currently processing (which allows calling [method sync]).
875 [b]Note:[/b] Only available in local RenderingDevices.
876 </description>
877 </method>
878 <method name="sync">
879 <return type="void" />
880 <description>
881 Forces a synchronization between the CPU and GPU, which may be required in certain cases. Only call this when needed, as CPU-GPU synchronization has a performance cost.
882 [b]Note:[/b] Only available in local RenderingDevices.
883 [b]Note:[/b] [method sync] can only be called after a [method submit].
884 </description>
885 </method>
886 <method name="texture_buffer_create">
887 <return type="RID" />
888 <param index="0" name="size_bytes" type="int" />
889 <param index="1" name="format" type="int" enum="RenderingDevice.DataFormat" />
890 <param index="2" name="data" type="PackedByteArray" default="PackedByteArray()" />
891 <description>
892 Creates a new texture buffer. It can be accessed with the RID that is returned.
893 Once finished with your RID, you will want to free the RID using the RenderingDevice's [method free_rid] method.
894 </description>
895 </method>
896 <method name="texture_clear">
897 <return type="int" enum="Error" />
898 <param index="0" name="texture" type="RID" />
899 <param index="1" name="color" type="Color" />
900 <param index="2" name="base_mipmap" type="int" />
901 <param index="3" name="mipmap_count" type="int" />
902 <param index="4" name="base_layer" type="int" />
903 <param index="5" name="layer_count" type="int" />
904 <description>
905 Clears the specified [param texture] by replacing all of its pixels with the specified [param color]. [param base_mipmap] and [param mipmap_count] determine which mipmaps of the texture are affected by this clear operation, while [param base_layer] and [param layer_count] determine which layers of a 3D texture (or texture array) are affected by this clear operation. For 2D textures (which only have one layer by design), [param base_layer] must be [code]0[/code] and [param layer_count] must be [code]1[/code].
906 [b]Note:[/b] [param texture] can't be cleared while a draw list that uses it as part of a framebuffer is being created. Ensure the draw list is finalized (and that the color/depth texture using it is not set to [constant FINAL_ACTION_CONTINUE]) to clear this texture.
907 </description>
908 </method>
909 <method name="texture_copy">
910 <return type="int" enum="Error" />
911 <param index="0" name="from_texture" type="RID" />
912 <param index="1" name="to_texture" type="RID" />
913 <param index="2" name="from_pos" type="Vector3" />
914 <param index="3" name="to_pos" type="Vector3" />
915 <param index="4" name="size" type="Vector3" />
916 <param index="5" name="src_mipmap" type="int" />
917 <param index="6" name="dst_mipmap" type="int" />
918 <param index="7" name="src_layer" type="int" />
919 <param index="8" name="dst_layer" type="int" />
920 <description>
921 Copies the [param from_texture] to [param to_texture] with the specified [param from_pos], [param to_pos] and [param size] coordinates. The Z axis of the [param from_pos], [param to_pos] and [param size] must be [code]0[/code] for 2-dimensional textures. Source and destination mipmaps/layers must also be specified, with these parameters being [code]0[/code] for textures without mipmaps or single-layer textures. Returns [constant @GlobalScope.OK] if the texture copy was successful or [constant @GlobalScope.ERR_INVALID_PARAMETER] otherwise.
922 [b]Note:[/b] [param from_texture] texture can't be copied while a draw list that uses it as part of a framebuffer is being created. Ensure the draw list is finalized (and that the color/depth texture using it is not set to [constant FINAL_ACTION_CONTINUE]) to copy this texture.
923 [b]Note:[/b] [param from_texture] texture requires the [constant TEXTURE_USAGE_CAN_COPY_FROM_BIT] to be retrieved.
924 [b]Note:[/b] [param to_texture] can't be copied while a draw list that uses it as part of a framebuffer is being created. Ensure the draw list is finalized (and that the color/depth texture using it is not set to [constant FINAL_ACTION_CONTINUE]) to copy this texture.
925 [b]Note:[/b] [param to_texture] requires the [constant TEXTURE_USAGE_CAN_COPY_TO_BIT] to be retrieved.
926 [b]Note:[/b] [param from_texture] and [param to_texture] must be of the same type (color or depth).
927 </description>
928 </method>
929 <method name="texture_create">
930 <return type="RID" />
931 <param index="0" name="format" type="RDTextureFormat" />
932 <param index="1" name="view" type="RDTextureView" />
933 <param index="2" name="data" type="PackedByteArray[]" default="[]" />
934 <description>
935 Creates a new texture. It can be accessed with the RID that is returned.
936 Once finished with your RID, you will want to free the RID using the RenderingDevice's [method free_rid] method.
937 [b]Note:[/b] [param data] takes an [Array] of [PackedByteArray]s. For [constant TEXTURE_TYPE_1D], [constant TEXTURE_TYPE_2D], and [constant TEXTURE_TYPE_3D] types, this array should only have one element, a [PackedByteArray] containing all the data for the texture. For [code]_ARRAY[/code] and [code]_CUBE[/code] types, the length should be the same as the number of [member RDTextureFormat.array_layers] in [param format].
938 [b]Note:[/b] Not to be confused with [method RenderingServer.texture_2d_create], which creates the Godot-specific [Texture2D] resource as opposed to the graphics API's own texture type.
939 </description>
940 </method>
941 <method name="texture_create_from_extension">
942 <return type="RID" />
943 <param index="0" name="type" type="int" enum="RenderingDevice.TextureType" />
944 <param index="1" name="format" type="int" enum="RenderingDevice.DataFormat" />
945 <param index="2" name="samples" type="int" enum="RenderingDevice.TextureSamples" />
946 <param index="3" name="usage_flags" type="int" enum="RenderingDevice.TextureUsageBits" is_bitfield="true" />
947 <param index="4" name="image" type="int" />
948 <param index="5" name="width" type="int" />
949 <param index="6" name="height" type="int" />
950 <param index="7" name="depth" type="int" />
951 <param index="8" name="layers" type="int" />
952 <param index="9" name="mipmaps" type="int" default="1" />
953 <description>
954 Returns an RID for an existing [param image] ([code]VkImage[/code]) with the given [param type], [param format], [param samples], [param usage_flags], [param width], [param height], [param depth], [param layers], and [param mipmaps]. This can be used to allow Godot to render onto foreign images.
955 </description>
956 </method>
957 <method name="texture_create_shared">
958 <return type="RID" />
959 <param index="0" name="view" type="RDTextureView" />
960 <param index="1" name="with_texture" type="RID" />
961 <description>
962 Creates a shared texture using the specified [param view] and the texture information from [param with_texture].
963 This will be freed automatically when the [param with_texture] is freed.
964 </description>
965 </method>
966 <method name="texture_create_shared_from_slice">
967 <return type="RID" />
968 <param index="0" name="view" type="RDTextureView" />
969 <param index="1" name="with_texture" type="RID" />
970 <param index="2" name="layer" type="int" />
971 <param index="3" name="mipmap" type="int" />
972 <param index="4" name="mipmaps" type="int" default="1" />
973 <param index="5" name="slice_type" type="int" enum="RenderingDevice.TextureSliceType" default="0" />
974 <description>
975 Creates a shared texture using the specified [param view] and the texture information from [param with_texture]'s [param layer] and [param mipmap]. The number of included mipmaps from the original texture can be controlled using the [param mipmaps] parameter. Only relevant for textures with multiple layers, such as 3D textures, texture arrays and cubemaps. For single-layer textures, use [method texture_create_shared].
976 For 2D textures (which only have one layer), [param layer] must be [code]0[/code].
977 [b]Note:[/b] Layer slicing is only supported for 2D texture arrays, not 3D textures or cubemaps.
978 This will be freed automatically when the [param with_texture] is freed.
979 </description>
980 </method>
981 <method name="texture_get_data">
982 <return type="PackedByteArray" />
983 <param index="0" name="texture" type="RID" />
984 <param index="1" name="layer" type="int" />
985 <description>
986 Returns the [param texture] data for the specified [param layer] as raw binary data. For 2D textures (which only have one layer), [param layer] must be [code]0[/code].
987 [b]Note:[/b] [param texture] can't be retrieved while a draw list that uses it as part of a framebuffer is being created. Ensure the draw list is finalized (and that the color/depth texture using it is not set to [constant FINAL_ACTION_CONTINUE]) to retrieve this texture. Otherwise, an error is printed and an empty [PackedByteArray] is returned.
988 [b]Note:[/b] [param texture] requires the [constant TEXTURE_USAGE_CAN_COPY_FROM_BIT] to be retrieved. Otherwise, an error is printed and an empty [PackedByteArray] is returned.
989 [b]Note:[/b] This method will block the GPU from working until the data is retrieved. Refer to [method texture_get_data_async] for an alternative that returns the data in more performant way.
990 </description>
991 </method>
992 <method name="texture_get_data_async">
993 <return type="int" enum="Error" />
994 <param index="0" name="texture" type="RID" />
995 <param index="1" name="layer" type="int" />
996 <param index="2" name="callback" type="Callable" />
997 <description>
998 Asynchronous version of [method texture_get_data]. RenderingDevice will call [param callback] in a certain amount of frames with the data the texture had at the time of the request.
999 [b]Note:[/b] At the moment, the delay corresponds to the amount of frames specified by [member ProjectSettings.rendering/rendering_device/vsync/frame_queue_size].
1000 [b]Note:[/b] Downloading large textures can have a prohibitive cost for real-time even when using the asynchronous method due to hardware bandwidth limitations. When dealing with large resources, you can adjust settings such as [member ProjectSettings.rendering/rendering_device/staging_buffer/texture_download_region_size_px] and [member ProjectSettings.rendering/rendering_device/staging_buffer/block_size_kb] to improve the transfer speed at the cost of extra memory.
1001 [codeblock]
1002 func _texture_get_data_callback(array):
1003 value = array.decode_u32(0)
1004
1005 ...
1006
1007 rd.texture_get_data_async(texture, 0, _texture_get_data_callback)
1008 [/codeblock]
1009 </description>
1010 </method>
1011 <method name="texture_get_format">
1012 <return type="RDTextureFormat" />
1013 <param index="0" name="texture" type="RID" />
1014 <description>
1015 Returns the data format used to create this texture.
1016 </description>
1017 </method>
1018 <method name="texture_get_native_handle" deprecated="Use [method get_driver_resource] with [constant DRIVER_RESOURCE_TEXTURE] instead.">
1019 <return type="int" />
1020 <param index="0" name="texture" type="RID" />
1021 <description>
1022 Returns the internal graphics handle for this texture object. For use when communicating with third-party APIs mostly with GDExtension.
1023 [b]Note:[/b] This function returns a [code]uint64_t[/code] which internally maps to a [code]GLuint[/code] (OpenGL) or [code]VkImage[/code] (Vulkan).
1024 </description>
1025 </method>
1026 <method name="texture_is_discardable">
1027 <return type="bool" />
1028 <param index="0" name="texture" type="RID" />
1029 <description>
1030 Returns [code]true[/code] if the [param texture] is discardable, [code]false[/code] otherwise. See [RDTextureFormat] or [method texture_set_discardable].
1031 </description>
1032 </method>
1033 <method name="texture_is_format_supported_for_usage" qualifiers="const">
1034 <return type="bool" />
1035 <param index="0" name="format" type="int" enum="RenderingDevice.DataFormat" />
1036 <param index="1" name="usage_flags" type="int" enum="RenderingDevice.TextureUsageBits" is_bitfield="true" />
1037 <description>
1038 Returns [code]true[/code] if the specified [param format] is supported for the given [param usage_flags], [code]false[/code] otherwise.
1039 </description>
1040 </method>
1041 <method name="texture_is_shared">
1042 <return type="bool" />
1043 <param index="0" name="texture" type="RID" />
1044 <description>
1045 Returns [code]true[/code] if the [param texture] is shared, [code]false[/code] otherwise. See [RDTextureView].
1046 </description>
1047 </method>
1048 <method name="texture_is_valid">
1049 <return type="bool" />
1050 <param index="0" name="texture" type="RID" />
1051 <description>
1052 Returns [code]true[/code] if the [param texture] is valid, [code]false[/code] otherwise.
1053 </description>
1054 </method>
1055 <method name="texture_resolve_multisample">
1056 <return type="int" enum="Error" />
1057 <param index="0" name="from_texture" type="RID" />
1058 <param index="1" name="to_texture" type="RID" />
1059 <description>
1060 Resolves the [param from_texture] texture onto [param to_texture] with multisample antialiasing enabled. This must be used when rendering a framebuffer for MSAA to work. Returns [constant @GlobalScope.OK] if successful, [constant @GlobalScope.ERR_INVALID_PARAMETER] otherwise.
1061 [b]Note:[/b] [param from_texture] and [param to_texture] textures must have the same dimension, format and type (color or depth).
1062 [b]Note:[/b] [param from_texture] can't be copied while a draw list that uses it as part of a framebuffer is being created. Ensure the draw list is finalized (and that the color/depth texture using it is not set to [constant FINAL_ACTION_CONTINUE]) to resolve this texture.
1063 [b]Note:[/b] [param from_texture] requires the [constant TEXTURE_USAGE_CAN_COPY_FROM_BIT] to be retrieved.
1064 [b]Note:[/b] [param from_texture] must be multisampled and must also be 2D (or a slice of a 3D/cubemap texture).
1065 [b]Note:[/b] [param to_texture] can't be copied while a draw list that uses it as part of a framebuffer is being created. Ensure the draw list is finalized (and that the color/depth texture using it is not set to [constant FINAL_ACTION_CONTINUE]) to resolve this texture.
1066 [b]Note:[/b] [param to_texture] texture requires the [constant TEXTURE_USAGE_CAN_COPY_TO_BIT] to be retrieved.
1067 [b]Note:[/b] [param to_texture] texture must [b]not[/b] be multisampled and must also be 2D (or a slice of a 3D/cubemap texture).
1068 </description>
1069 </method>
1070 <method name="texture_set_discardable">
1071 <return type="void" />
1072 <param index="0" name="texture" type="RID" />
1073 <param index="1" name="discardable" type="bool" />
1074 <description>
1075 Updates the discardable property of [param texture].
1076 If a texture is discardable, its contents do not need to be preserved between frames. This flag is only relevant when the texture is used as target in a draw list.
1077 This information is used by [RenderingDevice] to figure out if a texture's contents can be discarded, eliminating unnecessary writes to memory and boosting performance.
1078 </description>
1079 </method>
1080 <method name="texture_update">
1081 <return type="int" enum="Error" />
1082 <param index="0" name="texture" type="RID" />
1083 <param index="1" name="layer" type="int" />
1084 <param index="2" name="data" type="PackedByteArray" />
1085 <description>
1086 Updates texture data with new data, replacing the previous data in place. The updated texture data must have the same dimensions and format. For 2D textures (which only have one layer), [param layer] must be [code]0[/code]. Returns [constant @GlobalScope.OK] if the update was successful, [constant @GlobalScope.ERR_INVALID_PARAMETER] otherwise.
1087 [b]Note:[/b] Updating textures is forbidden during creation of a draw or compute list.
1088 [b]Note:[/b] The existing [param texture] can't be updated while a draw list that uses it as part of a framebuffer is being created. Ensure the draw list is finalized (and that the color/depth texture using it is not set to [constant FINAL_ACTION_CONTINUE]) to update this texture.
1089 [b]Note:[/b] The existing [param texture] requires the [constant TEXTURE_USAGE_CAN_UPDATE_BIT] to be updatable.
1090 </description>
1091 </method>
1092 <method name="uniform_buffer_create">
1093 <return type="RID" />
1094 <param index="0" name="size_bytes" type="int" />
1095 <param index="1" name="data" type="PackedByteArray" default="PackedByteArray()" />
1096 <param index="2" name="creation_bits" type="int" enum="RenderingDevice.BufferCreationBits" is_bitfield="true" default="0" />
1097 <description>
1098 Creates a new uniform buffer. It can be accessed with the RID that is returned.
1099 Once finished with your RID, you will want to free the RID using the RenderingDevice's [method free_rid] method.
1100 </description>
1101 </method>
1102 <method name="uniform_set_create">
1103 <return type="RID" />
1104 <param index="0" name="uniforms" type="RDUniform[]" />
1105 <param index="1" name="shader" type="RID" />
1106 <param index="2" name="shader_set" type="int" />
1107 <description>
1108 Creates a new uniform set. It can be accessed with the RID that is returned.
1109 Once finished with your RID, you will want to free the RID using the RenderingDevice's [method free_rid] method.
1110 This will be freed automatically when the [param shader] or any of the RIDs in the [param uniforms] is freed.
1111 </description>
1112 </method>
1113 <method name="uniform_set_is_valid">
1114 <return type="bool" />
1115 <param index="0" name="uniform_set" type="RID" />
1116 <description>
1117 Checks if the [param uniform_set] is valid, i.e. is owned.
1118 </description>
1119 </method>
1120 <method name="vertex_array_create">
1121 <return type="RID" />
1122 <param index="0" name="vertex_count" type="int" />
1123 <param index="1" name="vertex_format" type="int" />
1124 <param index="2" name="src_buffers" type="RID[]" />
1125 <param index="3" name="offsets" type="PackedInt64Array" default="PackedInt64Array()" />
1126 <description>
1127 Creates a vertex array based on the specified buffers. Optionally, [param offsets] (in bytes) may be defined for each buffer.
1128 Once finished with your RID, you will want to free the RID using the RenderingDevice's [method free_rid] method.
1129 This will be freed automatically when any of the [param src_buffers] is freed.
1130 </description>
1131 </method>
1132 <method name="vertex_buffer_create">
1133 <return type="RID" />
1134 <param index="0" name="size_bytes" type="int" />
1135 <param index="1" name="data" type="PackedByteArray" default="PackedByteArray()" />
1136 <param index="2" name="creation_bits" type="int" enum="RenderingDevice.BufferCreationBits" is_bitfield="true" default="0" />
1137 <description>
1138 Creates a new vertex buffer. It can be accessed with the RID that is returned.
1139 Once finished with your RID, you will want to free the RID using the RenderingDevice's [method free_rid] method.
1140 </description>
1141 </method>
1142 <method name="vertex_format_create">
1143 <return type="int" />
1144 <param index="0" name="vertex_descriptions" type="RDVertexAttribute[]" />
1145 <description>
1146 Creates a new vertex format with the specified [param vertex_descriptions]. Returns a unique vertex format ID corresponding to the newly created vertex format.
1147 </description>
1148 </method>
1149 </methods>
1150 <constants>
1151 <constant name="DEVICE_TYPE_OTHER" value="0" enum="DeviceType">
1152 Rendering device type does not match any of the other enum values or is unknown.
1153 </constant>
1154 <constant name="DEVICE_TYPE_INTEGRATED_GPU" value="1" enum="DeviceType">
1155 Rendering device is an integrated GPU, which is typically [i](but not always)[/i] slower than dedicated GPUs ([constant DEVICE_TYPE_DISCRETE_GPU]). On Android and iOS, the rendering device type is always considered to be [constant DEVICE_TYPE_INTEGRATED_GPU].
1156 </constant>
1157 <constant name="DEVICE_TYPE_DISCRETE_GPU" value="2" enum="DeviceType">
1158 Rendering device is a dedicated GPU, which is typically [i](but not always)[/i] faster than integrated GPUs ([constant DEVICE_TYPE_INTEGRATED_GPU]).
1159 </constant>
1160 <constant name="DEVICE_TYPE_VIRTUAL_GPU" value="3" enum="DeviceType">
1161 Rendering device is an emulated GPU in a virtual environment. This is typically much slower than the host GPU, which means the expected performance level on a dedicated GPU will be roughly equivalent to [constant DEVICE_TYPE_INTEGRATED_GPU]. Virtual machine GPU passthrough (such as VFIO) will not report the device type as [constant DEVICE_TYPE_VIRTUAL_GPU]. Instead, the host GPU's device type will be reported as if the GPU was not emulated.
1162 </constant>
1163 <constant name="DEVICE_TYPE_CPU" value="4" enum="DeviceType">
1164 Rendering device is provided by software emulation (such as Lavapipe or [url=https://github.com/google/swiftshader]SwiftShader[/url]). This is the slowest kind of rendering device available; it's typically much slower than [constant DEVICE_TYPE_INTEGRATED_GPU].
1165 </constant>
1166 <constant name="DEVICE_TYPE_MAX" value="5" enum="DeviceType">
1167 Represents the size of the [enum DeviceType] enum.
1168 </constant>
1169 <constant name="DRIVER_RESOURCE_LOGICAL_DEVICE" value="0" enum="DriverResource">
1170 Specific device object based on a physical device ([code]rid[/code] parameter is ignored).
1171 - Vulkan: Vulkan device driver resource ([code]VkDevice[/code]).
1172 - D3D12: D3D12 device driver resource ([code]ID3D12Device[/code]).
1173 - Metal: Metal device driver resource ([code]MTLDevice[/code]).
1174 </constant>
1175 <constant name="DRIVER_RESOURCE_PHYSICAL_DEVICE" value="1" enum="DriverResource">
1176 Physical device the specific logical device is based on ([code]rid[/code] parameter is ignored).
1177 - Vulkan: [code]VkPhysicalDevice[/code].
1178 - D3D12: [code]IDXGIAdapter[/code].
1179 </constant>
1180 <constant name="DRIVER_RESOURCE_TOPMOST_OBJECT" value="2" enum="DriverResource">
1181 Top-most graphics API entry object ([code]rid[/code] parameter is ignored).
1182 - Vulkan: [code]VkInstance[/code].
1183 </constant>
1184 <constant name="DRIVER_RESOURCE_COMMAND_QUEUE" value="3" enum="DriverResource">
1185 The main graphics-compute command queue ([code]rid[/code] parameter is ignored).
1186 - Vulkan: [code]VkQueue[/code].
1187 - D3D12: [code]ID3D12CommandQueue[/code].
1188 - Metal: [code]MTLCommandQueue[/code].
1189 </constant>
1190 <constant name="DRIVER_RESOURCE_QUEUE_FAMILY" value="4" enum="DriverResource">
1191 The specific family the main queue belongs to ([code]rid[/code] parameter is ignored).
1192 - Vulkan: The queue family index, a [code]uint32_t[/code].
1193 </constant>
1194 <constant name="DRIVER_RESOURCE_TEXTURE" value="5" enum="DriverResource">
1195 - Vulkan: [code]VkImage[/code].
1196 - D3D12: [code]ID3D12Resource[/code].
1197 </constant>
1198 <constant name="DRIVER_RESOURCE_TEXTURE_VIEW" value="6" enum="DriverResource">
1199 The view of an owned or shared texture.
1200 - Vulkan: [code]VkImageView[/code].
1201 - D3D12: [code]ID3D12Resource[/code].
1202 </constant>
1203 <constant name="DRIVER_RESOURCE_TEXTURE_DATA_FORMAT" value="7" enum="DriverResource">
1204 The native id of the data format of the texture.
1205 - Vulkan: [code]VkFormat[/code].
1206 - D3D12: [code]DXGI_FORMAT[/code].
1207 </constant>
1208 <constant name="DRIVER_RESOURCE_SAMPLER" value="8" enum="DriverResource">
1209 - Vulkan: [code]VkSampler[/code].
1210 </constant>
1211 <constant name="DRIVER_RESOURCE_UNIFORM_SET" value="9" enum="DriverResource">
1212 - Vulkan: [code]VkDescriptorSet[/code].
1213 </constant>
1214 <constant name="DRIVER_RESOURCE_BUFFER" value="10" enum="DriverResource">
1215 Buffer of any kind of (storage, vertex, etc.).
1216 - Vulkan: [code]VkBuffer[/code].
1217 - D3D12: [code]ID3D12Resource[/code].
1218 </constant>
1219 <constant name="DRIVER_RESOURCE_COMPUTE_PIPELINE" value="11" enum="DriverResource">
1220 - Vulkan: [code]VkPipeline[/code].
1221 - Metal: [code]MTLComputePipelineState[/code].
1222 </constant>
1223 <constant name="DRIVER_RESOURCE_RENDER_PIPELINE" value="12" enum="DriverResource">
1224 - Vulkan: [code]VkPipeline[/code].
1225 - Metal: [code]MTLRenderPipelineState[/code].
1226 </constant>
1227 <constant name="DRIVER_RESOURCE_VULKAN_DEVICE" value="0" enum="DriverResource" deprecated="Use [constant DRIVER_RESOURCE_LOGICAL_DEVICE] instead.">
1228 </constant>
1229 <constant name="DRIVER_RESOURCE_VULKAN_PHYSICAL_DEVICE" value="1" enum="DriverResource" deprecated="Use [constant DRIVER_RESOURCE_PHYSICAL_DEVICE] instead.">
1230 </constant>
1231 <constant name="DRIVER_RESOURCE_VULKAN_INSTANCE" value="2" enum="DriverResource" deprecated="Use [constant DRIVER_RESOURCE_TOPMOST_OBJECT] instead.">
1232 </constant>
1233 <constant name="DRIVER_RESOURCE_VULKAN_QUEUE" value="3" enum="DriverResource" deprecated="Use [constant DRIVER_RESOURCE_COMMAND_QUEUE] instead.">
1234 </constant>
1235 <constant name="DRIVER_RESOURCE_VULKAN_QUEUE_FAMILY_INDEX" value="4" enum="DriverResource" deprecated="Use [constant DRIVER_RESOURCE_QUEUE_FAMILY] instead.">
1236 </constant>
1237 <constant name="DRIVER_RESOURCE_VULKAN_IMAGE" value="5" enum="DriverResource" deprecated="Use [constant DRIVER_RESOURCE_TEXTURE] instead.">
1238 </constant>
1239 <constant name="DRIVER_RESOURCE_VULKAN_IMAGE_VIEW" value="6" enum="DriverResource" deprecated="Use [constant DRIVER_RESOURCE_TEXTURE_VIEW] instead.">
1240 </constant>
1241 <constant name="DRIVER_RESOURCE_VULKAN_IMAGE_NATIVE_TEXTURE_FORMAT" value="7" enum="DriverResource" deprecated="Use [constant DRIVER_RESOURCE_TEXTURE_DATA_FORMAT] instead.">
1242 </constant>
1243 <constant name="DRIVER_RESOURCE_VULKAN_SAMPLER" value="8" enum="DriverResource" deprecated="Use [constant DRIVER_RESOURCE_SAMPLER] instead.">
1244 </constant>
1245 <constant name="DRIVER_RESOURCE_VULKAN_DESCRIPTOR_SET" value="9" enum="DriverResource" deprecated="Use [constant DRIVER_RESOURCE_UNIFORM_SET] instead.">
1246 </constant>
1247 <constant name="DRIVER_RESOURCE_VULKAN_BUFFER" value="10" enum="DriverResource" deprecated="Use [constant DRIVER_RESOURCE_BUFFER] instead.">
1248 </constant>
1249 <constant name="DRIVER_RESOURCE_VULKAN_COMPUTE_PIPELINE" value="11" enum="DriverResource" deprecated="Use [constant DRIVER_RESOURCE_COMPUTE_PIPELINE] instead.">
1250 </constant>
1251 <constant name="DRIVER_RESOURCE_VULKAN_RENDER_PIPELINE" value="12" enum="DriverResource" deprecated="Use [constant DRIVER_RESOURCE_RENDER_PIPELINE] instead.">
1252 </constant>
1253 <constant name="DATA_FORMAT_R4G4_UNORM_PACK8" value="0" enum="DataFormat">
1254 4-bit-per-channel red/green channel data format, packed into 8 bits. Values are in the [code][0.0, 1.0][/code] range.
1255 [b]Note:[/b] More information on all data formats can be found on the [url=https://registry.khronos.org/vulkan/specs/1.1/html/vkspec.html#_identification_of_formats]Identification of formats[/url] section of the Vulkan specification, as well as the [url=https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkFormat.html]VkFormat[/url] enum.
1256 </constant>
1257 <constant name="DATA_FORMAT_R4G4B4A4_UNORM_PACK16" value="1" enum="DataFormat">
1258 4-bit-per-channel red/green/blue/alpha channel data format, packed into 16 bits. Values are in the [code][0.0, 1.0][/code] range.
1259 </constant>
1260 <constant name="DATA_FORMAT_B4G4R4A4_UNORM_PACK16" value="2" enum="DataFormat">
1261 4-bit-per-channel blue/green/red/alpha channel data format, packed into 16 bits. Values are in the [code][0.0, 1.0][/code] range.
1262 </constant>
1263 <constant name="DATA_FORMAT_R5G6B5_UNORM_PACK16" value="3" enum="DataFormat">
1264 Red/green/blue channel data format with 5 bits of red, 6 bits of green and 5 bits of blue, packed into 16 bits. Values are in the [code][0.0, 1.0][/code] range.
1265 </constant>
1266 <constant name="DATA_FORMAT_B5G6R5_UNORM_PACK16" value="4" enum="DataFormat">
1267 Blue/green/red channel data format with 5 bits of blue, 6 bits of green and 5 bits of red, packed into 16 bits. Values are in the [code][0.0, 1.0][/code] range.
1268 </constant>
1269 <constant name="DATA_FORMAT_R5G5B5A1_UNORM_PACK16" value="5" enum="DataFormat">
1270 Red/green/blue/alpha channel data format with 5 bits of red, 6 bits of green, 5 bits of blue and 1 bit of alpha, packed into 16 bits. Values are in the [code][0.0, 1.0][/code] range.
1271 </constant>
1272 <constant name="DATA_FORMAT_B5G5R5A1_UNORM_PACK16" value="6" enum="DataFormat">
1273 Blue/green/red/alpha channel data format with 5 bits of blue, 6 bits of green, 5 bits of red and 1 bit of alpha, packed into 16 bits. Values are in the [code][0.0, 1.0][/code] range.
1274 </constant>
1275 <constant name="DATA_FORMAT_A1R5G5B5_UNORM_PACK16" value="7" enum="DataFormat">
1276 Alpha/red/green/blue channel data format with 1 bit of alpha, 5 bits of red, 6 bits of green and 5 bits of blue, packed into 16 bits. Values are in the [code][0.0, 1.0][/code] range.
1277 </constant>
1278 <constant name="DATA_FORMAT_R8_UNORM" value="8" enum="DataFormat">
1279 8-bit-per-channel unsigned floating-point red channel data format with normalized value. Values are in the [code][0.0, 1.0][/code] range.
1280 </constant>
1281 <constant name="DATA_FORMAT_R8_SNORM" value="9" enum="DataFormat">
1282 8-bit-per-channel signed floating-point red channel data format with normalized value. Values are in the [code][-1.0, 1.0][/code] range.
1283 </constant>
1284 <constant name="DATA_FORMAT_R8_USCALED" value="10" enum="DataFormat">
1285 8-bit-per-channel unsigned floating-point red channel data format with scaled value (value is converted from integer to float). Values are in the [code][0.0, 255.0][/code] range.
1286 </constant>
1287 <constant name="DATA_FORMAT_R8_SSCALED" value="11" enum="DataFormat">
1288 8-bit-per-channel signed floating-point red channel data format with scaled value (value is converted from integer to float). Values are in the [code][-127.0, 127.0][/code] range.
1289 </constant>
1290 <constant name="DATA_FORMAT_R8_UINT" value="12" enum="DataFormat">
1291 8-bit-per-channel unsigned integer red channel data format. Values are in the [code][0, 255][/code] range.
1292 </constant>
1293 <constant name="DATA_FORMAT_R8_SINT" value="13" enum="DataFormat">
1294 8-bit-per-channel signed integer red channel data format. Values are in the [code][-127, 127][/code] range.
1295 </constant>
1296 <constant name="DATA_FORMAT_R8_SRGB" value="14" enum="DataFormat">
1297 8-bit-per-channel unsigned floating-point red channel data format with normalized value and nonlinear sRGB encoding. Values are in the [code][0.0, 1.0][/code] range.
1298 </constant>
1299 <constant name="DATA_FORMAT_R8G8_UNORM" value="15" enum="DataFormat">
1300 8-bit-per-channel unsigned floating-point red/green channel data format with normalized value. Values are in the [code][0.0, 1.0][/code] range.
1301 </constant>
1302 <constant name="DATA_FORMAT_R8G8_SNORM" value="16" enum="DataFormat">
1303 8-bit-per-channel signed floating-point red/green channel data format with normalized value. Values are in the [code][-1.0, 1.0][/code] range.
1304 </constant>
1305 <constant name="DATA_FORMAT_R8G8_USCALED" value="17" enum="DataFormat">
1306 8-bit-per-channel unsigned floating-point red/green channel data format with scaled value (value is converted from integer to float). Values are in the [code][0.0, 255.0][/code] range.
1307 </constant>
1308 <constant name="DATA_FORMAT_R8G8_SSCALED" value="18" enum="DataFormat">
1309 8-bit-per-channel signed floating-point red/green channel data format with scaled value (value is converted from integer to float). Values are in the [code][-127.0, 127.0][/code] range.
1310 </constant>
1311 <constant name="DATA_FORMAT_R8G8_UINT" value="19" enum="DataFormat">
1312 8-bit-per-channel unsigned integer red/green channel data format. Values are in the [code][0, 255][/code] range.
1313 </constant>
1314 <constant name="DATA_FORMAT_R8G8_SINT" value="20" enum="DataFormat">
1315 8-bit-per-channel signed integer red/green channel data format. Values are in the [code][-127, 127][/code] range.
1316 </constant>
1317 <constant name="DATA_FORMAT_R8G8_SRGB" value="21" enum="DataFormat">
1318 8-bit-per-channel unsigned floating-point red/green channel data format with normalized value and nonlinear sRGB encoding. Values are in the [code][0.0, 1.0][/code] range.
1319 </constant>
1320 <constant name="DATA_FORMAT_R8G8B8_UNORM" value="22" enum="DataFormat">
1321 8-bit-per-channel unsigned floating-point red/green/blue channel data format with normalized value. Values are in the [code][0.0, 1.0][/code] range.
1322 </constant>
1323 <constant name="DATA_FORMAT_R8G8B8_SNORM" value="23" enum="DataFormat">
1324 8-bit-per-channel signed floating-point red/green/blue channel data format with normalized value. Values are in the [code][-1.0, 1.0][/code] range.
1325 </constant>
1326 <constant name="DATA_FORMAT_R8G8B8_USCALED" value="24" enum="DataFormat">
1327 8-bit-per-channel unsigned floating-point red/green/blue channel data format with scaled value (value is converted from integer to float). Values are in the [code][0.0, 255.0][/code] range.
1328 </constant>
1329 <constant name="DATA_FORMAT_R8G8B8_SSCALED" value="25" enum="DataFormat">
1330 8-bit-per-channel signed floating-point red/green/blue channel data format with scaled value (value is converted from integer to float). Values are in the [code][-127.0, 127.0][/code] range.
1331 </constant>
1332 <constant name="DATA_FORMAT_R8G8B8_UINT" value="26" enum="DataFormat">
1333 8-bit-per-channel unsigned integer red/green/blue channel data format. Values are in the [code][0, 255][/code] range.
1334 </constant>
1335 <constant name="DATA_FORMAT_R8G8B8_SINT" value="27" enum="DataFormat">
1336 8-bit-per-channel signed integer red/green/blue channel data format. Values are in the [code][-127, 127][/code] range.
1337 </constant>
1338 <constant name="DATA_FORMAT_R8G8B8_SRGB" value="28" enum="DataFormat">
1339 8-bit-per-channel unsigned floating-point red/green/blue channel data format with normalized value and nonlinear sRGB encoding. Values are in the [code][0.0, 1.0][/code] range.
1340 </constant>
1341 <constant name="DATA_FORMAT_B8G8R8_UNORM" value="29" enum="DataFormat">
1342 8-bit-per-channel unsigned floating-point blue/green/red channel data format with normalized value. Values are in the [code][0.0, 1.0][/code] range.
1343 </constant>
1344 <constant name="DATA_FORMAT_B8G8R8_SNORM" value="30" enum="DataFormat">
1345 8-bit-per-channel signed floating-point blue/green/red channel data format with normalized value. Values are in the [code][-1.0, 1.0][/code] range.
1346 </constant>
1347 <constant name="DATA_FORMAT_B8G8R8_USCALED" value="31" enum="DataFormat">
1348 8-bit-per-channel unsigned floating-point blue/green/red channel data format with scaled value (value is converted from integer to float). Values are in the [code][0.0, 255.0][/code] range.
1349 </constant>
1350 <constant name="DATA_FORMAT_B8G8R8_SSCALED" value="32" enum="DataFormat">
1351 8-bit-per-channel signed floating-point blue/green/red channel data format with scaled value (value is converted from integer to float). Values are in the [code][-127.0, 127.0][/code] range.
1352 </constant>
1353 <constant name="DATA_FORMAT_B8G8R8_UINT" value="33" enum="DataFormat">
1354 8-bit-per-channel unsigned integer blue/green/red channel data format. Values are in the [code][0, 255][/code] range.
1355 </constant>
1356 <constant name="DATA_FORMAT_B8G8R8_SINT" value="34" enum="DataFormat">
1357 8-bit-per-channel signed integer blue/green/red channel data format. Values are in the [code][-127, 127][/code] range.
1358 </constant>
1359 <constant name="DATA_FORMAT_B8G8R8_SRGB" value="35" enum="DataFormat">
1360 8-bit-per-channel unsigned floating-point blue/green/red data format with normalized value and nonlinear sRGB encoding. Values are in the [code][0.0, 1.0][/code] range.
1361 </constant>
1362 <constant name="DATA_FORMAT_R8G8B8A8_UNORM" value="36" enum="DataFormat">
1363 8-bit-per-channel unsigned floating-point red/green/blue/alpha channel data format with normalized value. Values are in the [code][0.0, 1.0][/code] range.
1364 </constant>
1365 <constant name="DATA_FORMAT_R8G8B8A8_SNORM" value="37" enum="DataFormat">
1366 8-bit-per-channel signed floating-point red/green/blue/alpha channel data format with normalized value. Values are in the [code][-1.0, 1.0][/code] range.
1367 </constant>
1368 <constant name="DATA_FORMAT_R8G8B8A8_USCALED" value="38" enum="DataFormat">
1369 8-bit-per-channel unsigned floating-point red/green/blue/alpha channel data format with scaled value (value is converted from integer to float). Values are in the [code][0.0, 255.0][/code] range.
1370 </constant>
1371 <constant name="DATA_FORMAT_R8G8B8A8_SSCALED" value="39" enum="DataFormat">
1372 8-bit-per-channel signed floating-point red/green/blue/alpha channel data format with scaled value (value is converted from integer to float). Values are in the [code][-127.0, 127.0][/code] range.
1373 </constant>
1374 <constant name="DATA_FORMAT_R8G8B8A8_UINT" value="40" enum="DataFormat">
1375 8-bit-per-channel unsigned integer red/green/blue/alpha channel data format. Values are in the [code][0, 255][/code] range.
1376 </constant>
1377 <constant name="DATA_FORMAT_R8G8B8A8_SINT" value="41" enum="DataFormat">
1378 8-bit-per-channel signed integer red/green/blue/alpha channel data format. Values are in the [code][-127, 127][/code] range.
1379 </constant>
1380 <constant name="DATA_FORMAT_R8G8B8A8_SRGB" value="42" enum="DataFormat">
1381 8-bit-per-channel unsigned floating-point red/green/blue/alpha channel data format with normalized value and nonlinear sRGB encoding. Values are in the [code][0.0, 1.0][/code] range.
1382 </constant>
1383 <constant name="DATA_FORMAT_B8G8R8A8_UNORM" value="43" enum="DataFormat">
1384 8-bit-per-channel unsigned floating-point blue/green/red/alpha channel data format with normalized value. Values are in the [code][0.0, 1.0][/code] range.
1385 </constant>
1386 <constant name="DATA_FORMAT_B8G8R8A8_SNORM" value="44" enum="DataFormat">
1387 8-bit-per-channel signed floating-point blue/green/red/alpha channel data format with normalized value. Values are in the [code][-1.0, 1.0][/code] range.
1388 </constant>
1389 <constant name="DATA_FORMAT_B8G8R8A8_USCALED" value="45" enum="DataFormat">
1390 8-bit-per-channel unsigned floating-point blue/green/red/alpha channel data format with scaled value (value is converted from integer to float). Values are in the [code][0.0, 255.0][/code] range.
1391 </constant>
1392 <constant name="DATA_FORMAT_B8G8R8A8_SSCALED" value="46" enum="DataFormat">
1393 8-bit-per-channel signed floating-point blue/green/red/alpha channel data format with scaled value (value is converted from integer to float). Values are in the [code][-127.0, 127.0][/code] range.
1394 </constant>
1395 <constant name="DATA_FORMAT_B8G8R8A8_UINT" value="47" enum="DataFormat">
1396 8-bit-per-channel unsigned integer blue/green/red/alpha channel data format. Values are in the [code][0, 255][/code] range.
1397 </constant>
1398 <constant name="DATA_FORMAT_B8G8R8A8_SINT" value="48" enum="DataFormat">
1399 8-bit-per-channel signed integer blue/green/red/alpha channel data format. Values are in the [code][-127, 127][/code] range.
1400 </constant>
1401 <constant name="DATA_FORMAT_B8G8R8A8_SRGB" value="49" enum="DataFormat">
1402 8-bit-per-channel unsigned floating-point blue/green/red/alpha channel data format with normalized value and nonlinear sRGB encoding. Values are in the [code][0.0, 1.0][/code] range.
1403 </constant>
1404 <constant name="DATA_FORMAT_A8B8G8R8_UNORM_PACK32" value="50" enum="DataFormat">
1405 8-bit-per-channel unsigned floating-point alpha/red/green/blue channel data format with normalized value, packed in 32 bits. Values are in the [code][0.0, 1.0][/code] range.
1406 </constant>
1407 <constant name="DATA_FORMAT_A8B8G8R8_SNORM_PACK32" value="51" enum="DataFormat">
1408 8-bit-per-channel signed floating-point alpha/red/green/blue channel data format with normalized value, packed in 32 bits. Values are in the [code][-1.0, 1.0][/code] range.
1409 </constant>
1410 <constant name="DATA_FORMAT_A8B8G8R8_USCALED_PACK32" value="52" enum="DataFormat">
1411 8-bit-per-channel unsigned floating-point alpha/red/green/blue channel data format with scaled value (value is converted from integer to float), packed in 32 bits. Values are in the [code][0.0, 255.0][/code] range.
1412 </constant>
1413 <constant name="DATA_FORMAT_A8B8G8R8_SSCALED_PACK32" value="53" enum="DataFormat">
1414 8-bit-per-channel signed floating-point alpha/red/green/blue channel data format with scaled value (value is converted from integer to float), packed in 32 bits. Values are in the [code][-127.0, 127.0][/code] range.
1415 </constant>
1416 <constant name="DATA_FORMAT_A8B8G8R8_UINT_PACK32" value="54" enum="DataFormat">
1417 8-bit-per-channel unsigned integer alpha/red/green/blue channel data format, packed in 32 bits. Values are in the [code][0, 255][/code] range.
1418 </constant>
1419 <constant name="DATA_FORMAT_A8B8G8R8_SINT_PACK32" value="55" enum="DataFormat">
1420 8-bit-per-channel signed integer alpha/red/green/blue channel data format, packed in 32 bits. Values are in the [code][-127, 127][/code] range.
1421 </constant>
1422 <constant name="DATA_FORMAT_A8B8G8R8_SRGB_PACK32" value="56" enum="DataFormat">
1423 8-bit-per-channel unsigned floating-point alpha/red/green/blue channel data format with normalized value and nonlinear sRGB encoding, packed in 32 bits. Values are in the [code][0.0, 1.0][/code] range.
1424 </constant>
1425 <constant name="DATA_FORMAT_A2R10G10B10_UNORM_PACK32" value="57" enum="DataFormat">
1426 Unsigned floating-point alpha/red/green/blue channel data format with normalized value, packed in 32 bits. Format contains 2 bits of alpha, 10 bits of red, 10 bits of green and 10 bits of blue. Values are in the [code][0.0, 1.0][/code] range.
1427 </constant>
1428 <constant name="DATA_FORMAT_A2R10G10B10_SNORM_PACK32" value="58" enum="DataFormat">
1429 Signed floating-point alpha/red/green/blue channel data format with normalized value, packed in 32 bits. Format contains 2 bits of alpha, 10 bits of red, 10 bits of green and 10 bits of blue. Values are in the [code][-1.0, 1.0][/code] range.
1430 </constant>
1431 <constant name="DATA_FORMAT_A2R10G10B10_USCALED_PACK32" value="59" enum="DataFormat">
1432 Unsigned floating-point alpha/red/green/blue channel data format with normalized value, packed in 32 bits. Format contains 2 bits of alpha, 10 bits of red, 10 bits of green and 10 bits of blue. Values are in the [code][0.0, 1023.0][/code] range for red/green/blue and [code][0.0, 3.0][/code] for alpha.
1433 </constant>
1434 <constant name="DATA_FORMAT_A2R10G10B10_SSCALED_PACK32" value="60" enum="DataFormat">
1435 Signed floating-point alpha/red/green/blue channel data format with normalized value, packed in 32 bits. Format contains 2 bits of alpha, 10 bits of red, 10 bits of green and 10 bits of blue. Values are in the [code][-511.0, 511.0][/code] range for red/green/blue and [code][-1.0, 1.0][/code] for alpha.
1436 </constant>
1437 <constant name="DATA_FORMAT_A2R10G10B10_UINT_PACK32" value="61" enum="DataFormat">
1438 Unsigned integer alpha/red/green/blue channel data format with normalized value, packed in 32 bits. Format contains 2 bits of alpha, 10 bits of red, 10 bits of green and 10 bits of blue. Values are in the [code][0, 1023][/code] range for red/green/blue and [code][0, 3][/code] for alpha.
1439 </constant>
1440 <constant name="DATA_FORMAT_A2R10G10B10_SINT_PACK32" value="62" enum="DataFormat">
1441 Signed integer alpha/red/green/blue channel data format with normalized value, packed in 32 bits. Format contains 2 bits of alpha, 10 bits of red, 10 bits of green and 10 bits of blue. Values are in the [code][-511, 511][/code] range for red/green/blue and [code][-1, 1][/code] for alpha.
1442 </constant>
1443 <constant name="DATA_FORMAT_A2B10G10R10_UNORM_PACK32" value="63" enum="DataFormat">
1444 Unsigned floating-point alpha/blue/green/red channel data format with normalized value, packed in 32 bits. Format contains 2 bits of alpha, 10 bits of blue, 10 bits of green and 10 bits of red. Values are in the [code][0.0, 1.0][/code] range.
1445 </constant>
1446 <constant name="DATA_FORMAT_A2B10G10R10_SNORM_PACK32" value="64" enum="DataFormat">
1447 Signed floating-point alpha/blue/green/red channel data format with normalized value, packed in 32 bits. Format contains 2 bits of alpha, 10 bits of blue, 10 bits of green and 10 bits of red. Values are in the [code][-1.0, 1.0][/code] range.
1448 </constant>
1449 <constant name="DATA_FORMAT_A2B10G10R10_USCALED_PACK32" value="65" enum="DataFormat">
1450 Unsigned floating-point alpha/blue/green/red channel data format with normalized value, packed in 32 bits. Format contains 2 bits of alpha, 10 bits of blue, 10 bits of green and 10 bits of red. Values are in the [code][0.0, 1023.0][/code] range for blue/green/red and [code][0.0, 3.0][/code] for alpha.
1451 </constant>
1452 <constant name="DATA_FORMAT_A2B10G10R10_SSCALED_PACK32" value="66" enum="DataFormat">
1453 Signed floating-point alpha/blue/green/red channel data format with normalized value, packed in 32 bits. Format contains 2 bits of alpha, 10 bits of blue, 10 bits of green and 10 bits of red. Values are in the [code][-511.0, 511.0][/code] range for blue/green/red and [code][-1.0, 1.0][/code] for alpha.
1454 </constant>
1455 <constant name="DATA_FORMAT_A2B10G10R10_UINT_PACK32" value="67" enum="DataFormat">
1456 Unsigned integer alpha/blue/green/red channel data format with normalized value, packed in 32 bits. Format contains 2 bits of alpha, 10 bits of blue, 10 bits of green and 10 bits of red. Values are in the [code][0, 1023][/code] range for blue/green/red and [code][0, 3][/code] for alpha.
1457 </constant>
1458 <constant name="DATA_FORMAT_A2B10G10R10_SINT_PACK32" value="68" enum="DataFormat">
1459 Signed integer alpha/blue/green/red channel data format with normalized value, packed in 32 bits. Format contains 2 bits of alpha, 10 bits of blue, 10 bits of green and 10 bits of red. Values are in the [code][-511, 511][/code] range for blue/green/red and [code][-1, 1][/code] for alpha.
1460 </constant>
1461 <constant name="DATA_FORMAT_R16_UNORM" value="69" enum="DataFormat">
1462 16-bit-per-channel unsigned floating-point red channel data format with normalized value. Values are in the [code][0.0, 1.0][/code] range.
1463 </constant>
1464 <constant name="DATA_FORMAT_R16_SNORM" value="70" enum="DataFormat">
1465 16-bit-per-channel signed floating-point red channel data format with normalized value. Values are in the [code][-1.0, 1.0][/code] range.
1466 </constant>
1467 <constant name="DATA_FORMAT_R16_USCALED" value="71" enum="DataFormat">
1468 16-bit-per-channel unsigned floating-point red channel data format with scaled value (value is converted from integer to float). Values are in the [code][0.0, 65535.0][/code] range.
1469 </constant>
1470 <constant name="DATA_FORMAT_R16_SSCALED" value="72" enum="DataFormat">
1471 16-bit-per-channel signed floating-point red channel data format with scaled value (value is converted from integer to float). Values are in the [code][-32767.0, 32767.0][/code] range.
1472 </constant>
1473 <constant name="DATA_FORMAT_R16_UINT" value="73" enum="DataFormat">
1474 16-bit-per-channel unsigned integer red channel data format. Values are in the [code][0.0, 65535][/code] range.
1475 </constant>
1476 <constant name="DATA_FORMAT_R16_SINT" value="74" enum="DataFormat">
1477 16-bit-per-channel signed integer red channel data format. Values are in the [code][-32767, 32767][/code] range.
1478 </constant>
1479 <constant name="DATA_FORMAT_R16_SFLOAT" value="75" enum="DataFormat">
1480 16-bit-per-channel signed floating-point red channel data format with the value stored as-is.
1481 </constant>
1482 <constant name="DATA_FORMAT_R16G16_UNORM" value="76" enum="DataFormat">
1483 16-bit-per-channel unsigned floating-point red/green channel data format with normalized value. Values are in the [code][0.0, 1.0][/code] range.
1484 </constant>
1485 <constant name="DATA_FORMAT_R16G16_SNORM" value="77" enum="DataFormat">
1486 16-bit-per-channel signed floating-point red/green channel data format with normalized value. Values are in the [code][-1.0, 1.0][/code] range.
1487 </constant>
1488 <constant name="DATA_FORMAT_R16G16_USCALED" value="78" enum="DataFormat">
1489 16-bit-per-channel unsigned floating-point red/green channel data format with scaled value (value is converted from integer to float). Values are in the [code][0.0, 65535.0][/code] range.
1490 </constant>
1491 <constant name="DATA_FORMAT_R16G16_SSCALED" value="79" enum="DataFormat">
1492 16-bit-per-channel signed floating-point red/green channel data format with scaled value (value is converted from integer to float). Values are in the [code][-32767.0, 32767.0][/code] range.
1493 </constant>
1494 <constant name="DATA_FORMAT_R16G16_UINT" value="80" enum="DataFormat">
1495 16-bit-per-channel unsigned integer red/green channel data format. Values are in the [code][0.0, 65535][/code] range.
1496 </constant>
1497 <constant name="DATA_FORMAT_R16G16_SINT" value="81" enum="DataFormat">
1498 16-bit-per-channel signed integer red/green channel data format. Values are in the [code][-32767, 32767][/code] range.
1499 </constant>
1500 <constant name="DATA_FORMAT_R16G16_SFLOAT" value="82" enum="DataFormat">
1501 16-bit-per-channel signed floating-point red/green channel data format with the value stored as-is.
1502 </constant>
1503 <constant name="DATA_FORMAT_R16G16B16_UNORM" value="83" enum="DataFormat">
1504 16-bit-per-channel unsigned floating-point red/green/blue channel data format with normalized value. Values are in the [code][0.0, 1.0][/code] range.
1505 </constant>
1506 <constant name="DATA_FORMAT_R16G16B16_SNORM" value="84" enum="DataFormat">
1507 16-bit-per-channel signed floating-point red/green/blue channel data format with normalized value. Values are in the [code][-1.0, 1.0][/code] range.
1508 </constant>
1509 <constant name="DATA_FORMAT_R16G16B16_USCALED" value="85" enum="DataFormat">
1510 16-bit-per-channel unsigned floating-point red/green/blue channel data format with scaled value (value is converted from integer to float). Values are in the [code][0.0, 65535.0][/code] range.
1511 </constant>
1512 <constant name="DATA_FORMAT_R16G16B16_SSCALED" value="86" enum="DataFormat">
1513 16-bit-per-channel signed floating-point red/green/blue channel data format with scaled value (value is converted from integer to float). Values are in the [code][-32767.0, 32767.0][/code] range.
1514 </constant>
1515 <constant name="DATA_FORMAT_R16G16B16_UINT" value="87" enum="DataFormat">
1516 16-bit-per-channel unsigned integer red/green/blue channel data format. Values are in the [code][0.0, 65535][/code] range.
1517 </constant>
1518 <constant name="DATA_FORMAT_R16G16B16_SINT" value="88" enum="DataFormat">
1519 16-bit-per-channel signed integer red/green/blue channel data format. Values are in the [code][-32767, 32767][/code] range.
1520 </constant>
1521 <constant name="DATA_FORMAT_R16G16B16_SFLOAT" value="89" enum="DataFormat">
1522 16-bit-per-channel signed floating-point red/green/blue channel data format with the value stored as-is.
1523 </constant>
1524 <constant name="DATA_FORMAT_R16G16B16A16_UNORM" value="90" enum="DataFormat">
1525 16-bit-per-channel unsigned floating-point red/green/blue/alpha channel data format with normalized value. Values are in the [code][0.0, 1.0][/code] range.
1526 </constant>
1527 <constant name="DATA_FORMAT_R16G16B16A16_SNORM" value="91" enum="DataFormat">
1528 16-bit-per-channel signed floating-point red/green/blue/alpha channel data format with normalized value. Values are in the [code][-1.0, 1.0][/code] range.
1529 </constant>
1530 <constant name="DATA_FORMAT_R16G16B16A16_USCALED" value="92" enum="DataFormat">
1531 16-bit-per-channel unsigned floating-point red/green/blue/alpha channel data format with scaled value (value is converted from integer to float). Values are in the [code][0.0, 65535.0][/code] range.
1532 </constant>
1533 <constant name="DATA_FORMAT_R16G16B16A16_SSCALED" value="93" enum="DataFormat">
1534 16-bit-per-channel signed floating-point red/green/blue/alpha channel data format with scaled value (value is converted from integer to float). Values are in the [code][-32767.0, 32767.0][/code] range.
1535 </constant>
1536 <constant name="DATA_FORMAT_R16G16B16A16_UINT" value="94" enum="DataFormat">
1537 16-bit-per-channel unsigned integer red/green/blue/alpha channel data format. Values are in the [code][0.0, 65535][/code] range.
1538 </constant>
1539 <constant name="DATA_FORMAT_R16G16B16A16_SINT" value="95" enum="DataFormat">
1540 16-bit-per-channel signed integer red/green/blue/alpha channel data format. Values are in the [code][-32767, 32767][/code] range.
1541 </constant>
1542 <constant name="DATA_FORMAT_R16G16B16A16_SFLOAT" value="96" enum="DataFormat">
1543 16-bit-per-channel signed floating-point red/green/blue/alpha channel data format with the value stored as-is.
1544 </constant>
1545 <constant name="DATA_FORMAT_R32_UINT" value="97" enum="DataFormat">
1546 32-bit-per-channel unsigned integer red channel data format. Values are in the [code][0, 2^32 - 1][/code] range.
1547 </constant>
1548 <constant name="DATA_FORMAT_R32_SINT" value="98" enum="DataFormat">
1549 32-bit-per-channel signed integer red channel data format. Values are in the [code][2^31 + 1, 2^31 - 1][/code] range.
1550 </constant>
1551 <constant name="DATA_FORMAT_R32_SFLOAT" value="99" enum="DataFormat">
1552 32-bit-per-channel signed floating-point red channel data format with the value stored as-is.
1553 </constant>
1554 <constant name="DATA_FORMAT_R32G32_UINT" value="100" enum="DataFormat">
1555 32-bit-per-channel unsigned integer red/green channel data format. Values are in the [code][0, 2^32 - 1][/code] range.
1556 </constant>
1557 <constant name="DATA_FORMAT_R32G32_SINT" value="101" enum="DataFormat">
1558 32-bit-per-channel signed integer red/green channel data format. Values are in the [code][2^31 + 1, 2^31 - 1][/code] range.
1559 </constant>
1560 <constant name="DATA_FORMAT_R32G32_SFLOAT" value="102" enum="DataFormat">
1561 32-bit-per-channel signed floating-point red/green channel data format with the value stored as-is.
1562 </constant>
1563 <constant name="DATA_FORMAT_R32G32B32_UINT" value="103" enum="DataFormat">
1564 32-bit-per-channel unsigned integer red/green/blue channel data format. Values are in the [code][0, 2^32 - 1][/code] range.
1565 </constant>
1566 <constant name="DATA_FORMAT_R32G32B32_SINT" value="104" enum="DataFormat">
1567 32-bit-per-channel signed integer red/green/blue channel data format. Values are in the [code][2^31 + 1, 2^31 - 1][/code] range.
1568 </constant>
1569 <constant name="DATA_FORMAT_R32G32B32_SFLOAT" value="105" enum="DataFormat">
1570 32-bit-per-channel signed floating-point red/green/blue channel data format with the value stored as-is.
1571 </constant>
1572 <constant name="DATA_FORMAT_R32G32B32A32_UINT" value="106" enum="DataFormat">
1573 32-bit-per-channel unsigned integer red/green/blue/alpha channel data format. Values are in the [code][0, 2^32 - 1][/code] range.
1574 </constant>
1575 <constant name="DATA_FORMAT_R32G32B32A32_SINT" value="107" enum="DataFormat">
1576 32-bit-per-channel signed integer red/green/blue/alpha channel data format. Values are in the [code][2^31 + 1, 2^31 - 1][/code] range.
1577 </constant>
1578 <constant name="DATA_FORMAT_R32G32B32A32_SFLOAT" value="108" enum="DataFormat">
1579 32-bit-per-channel signed floating-point red/green/blue/alpha channel data format with the value stored as-is.
1580 </constant>
1581 <constant name="DATA_FORMAT_R64_UINT" value="109" enum="DataFormat">
1582 64-bit-per-channel unsigned integer red channel data format. Values are in the [code][0, 2^64 - 1][/code] range.
1583 </constant>
1584 <constant name="DATA_FORMAT_R64_SINT" value="110" enum="DataFormat">
1585 64-bit-per-channel signed integer red channel data format. Values are in the [code][2^63 + 1, 2^63 - 1][/code] range.
1586 </constant>
1587 <constant name="DATA_FORMAT_R64_SFLOAT" value="111" enum="DataFormat">
1588 64-bit-per-channel signed floating-point red channel data format with the value stored as-is.
1589 </constant>
1590 <constant name="DATA_FORMAT_R64G64_UINT" value="112" enum="DataFormat">
1591 64-bit-per-channel unsigned integer red/green channel data format. Values are in the [code][0, 2^64 - 1][/code] range.
1592 </constant>
1593 <constant name="DATA_FORMAT_R64G64_SINT" value="113" enum="DataFormat">
1594 64-bit-per-channel signed integer red/green channel data format. Values are in the [code][2^63 + 1, 2^63 - 1][/code] range.
1595 </constant>
1596 <constant name="DATA_FORMAT_R64G64_SFLOAT" value="114" enum="DataFormat">
1597 64-bit-per-channel signed floating-point red/green channel data format with the value stored as-is.
1598 </constant>
1599 <constant name="DATA_FORMAT_R64G64B64_UINT" value="115" enum="DataFormat">
1600 64-bit-per-channel unsigned integer red/green/blue channel data format. Values are in the [code][0, 2^64 - 1][/code] range.
1601 </constant>
1602 <constant name="DATA_FORMAT_R64G64B64_SINT" value="116" enum="DataFormat">
1603 64-bit-per-channel signed integer red/green/blue channel data format. Values are in the [code][2^63 + 1, 2^63 - 1][/code] range.
1604 </constant>
1605 <constant name="DATA_FORMAT_R64G64B64_SFLOAT" value="117" enum="DataFormat">
1606 64-bit-per-channel signed floating-point red/green/blue channel data format with the value stored as-is.
1607 </constant>
1608 <constant name="DATA_FORMAT_R64G64B64A64_UINT" value="118" enum="DataFormat">
1609 64-bit-per-channel unsigned integer red/green/blue/alpha channel data format. Values are in the [code][0, 2^64 - 1][/code] range.
1610 </constant>
1611 <constant name="DATA_FORMAT_R64G64B64A64_SINT" value="119" enum="DataFormat">
1612 64-bit-per-channel signed integer red/green/blue/alpha channel data format. Values are in the [code][2^63 + 1, 2^63 - 1][/code] range.
1613 </constant>
1614 <constant name="DATA_FORMAT_R64G64B64A64_SFLOAT" value="120" enum="DataFormat">
1615 64-bit-per-channel signed floating-point red/green/blue/alpha channel data format with the value stored as-is.
1616 </constant>
1617 <constant name="DATA_FORMAT_B10G11R11_UFLOAT_PACK32" value="121" enum="DataFormat">
1618 Unsigned floating-point blue/green/red data format with the value stored as-is, packed in 32 bits. The format's precision is 10 bits of blue channel, 11 bits of green channel and 11 bits of red channel.
1619 </constant>
1620 <constant name="DATA_FORMAT_E5B9G9R9_UFLOAT_PACK32" value="122" enum="DataFormat">
1621 Unsigned floating-point exposure/blue/green/red data format with the value stored as-is, packed in 32 bits. The format's precision is 5 bits of exposure, 9 bits of blue channel, 9 bits of green channel and 9 bits of red channel.
1622 </constant>
1623 <constant name="DATA_FORMAT_D16_UNORM" value="123" enum="DataFormat">
1624 16-bit unsigned floating-point depth data format with normalized value. Values are in the [code][0.0, 1.0][/code] range.
1625 </constant>
1626 <constant name="DATA_FORMAT_X8_D24_UNORM_PACK32" value="124" enum="DataFormat">
1627 24-bit unsigned floating-point depth data format with normalized value, plus 8 unused bits, packed in 32 bits. Values for depth are in the [code][0.0, 1.0][/code] range.
1628 </constant>
1629 <constant name="DATA_FORMAT_D32_SFLOAT" value="125" enum="DataFormat">
1630 32-bit signed floating-point depth data format with the value stored as-is.
1631 </constant>
1632 <constant name="DATA_FORMAT_S8_UINT" value="126" enum="DataFormat">
1633 8-bit unsigned integer stencil data format.
1634 </constant>
1635 <constant name="DATA_FORMAT_D16_UNORM_S8_UINT" value="127" enum="DataFormat">
1636 16-bit unsigned floating-point depth data format with normalized value, plus 8 bits of stencil in unsigned integer format. Values for depth are in the [code][0.0, 1.0][/code] range. Values for stencil are in the [code][0, 255][/code] range.
1637 </constant>
1638 <constant name="DATA_FORMAT_D24_UNORM_S8_UINT" value="128" enum="DataFormat">
1639 24-bit unsigned floating-point depth data format with normalized value, plus 8 bits of stencil in unsigned integer format. Values for depth are in the [code][0.0, 1.0][/code] range. Values for stencil are in the [code][0, 255][/code] range.
1640 </constant>
1641 <constant name="DATA_FORMAT_D32_SFLOAT_S8_UINT" value="129" enum="DataFormat">
1642 32-bit signed floating-point depth data format with the value stored as-is, plus 8 bits of stencil in unsigned integer format. Values for stencil are in the [code][0, 255][/code] range.
1643 </constant>
1644 <constant name="DATA_FORMAT_BC1_RGB_UNORM_BLOCK" value="130" enum="DataFormat">
1645 VRAM-compressed unsigned red/green/blue channel data format with normalized value. Values are in the [code][0.0, 1.0][/code] range. The format's precision is 5 bits of red channel, 6 bits of green channel and 5 bits of blue channel. Using BC1 texture compression (also known as S3TC DXT1).
1646 </constant>
1647 <constant name="DATA_FORMAT_BC1_RGB_SRGB_BLOCK" value="131" enum="DataFormat">
1648 VRAM-compressed unsigned red/green/blue channel data format with normalized value and nonlinear sRGB encoding. Values are in the [code][0.0, 1.0][/code] range. The format's precision is 5 bits of red channel, 6 bits of green channel, and 5 bits of blue channel. Using BC1 texture compression (also known as S3TC DXT1).
1649 </constant>
1650 <constant name="DATA_FORMAT_BC1_RGBA_UNORM_BLOCK" value="132" enum="DataFormat">
1651 VRAM-compressed unsigned red/green/blue/alpha channel data format with normalized value. Values are in the [code][0.0, 1.0][/code] range. The format's precision is 5 bits of red channel, 6 bits of green channel, 5 bits of blue channel and 1 bit of alpha channel. Using BC1 texture compression (also known as S3TC DXT1).
1652 </constant>
1653 <constant name="DATA_FORMAT_BC1_RGBA_SRGB_BLOCK" value="133" enum="DataFormat">
1654 VRAM-compressed unsigned red/green/blue/alpha channel data format with normalized value and nonlinear sRGB encoding. Values are in the [code][0.0, 1.0][/code] range. The format's precision is 5 bits of red channel, 6 bits of green channel, 5 bits of blue channel, and 1 bit of alpha channel. Using BC1 texture compression (also known as S3TC DXT1).
1655 </constant>
1656 <constant name="DATA_FORMAT_BC2_UNORM_BLOCK" value="134" enum="DataFormat">
1657 VRAM-compressed unsigned red/green/blue/alpha channel data format with normalized value. Values are in the [code][0.0, 1.0][/code] range. The format's precision is 5 bits of red channel, 6 bits of green channel, 5 bits of blue channel and 4 bits of alpha channel. Using BC2 texture compression (also known as S3TC DXT3).
1658 </constant>
1659 <constant name="DATA_FORMAT_BC2_SRGB_BLOCK" value="135" enum="DataFormat">
1660 VRAM-compressed unsigned red/green/blue/alpha channel data format with normalized value and nonlinear sRGB encoding. Values are in the [code][0.0, 1.0][/code] range. The format's precision is 5 bits of red channel, 6 bits of green channel, 5 bits of blue channel, and 4 bits of alpha channel. Using BC2 texture compression (also known as S3TC DXT3).
1661 </constant>
1662 <constant name="DATA_FORMAT_BC3_UNORM_BLOCK" value="136" enum="DataFormat">
1663 VRAM-compressed unsigned red/green/blue/alpha channel data format with normalized value. Values are in the [code][0.0, 1.0][/code] range. The format's precision is 5 bits of red channel, 6 bits of green channel, 5 bits of blue channel and 8 bits of alpha channel. Using BC3 texture compression (also known as S3TC DXT5).
1664 </constant>
1665 <constant name="DATA_FORMAT_BC3_SRGB_BLOCK" value="137" enum="DataFormat">
1666 VRAM-compressed unsigned red/green/blue/alpha channel data format with normalized value and nonlinear sRGB encoding. Values are in the [code][0.0, 1.0][/code] range. The format's precision is 5 bits of red channel, 6 bits of green channel, 5 bits of blue channel, and 8 bits of alpha channel. Using BC3 texture compression (also known as S3TC DXT5).
1667 </constant>
1668 <constant name="DATA_FORMAT_BC4_UNORM_BLOCK" value="138" enum="DataFormat">
1669 VRAM-compressed unsigned red channel data format with normalized value. Values are in the [code][0.0, 1.0][/code] range. The format's precision is 8 bits of red channel. Using BC4 texture compression.
1670 </constant>
1671 <constant name="DATA_FORMAT_BC4_SNORM_BLOCK" value="139" enum="DataFormat">
1672 VRAM-compressed signed red channel data format with normalized value. Values are in the [code][-1.0, 1.0][/code] range. The format's precision is 8 bits of red channel. Using BC4 texture compression.
1673 </constant>
1674 <constant name="DATA_FORMAT_BC5_UNORM_BLOCK" value="140" enum="DataFormat">
1675 VRAM-compressed unsigned red/green channel data format with normalized value. Values are in the [code][0.0, 1.0][/code] range. The format's precision is 8 bits of red channel and 8 bits of green channel. Using BC5 texture compression (also known as S3TC RGTC).
1676 </constant>
1677 <constant name="DATA_FORMAT_BC5_SNORM_BLOCK" value="141" enum="DataFormat">
1678 VRAM-compressed signed red/green channel data format with normalized value. Values are in the [code][-1.0, 1.0][/code] range. The format's precision is 8 bits of red channel and 8 bits of green channel. Using BC5 texture compression (also known as S3TC RGTC).
1679 </constant>
1680 <constant name="DATA_FORMAT_BC6H_UFLOAT_BLOCK" value="142" enum="DataFormat">
1681 VRAM-compressed unsigned red/green/blue channel data format with the floating-point value stored as-is. The format's precision is between 10 and 13 bits for the red/green/blue channels. Using BC6H texture compression (also known as BPTC HDR).
1682 </constant>
1683 <constant name="DATA_FORMAT_BC6H_SFLOAT_BLOCK" value="143" enum="DataFormat">
1684 VRAM-compressed signed red/green/blue channel data format with the floating-point value stored as-is. The format's precision is between 10 and 13 bits for the red/green/blue channels. Using BC6H texture compression (also known as BPTC HDR).
1685 </constant>
1686 <constant name="DATA_FORMAT_BC7_UNORM_BLOCK" value="144" enum="DataFormat">
1687 VRAM-compressed unsigned red/green/blue/alpha channel data format with normalized value. Values are in the [code][0.0, 1.0][/code] range. The format's precision is between 4 and 7 bits for the red/green/blue channels and between 0 and 8 bits for the alpha channel. Also known as BPTC LDR.
1688 </constant>
1689 <constant name="DATA_FORMAT_BC7_SRGB_BLOCK" value="145" enum="DataFormat">
1690 VRAM-compressed unsigned red/green/blue/alpha channel data format with normalized value and nonlinear sRGB encoding. Values are in the [code][0.0, 1.0][/code] range. The format's precision is between 4 and 7 bits for the red/green/blue channels and between 0 and 8 bits for the alpha channel. Also known as BPTC LDR.
1691 </constant>
1692 <constant name="DATA_FORMAT_ETC2_R8G8B8_UNORM_BLOCK" value="146" enum="DataFormat">
1693 VRAM-compressed unsigned red/green/blue channel data format with normalized value. Values are in the [code][0.0, 1.0][/code] range. Using ETC2 texture compression.
1694 </constant>
1695 <constant name="DATA_FORMAT_ETC2_R8G8B8_SRGB_BLOCK" value="147" enum="DataFormat">
1696 VRAM-compressed unsigned red/green/blue channel data format with normalized value and nonlinear sRGB encoding. Values are in the [code][0.0, 1.0][/code] range. Using ETC2 texture compression.
1697 </constant>
1698 <constant name="DATA_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK" value="148" enum="DataFormat">
1699 VRAM-compressed unsigned red/green/blue/alpha channel data format with normalized value. Values are in the [code][0.0, 1.0][/code] range. Red/green/blue use 8 bit of precision each, with alpha using 1 bit of precision. Using ETC2 texture compression.
1700 </constant>
1701 <constant name="DATA_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK" value="149" enum="DataFormat">
1702 VRAM-compressed unsigned red/green/blue/alpha channel data format with normalized value and nonlinear sRGB encoding. Values are in the [code][0.0, 1.0][/code] range. Red/green/blue use 8 bit of precision each, with alpha using 1 bit of precision. Using ETC2 texture compression.
1703 </constant>
1704 <constant name="DATA_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK" value="150" enum="DataFormat">
1705 VRAM-compressed unsigned red/green/blue/alpha channel data format with normalized value. Values are in the [code][0.0, 1.0][/code] range. Red/green/blue use 8 bits of precision each, with alpha using 8 bits of precision. Using ETC2 texture compression.
1706 </constant>
1707 <constant name="DATA_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK" value="151" enum="DataFormat">
1708 VRAM-compressed unsigned red/green/blue/alpha channel data format with normalized value and nonlinear sRGB encoding. Values are in the [code][0.0, 1.0][/code] range. Red/green/blue use 8 bits of precision each, with alpha using 8 bits of precision. Using ETC2 texture compression.
1709 </constant>
1710 <constant name="DATA_FORMAT_EAC_R11_UNORM_BLOCK" value="152" enum="DataFormat">
1711 11-bit VRAM-compressed unsigned red channel data format with normalized value. Values are in the [code][0.0, 1.0][/code] range. Using ETC2 texture compression.
1712 </constant>
1713 <constant name="DATA_FORMAT_EAC_R11_SNORM_BLOCK" value="153" enum="DataFormat">
1714 11-bit VRAM-compressed signed red channel data format with normalized value. Values are in the [code][-1.0, 1.0][/code] range. Using ETC2 texture compression.
1715 </constant>
1716 <constant name="DATA_FORMAT_EAC_R11G11_UNORM_BLOCK" value="154" enum="DataFormat">
1717 11-bit VRAM-compressed unsigned red/green channel data format with normalized value. Values are in the [code][0.0, 1.0][/code] range. Using ETC2 texture compression.
1718 </constant>
1719 <constant name="DATA_FORMAT_EAC_R11G11_SNORM_BLOCK" value="155" enum="DataFormat">
1720 11-bit VRAM-compressed signed red/green channel data format with normalized value. Values are in the [code][-1.0, 1.0][/code] range. Using ETC2 texture compression.
1721 </constant>
1722 <constant name="DATA_FORMAT_ASTC_4x4_UNORM_BLOCK" value="156" enum="DataFormat">
1723 VRAM-compressed unsigned floating-point data format with normalized value, packed in 4×4 blocks (highest quality). Values are in the [code][0.0, 1.0][/code] range. Using ASTC compression.
1724 </constant>
1725 <constant name="DATA_FORMAT_ASTC_4x4_SRGB_BLOCK" value="157" enum="DataFormat">
1726 VRAM-compressed unsigned floating-point data format with normalized value and nonlinear sRGB encoding, packed in 4×4 blocks (highest quality). Values are in the [code][0.0, 1.0][/code] range. Using ASTC compression.
1727 </constant>
1728 <constant name="DATA_FORMAT_ASTC_5x4_UNORM_BLOCK" value="158" enum="DataFormat">
1729 VRAM-compressed unsigned floating-point data format with normalized value, packed in 5×4 blocks. Values are in the [code][0.0, 1.0][/code] range. Using ASTC compression.
1730 </constant>
1731 <constant name="DATA_FORMAT_ASTC_5x4_SRGB_BLOCK" value="159" enum="DataFormat">
1732 VRAM-compressed unsigned floating-point data format with normalized value and nonlinear sRGB encoding, packed in 5×4 blocks. Values are in the [code][0.0, 1.0][/code] range. Using ASTC compression.
1733 </constant>
1734 <constant name="DATA_FORMAT_ASTC_5x5_UNORM_BLOCK" value="160" enum="DataFormat">
1735 VRAM-compressed unsigned floating-point data format with normalized value, packed in 5×5 blocks. Values are in the [code][0.0, 1.0][/code] range. Using ASTC compression.
1736 </constant>
1737 <constant name="DATA_FORMAT_ASTC_5x5_SRGB_BLOCK" value="161" enum="DataFormat">
1738 VRAM-compressed unsigned floating-point data format with normalized value and nonlinear sRGB encoding, packed in 5×5 blocks. Values are in the [code][0.0, 1.0][/code] range. Using ASTC compression.
1739 </constant>
1740 <constant name="DATA_FORMAT_ASTC_6x5_UNORM_BLOCK" value="162" enum="DataFormat">
1741 VRAM-compressed unsigned floating-point data format with normalized value, packed in 6×5 blocks. Values are in the [code][0.0, 1.0][/code] range. Using ASTC compression.
1742 </constant>
1743 <constant name="DATA_FORMAT_ASTC_6x5_SRGB_BLOCK" value="163" enum="DataFormat">
1744 VRAM-compressed unsigned floating-point data format with normalized value and nonlinear sRGB encoding, packed in 6×5 blocks. Values are in the [code][0.0, 1.0][/code] range. Using ASTC compression.
1745 </constant>
1746 <constant name="DATA_FORMAT_ASTC_6x6_UNORM_BLOCK" value="164" enum="DataFormat">
1747 VRAM-compressed unsigned floating-point data format with normalized value, packed in 6×6 blocks. Values are in the [code][0.0, 1.0][/code] range. Using ASTC compression.
1748 </constant>
1749 <constant name="DATA_FORMAT_ASTC_6x6_SRGB_BLOCK" value="165" enum="DataFormat">
1750 VRAM-compressed unsigned floating-point data format with normalized value and nonlinear sRGB encoding, packed in 6×6 blocks. Values are in the [code][0.0, 1.0][/code] range. Using ASTC compression.
1751 </constant>
1752 <constant name="DATA_FORMAT_ASTC_8x5_UNORM_BLOCK" value="166" enum="DataFormat">
1753 VRAM-compressed unsigned floating-point data format with normalized value, packed in 8×5 blocks. Values are in the [code][0.0, 1.0][/code] range. Using ASTC compression.
1754 </constant>
1755 <constant name="DATA_FORMAT_ASTC_8x5_SRGB_BLOCK" value="167" enum="DataFormat">
1756 VRAM-compressed unsigned floating-point data format with normalized value and nonlinear sRGB encoding, packed in 8×5 blocks. Values are in the [code][0.0, 1.0][/code] range. Using ASTC compression.
1757 </constant>
1758 <constant name="DATA_FORMAT_ASTC_8x6_UNORM_BLOCK" value="168" enum="DataFormat">
1759 VRAM-compressed unsigned floating-point data format with normalized value, packed in 8×6 blocks. Values are in the [code][0.0, 1.0][/code] range. Using ASTC compression.
1760 </constant>
1761 <constant name="DATA_FORMAT_ASTC_8x6_SRGB_BLOCK" value="169" enum="DataFormat">
1762 VRAM-compressed unsigned floating-point data format with normalized value and nonlinear sRGB encoding, packed in 8×6 blocks. Values are in the [code][0.0, 1.0][/code] range. Using ASTC compression.
1763 </constant>
1764 <constant name="DATA_FORMAT_ASTC_8x8_UNORM_BLOCK" value="170" enum="DataFormat">
1765 VRAM-compressed unsigned floating-point data format with normalized value, packed in 8×8 blocks. Values are in the [code][0.0, 1.0][/code] range. Using ASTC compression.
1766 </constant>
1767 <constant name="DATA_FORMAT_ASTC_8x8_SRGB_BLOCK" value="171" enum="DataFormat">
1768 VRAM-compressed unsigned floating-point data format with normalized value and nonlinear sRGB encoding, packed in 8×8 blocks. Values are in the [code][0.0, 1.0][/code] range. Using ASTC compression.
1769 </constant>
1770 <constant name="DATA_FORMAT_ASTC_10x5_UNORM_BLOCK" value="172" enum="DataFormat">
1771 VRAM-compressed unsigned floating-point data format with normalized value, packed in 10×5 blocks. Values are in the [code][0.0, 1.0][/code] range. Using ASTC compression.
1772 </constant>
1773 <constant name="DATA_FORMAT_ASTC_10x5_SRGB_BLOCK" value="173" enum="DataFormat">
1774 VRAM-compressed unsigned floating-point data format with normalized value and nonlinear sRGB encoding, packed in 10×5 blocks. Values are in the [code][0.0, 1.0][/code] range. Using ASTC compression.
1775 </constant>
1776 <constant name="DATA_FORMAT_ASTC_10x6_UNORM_BLOCK" value="174" enum="DataFormat">
1777 VRAM-compressed unsigned floating-point data format with normalized value, packed in 10×6 blocks. Values are in the [code][0.0, 1.0][/code] range. Using ASTC compression.
1778 </constant>
1779 <constant name="DATA_FORMAT_ASTC_10x6_SRGB_BLOCK" value="175" enum="DataFormat">
1780 VRAM-compressed unsigned floating-point data format with normalized value and nonlinear sRGB encoding, packed in 10×6 blocks. Values are in the [code][0.0, 1.0][/code] range. Using ASTC compression.
1781 </constant>
1782 <constant name="DATA_FORMAT_ASTC_10x8_UNORM_BLOCK" value="176" enum="DataFormat">
1783 VRAM-compressed unsigned floating-point data format with normalized value, packed in 10×8 blocks. Values are in the [code][0.0, 1.0][/code] range. Using ASTC compression.
1784 </constant>
1785 <constant name="DATA_FORMAT_ASTC_10x8_SRGB_BLOCK" value="177" enum="DataFormat">
1786 VRAM-compressed unsigned floating-point data format with normalized value and nonlinear sRGB encoding, packed in 10×8 blocks. Values are in the [code][0.0, 1.0][/code] range. Using ASTC compression.
1787 </constant>
1788 <constant name="DATA_FORMAT_ASTC_10x10_UNORM_BLOCK" value="178" enum="DataFormat">
1789 VRAM-compressed unsigned floating-point data format with normalized value, packed in 10×10 blocks. Values are in the [code][0.0, 1.0][/code] range. Using ASTC compression.
1790 </constant>
1791 <constant name="DATA_FORMAT_ASTC_10x10_SRGB_BLOCK" value="179" enum="DataFormat">
1792 VRAM-compressed unsigned floating-point data format with normalized value and nonlinear sRGB encoding, packed in 10×10 blocks. Values are in the [code][0.0, 1.0][/code] range. Using ASTC compression.
1793 </constant>
1794 <constant name="DATA_FORMAT_ASTC_12x10_UNORM_BLOCK" value="180" enum="DataFormat">
1795 VRAM-compressed unsigned floating-point data format with normalized value, packed in 12×10 blocks. Values are in the [code][0.0, 1.0][/code] range. Using ASTC compression.
1796 </constant>
1797 <constant name="DATA_FORMAT_ASTC_12x10_SRGB_BLOCK" value="181" enum="DataFormat">
1798 VRAM-compressed unsigned floating-point data format with normalized value and nonlinear sRGB encoding, packed in 12×10 blocks. Values are in the [code][0.0, 1.0][/code] range. Using ASTC compression.
1799 </constant>
1800 <constant name="DATA_FORMAT_ASTC_12x12_UNORM_BLOCK" value="182" enum="DataFormat">
1801 VRAM-compressed unsigned floating-point data format with normalized value, packed in 12 blocks (lowest quality). Values are in the [code][0.0, 1.0][/code] range. Using ASTC compression.
1802 </constant>
1803 <constant name="DATA_FORMAT_ASTC_12x12_SRGB_BLOCK" value="183" enum="DataFormat">
1804 VRAM-compressed unsigned floating-point data format with normalized value and nonlinear sRGB encoding, packed in 12 blocks (lowest quality). Values are in the [code][0.0, 1.0][/code] range. Using ASTC compression.
1805 </constant>
1806 <constant name="DATA_FORMAT_G8B8G8R8_422_UNORM" value="184" enum="DataFormat">
1807 8-bit-per-channel unsigned floating-point green/blue/red channel data format with normalized value. Values are in the [code][0.0, 1.0][/code] range. Blue and red channel data is stored at halved horizontal resolution (i.e. 2 horizontally adjacent pixels will share the same value for the blue/red channel).
1808 </constant>
1809 <constant name="DATA_FORMAT_B8G8R8G8_422_UNORM" value="185" enum="DataFormat">
1810 8-bit-per-channel unsigned floating-point blue/green/red channel data format with normalized value. Values are in the [code][0.0, 1.0][/code] range. Blue and red channel data is stored at halved horizontal resolution (i.e. 2 horizontally adjacent pixels will share the same value for the blue/red channel).
1811 </constant>
1812 <constant name="DATA_FORMAT_G8_B8_R8_3PLANE_420_UNORM" value="186" enum="DataFormat">
1813 8-bit-per-channel unsigned floating-point green/blue/red channel data with normalized value, stored across 3 separate planes (green + blue + red). Values are in the [code][0.0, 1.0][/code] range. Blue and red channel data is stored at halved horizontal and vertical resolution (i.e. 2×2 adjacent pixels will share the same value for the blue/red channel).
1814 </constant>
1815 <constant name="DATA_FORMAT_G8_B8R8_2PLANE_420_UNORM" value="187" enum="DataFormat">
1816 8-bit-per-channel unsigned floating-point green/blue/red channel data with normalized value, stored across 2 separate planes (green + blue/red). Values are in the [code][0.0, 1.0][/code] range. Blue and red channel data is stored at halved horizontal and vertical resolution (i.e. 2×2 adjacent pixels will share the same value for the blue/red channel).
1817 </constant>
1818 <constant name="DATA_FORMAT_G8_B8_R8_3PLANE_422_UNORM" value="188" enum="DataFormat">
1819 8-bit-per-channel unsigned floating-point green/blue/red channel data with normalized value, stored across 2 separate planes (green + blue + red). Values are in the [code][0.0, 1.0][/code] range. Blue and red channel data is stored at halved horizontal resolution (i.e. 2 horizontally adjacent pixels will share the same value for the blue/red channel).
1820 </constant>
1821 <constant name="DATA_FORMAT_G8_B8R8_2PLANE_422_UNORM" value="189" enum="DataFormat">
1822 8-bit-per-channel unsigned floating-point green/blue/red channel data with normalized value, stored across 2 separate planes (green + blue/red). Values are in the [code][0.0, 1.0][/code] range. Blue and red channel data is stored at halved horizontal resolution (i.e. 2 horizontally adjacent pixels will share the same value for the blue/red channel).
1823 </constant>
1824 <constant name="DATA_FORMAT_G8_B8_R8_3PLANE_444_UNORM" value="190" enum="DataFormat">
1825 8-bit-per-channel unsigned floating-point green/blue/red channel data with normalized value, stored across 3 separate planes. Values are in the [code][0.0, 1.0][/code] range.
1826 </constant>
1827 <constant name="DATA_FORMAT_R10X6_UNORM_PACK16" value="191" enum="DataFormat">
1828 10-bit-per-channel unsigned floating-point red channel data with normalized value, plus 6 unused bits, packed in 16 bits. Values are in the [code][0.0, 1.0][/code] range.
1829 </constant>
1830 <constant name="DATA_FORMAT_R10X6G10X6_UNORM_2PACK16" value="192" enum="DataFormat">
1831 10-bit-per-channel unsigned floating-point red/green channel data with normalized value, plus 6 unused bits after each channel, packed in 2×16 bits. Values are in the [code][0.0, 1.0][/code] range.
1832 </constant>
1833 <constant name="DATA_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16" value="193" enum="DataFormat">
1834 10-bit-per-channel unsigned floating-point red/green/blue/alpha channel data with normalized value, plus 6 unused bits after each channel, packed in 4×16 bits. Values are in the [code][0.0, 1.0][/code] range.
1835 </constant>
1836 <constant name="DATA_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16" value="194" enum="DataFormat">
1837 10-bit-per-channel unsigned floating-point green/blue/green/red channel data with normalized value, plus 6 unused bits after each channel, packed in 4×16 bits. Values are in the [code][0.0, 1.0][/code] range. Blue and red channel data is stored at halved horizontal resolution (i.e. 2 horizontally adjacent pixels will share the same value for the blue/red channel). The green channel is listed twice, but contains different values to allow it to be represented at full resolution.
1838 </constant>
1839 <constant name="DATA_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16" value="195" enum="DataFormat">
1840 10-bit-per-channel unsigned floating-point blue/green/red/green channel data with normalized value, plus 6 unused bits after each channel, packed in 4×16 bits. Values are in the [code][0.0, 1.0][/code] range. Blue and red channel data is stored at halved horizontal resolution (i.e. 2 horizontally adjacent pixels will share the same value for the blue/red channel). The green channel is listed twice, but contains different values to allow it to be represented at full resolution.
1841 </constant>
1842 <constant name="DATA_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16" value="196" enum="DataFormat">
1843 10-bit-per-channel unsigned floating-point green/blue/red channel data with normalized value, plus 6 unused bits after each channel. Packed in 3×16 bits and stored across 2 separate planes (green + blue + red). Values are in the [code][0.0, 1.0][/code] range. Blue and red channel data is stored at halved horizontal and vertical resolution (i.e. 2×2 adjacent pixels will share the same value for the blue/red channel).
1844 </constant>
1845 <constant name="DATA_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16" value="197" enum="DataFormat">
1846 10-bit-per-channel unsigned floating-point green/blue/red channel data with normalized value, plus 6 unused bits after each channel. Packed in 3×16 bits and stored across 2 separate planes (green + blue/red). Values are in the [code][0.0, 1.0][/code] range. Blue and red channel data is stored at halved horizontal and vertical resolution (i.e. 2×2 adjacent pixels will share the same value for the blue/red channel).
1847 </constant>
1848 <constant name="DATA_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16" value="198" enum="DataFormat">
1849 10-bit-per-channel unsigned floating-point green/blue/red channel data with normalized value, plus 6 unused bits after each channel. Packed in 3×16 bits and stored across 3 separate planes (green + blue + red). Values are in the [code][0.0, 1.0][/code] range. Blue and red channel data is stored at halved horizontal resolution (i.e. 2 horizontally adjacent pixels will share the same value for the blue/red channel).
1850 </constant>
1851 <constant name="DATA_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16" value="199" enum="DataFormat">
1852 10-bit-per-channel unsigned floating-point green/blue/red channel data with normalized value, plus 6 unused bits after each channel. Packed in 3×16 bits and stored across 3 separate planes (green + blue/red). Values are in the [code][0.0, 1.0][/code] range. Blue and red channel data is stored at halved horizontal resolution (i.e. 2 horizontally adjacent pixels will share the same value for the blue/red channel).
1853 </constant>
1854 <constant name="DATA_FORMAT_G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16" value="200" enum="DataFormat">
1855 10-bit-per-channel unsigned floating-point green/blue/red channel data with normalized value, plus 6 unused bits after each channel. Packed in 3×16 bits and stored across 3 separate planes (green + blue + red). Values are in the [code][0.0, 1.0][/code] range.
1856 </constant>
1857 <constant name="DATA_FORMAT_R12X4_UNORM_PACK16" value="201" enum="DataFormat">
1858 12-bit-per-channel unsigned floating-point red channel data with normalized value, plus 6 unused bits, packed in 16 bits. Values are in the [code][0.0, 1.0][/code] range.
1859 </constant>
1860 <constant name="DATA_FORMAT_R12X4G12X4_UNORM_2PACK16" value="202" enum="DataFormat">
1861 12-bit-per-channel unsigned floating-point red/green channel data with normalized value, plus 6 unused bits after each channel, packed in 2×16 bits. Values are in the [code][0.0, 1.0][/code] range.
1862 </constant>
1863 <constant name="DATA_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16" value="203" enum="DataFormat">
1864 12-bit-per-channel unsigned floating-point red/green/blue/alpha channel data with normalized value, plus 6 unused bits after each channel, packed in 4×16 bits. Values are in the [code][0.0, 1.0][/code] range.
1865 </constant>
1866 <constant name="DATA_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16" value="204" enum="DataFormat">
1867 12-bit-per-channel unsigned floating-point green/blue/green/red channel data with normalized value, plus 6 unused bits after each channel, packed in 4×16 bits. Values are in the [code][0.0, 1.0][/code] range. Blue and red channel data is stored at halved horizontal resolution (i.e. 2 horizontally adjacent pixels will share the same value for the blue/red channel). The green channel is listed twice, but contains different values to allow it to be represented at full resolution.
1868 </constant>
1869 <constant name="DATA_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16" value="205" enum="DataFormat">
1870 12-bit-per-channel unsigned floating-point blue/green/red/green channel data with normalized value, plus 6 unused bits after each channel, packed in 4×16 bits. Values are in the [code][0.0, 1.0][/code] range. Blue and red channel data is stored at halved horizontal resolution (i.e. 2 horizontally adjacent pixels will share the same value for the blue/red channel). The green channel is listed twice, but contains different values to allow it to be represented at full resolution.
1871 </constant>
1872 <constant name="DATA_FORMAT_G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16" value="206" enum="DataFormat">
1873 12-bit-per-channel unsigned floating-point green/blue/red channel data with normalized value, plus 6 unused bits after each channel. Packed in 3×16 bits and stored across 2 separate planes (green + blue + red). Values are in the [code][0.0, 1.0][/code] range. Blue and red channel data is stored at halved horizontal and vertical resolution (i.e. 2×2 adjacent pixels will share the same value for the blue/red channel).
1874 </constant>
1875 <constant name="DATA_FORMAT_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16" value="207" enum="DataFormat">
1876 12-bit-per-channel unsigned floating-point green/blue/red channel data with normalized value, plus 6 unused bits after each channel. Packed in 3×16 bits and stored across 2 separate planes (green + blue/red). Values are in the [code][0.0, 1.0][/code] range. Blue and red channel data is stored at halved horizontal and vertical resolution (i.e. 2×2 adjacent pixels will share the same value for the blue/red channel).
1877 </constant>
1878 <constant name="DATA_FORMAT_G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16" value="208" enum="DataFormat">
1879 12-bit-per-channel unsigned floating-point green/blue/red channel data with normalized value, plus 6 unused bits after each channel. Packed in 3×16 bits and stored across 3 separate planes (green + blue + red). Values are in the [code][0.0, 1.0][/code] range. Blue and red channel data is stored at halved horizontal resolution (i.e. 2 horizontally adjacent pixels will share the same value for the blue/red channel).
1880 </constant>
1881 <constant name="DATA_FORMAT_G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16" value="209" enum="DataFormat">
1882 12-bit-per-channel unsigned floating-point green/blue/red channel data with normalized value, plus 6 unused bits after each channel. Packed in 3×16 bits and stored across 3 separate planes (green + blue/red). Values are in the [code][0.0, 1.0][/code] range. Blue and red channel data is stored at halved horizontal resolution (i.e. 2 horizontally adjacent pixels will share the same value for the blue/red channel).
1883 </constant>
1884 <constant name="DATA_FORMAT_G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16" value="210" enum="DataFormat">
1885 12-bit-per-channel unsigned floating-point green/blue/red channel data with normalized value, plus 6 unused bits after each channel. Packed in 3×16 bits and stored across 3 separate planes (green + blue + red). Values are in the [code][0.0, 1.0][/code] range.
1886 </constant>
1887 <constant name="DATA_FORMAT_G16B16G16R16_422_UNORM" value="211" enum="DataFormat">
1888 16-bit-per-channel unsigned floating-point green/blue/red channel data format with normalized value. Values are in the [code][0.0, 1.0][/code] range. Blue and red channel data is stored at halved horizontal resolution (i.e. 2 horizontally adjacent pixels will share the same value for the blue/red channel).
1889 </constant>
1890 <constant name="DATA_FORMAT_B16G16R16G16_422_UNORM" value="212" enum="DataFormat">
1891 16-bit-per-channel unsigned floating-point blue/green/red channel data format with normalized value. Values are in the [code][0.0, 1.0][/code] range. Blue and red channel data is stored at halved horizontal resolution (i.e. 2 horizontally adjacent pixels will share the same value for the blue/red channel).
1892 </constant>
1893 <constant name="DATA_FORMAT_G16_B16_R16_3PLANE_420_UNORM" value="213" enum="DataFormat">
1894 16-bit-per-channel unsigned floating-point green/blue/red channel data with normalized value, plus 6 unused bits after each channel. Stored across 2 separate planes (green + blue + red). Values are in the [code][0.0, 1.0][/code] range. Blue and red channel data is stored at halved horizontal and vertical resolution (i.e. 2×2 adjacent pixels will share the same value for the blue/red channel).
1895 </constant>
1896 <constant name="DATA_FORMAT_G16_B16R16_2PLANE_420_UNORM" value="214" enum="DataFormat">
1897 16-bit-per-channel unsigned floating-point green/blue/red channel data with normalized value, plus 6 unused bits after each channel. Stored across 2 separate planes (green + blue/red). Values are in the [code][0.0, 1.0][/code] range. Blue and red channel data is stored at halved horizontal and vertical resolution (i.e. 2×2 adjacent pixels will share the same value for the blue/red channel).
1898 </constant>
1899 <constant name="DATA_FORMAT_G16_B16_R16_3PLANE_422_UNORM" value="215" enum="DataFormat">
1900 16-bit-per-channel unsigned floating-point green/blue/red channel data with normalized value, plus 6 unused bits after each channel. Stored across 3 separate planes (green + blue + red). Values are in the [code][0.0, 1.0][/code] range. Blue and red channel data is stored at halved horizontal resolution (i.e. 2 horizontally adjacent pixels will share the same value for the blue/red channel).
1901 </constant>
1902 <constant name="DATA_FORMAT_G16_B16R16_2PLANE_422_UNORM" value="216" enum="DataFormat">
1903 16-bit-per-channel unsigned floating-point green/blue/red channel data with normalized value, plus 6 unused bits after each channel. Stored across 3 separate planes (green + blue/red). Values are in the [code][0.0, 1.0][/code] range. Blue and red channel data is stored at halved horizontal resolution (i.e. 2 horizontally adjacent pixels will share the same value for the blue/red channel).
1904 </constant>
1905 <constant name="DATA_FORMAT_G16_B16_R16_3PLANE_444_UNORM" value="217" enum="DataFormat">
1906 16-bit-per-channel unsigned floating-point green/blue/red channel data with normalized value, plus 6 unused bits after each channel. Stored across 3 separate planes (green + blue + red). Values are in the [code][0.0, 1.0][/code] range.
1907 </constant>
1908 <constant name="DATA_FORMAT_ASTC_4x4_SFLOAT_BLOCK" value="218" enum="DataFormat">
1909 </constant>
1910 <constant name="DATA_FORMAT_ASTC_5x4_SFLOAT_BLOCK" value="219" enum="DataFormat">
1911 </constant>
1912 <constant name="DATA_FORMAT_ASTC_5x5_SFLOAT_BLOCK" value="220" enum="DataFormat">
1913 </constant>
1914 <constant name="DATA_FORMAT_ASTC_6x5_SFLOAT_BLOCK" value="221" enum="DataFormat">
1915 </constant>
1916 <constant name="DATA_FORMAT_ASTC_6x6_SFLOAT_BLOCK" value="222" enum="DataFormat">
1917 </constant>
1918 <constant name="DATA_FORMAT_ASTC_8x5_SFLOAT_BLOCK" value="223" enum="DataFormat">
1919 </constant>
1920 <constant name="DATA_FORMAT_ASTC_8x6_SFLOAT_BLOCK" value="224" enum="DataFormat">
1921 </constant>
1922 <constant name="DATA_FORMAT_ASTC_8x8_SFLOAT_BLOCK" value="225" enum="DataFormat">
1923 </constant>
1924 <constant name="DATA_FORMAT_ASTC_10x5_SFLOAT_BLOCK" value="226" enum="DataFormat">
1925 </constant>
1926 <constant name="DATA_FORMAT_ASTC_10x6_SFLOAT_BLOCK" value="227" enum="DataFormat">
1927 </constant>
1928 <constant name="DATA_FORMAT_ASTC_10x8_SFLOAT_BLOCK" value="228" enum="DataFormat">
1929 </constant>
1930 <constant name="DATA_FORMAT_ASTC_10x10_SFLOAT_BLOCK" value="229" enum="DataFormat">
1931 </constant>
1932 <constant name="DATA_FORMAT_ASTC_12x10_SFLOAT_BLOCK" value="230" enum="DataFormat">
1933 </constant>
1934 <constant name="DATA_FORMAT_ASTC_12x12_SFLOAT_BLOCK" value="231" enum="DataFormat">
1935 </constant>
1936 <constant name="DATA_FORMAT_MAX" value="232" enum="DataFormat">
1937 Represents the size of the [enum DataFormat] enum.
1938 </constant>
1939 <constant name="BARRIER_MASK_VERTEX" value="1" enum="BarrierMask" is_bitfield="true">
1940 Vertex shader barrier mask.
1941 </constant>
1942 <constant name="BARRIER_MASK_FRAGMENT" value="8" enum="BarrierMask" is_bitfield="true">
1943 Fragment shader barrier mask.
1944 </constant>
1945 <constant name="BARRIER_MASK_COMPUTE" value="2" enum="BarrierMask" is_bitfield="true">
1946 Compute barrier mask.
1947 </constant>
1948 <constant name="BARRIER_MASK_TRANSFER" value="4" enum="BarrierMask" is_bitfield="true">
1949 Transfer barrier mask.
1950 </constant>
1951 <constant name="BARRIER_MASK_RASTER" value="9" enum="BarrierMask" is_bitfield="true">
1952 Raster barrier mask (vertex and fragment). Equivalent to [code]BARRIER_MASK_VERTEX | BARRIER_MASK_FRAGMENT[/code].
1953 </constant>
1954 <constant name="BARRIER_MASK_ALL_BARRIERS" value="32767" enum="BarrierMask" is_bitfield="true">
1955 Barrier mask for all types (vertex, fragment, compute, transfer).
1956 </constant>
1957 <constant name="BARRIER_MASK_NO_BARRIER" value="32768" enum="BarrierMask" is_bitfield="true">
1958 No barrier for any type.
1959 </constant>
1960 <constant name="TEXTURE_TYPE_1D" value="0" enum="TextureType">
1961 1-dimensional texture.
1962 </constant>
1963 <constant name="TEXTURE_TYPE_2D" value="1" enum="TextureType">
1964 2-dimensional texture.
1965 </constant>
1966 <constant name="TEXTURE_TYPE_3D" value="2" enum="TextureType">
1967 3-dimensional texture.
1968 </constant>
1969 <constant name="TEXTURE_TYPE_CUBE" value="3" enum="TextureType">
1970 [Cubemap] texture.
1971 </constant>
1972 <constant name="TEXTURE_TYPE_1D_ARRAY" value="4" enum="TextureType">
1973 Array of 1-dimensional textures.
1974 </constant>
1975 <constant name="TEXTURE_TYPE_2D_ARRAY" value="5" enum="TextureType">
1976 Array of 2-dimensional textures.
1977 </constant>
1978 <constant name="TEXTURE_TYPE_CUBE_ARRAY" value="6" enum="TextureType">
1979 Array of [Cubemap] textures.
1980 </constant>
1981 <constant name="TEXTURE_TYPE_MAX" value="7" enum="TextureType">
1982 Represents the size of the [enum TextureType] enum.
1983 </constant>
1984 <constant name="TEXTURE_SAMPLES_1" value="0" enum="TextureSamples">
1985 Perform 1 texture sample (this is the fastest but lowest-quality for antialiasing).
1986 </constant>
1987 <constant name="TEXTURE_SAMPLES_2" value="1" enum="TextureSamples">
1988 Perform 2 texture samples.
1989 </constant>
1990 <constant name="TEXTURE_SAMPLES_4" value="2" enum="TextureSamples">
1991 Perform 4 texture samples.
1992 </constant>
1993 <constant name="TEXTURE_SAMPLES_8" value="3" enum="TextureSamples">
1994 Perform 8 texture samples. Not supported on mobile GPUs (including Apple Silicon).
1995 </constant>
1996 <constant name="TEXTURE_SAMPLES_16" value="4" enum="TextureSamples">
1997 Perform 16 texture samples. Not supported on mobile GPUs and many desktop GPUs.
1998 </constant>
1999 <constant name="TEXTURE_SAMPLES_32" value="5" enum="TextureSamples">
2000 Perform 32 texture samples. Not supported on most GPUs.
2001 </constant>
2002 <constant name="TEXTURE_SAMPLES_64" value="6" enum="TextureSamples">
2003 Perform 64 texture samples (this is the slowest but highest-quality for antialiasing). Not supported on most GPUs.
2004 </constant>
2005 <constant name="TEXTURE_SAMPLES_MAX" value="7" enum="TextureSamples">
2006 Represents the size of the [enum TextureSamples] enum.
2007 </constant>
2008 <constant name="TEXTURE_USAGE_SAMPLING_BIT" value="1" enum="TextureUsageBits" is_bitfield="true">
2009 Texture can be sampled.
2010 </constant>
2011 <constant name="TEXTURE_USAGE_COLOR_ATTACHMENT_BIT" value="2" enum="TextureUsageBits" is_bitfield="true">
2012 Texture can be used as a color attachment in a framebuffer.
2013 </constant>
2014 <constant name="TEXTURE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT" value="4" enum="TextureUsageBits" is_bitfield="true">
2015 Texture can be used as a depth/stencil attachment in a framebuffer.
2016 </constant>
2017 <constant name="TEXTURE_USAGE_DEPTH_RESOLVE_ATTACHMENT_BIT" value="4096" enum="TextureUsageBits" is_bitfield="true">
2018 Texture can be used as a depth/stencil resolve attachment in a framebuffer.
2019 </constant>
2020 <constant name="TEXTURE_USAGE_STORAGE_BIT" value="8" enum="TextureUsageBits" is_bitfield="true">
2021 Texture can be used as a [url=https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#descriptorsets-storageimage]storage image[/url].
2022 </constant>
2023 <constant name="TEXTURE_USAGE_STORAGE_ATOMIC_BIT" value="16" enum="TextureUsageBits" is_bitfield="true">
2024 Texture can be used as a [url=https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#descriptorsets-storageimage]storage image[/url] with support for atomic operations.
2025 </constant>
2026 <constant name="TEXTURE_USAGE_CPU_READ_BIT" value="32" enum="TextureUsageBits" is_bitfield="true">
2027 Texture can be read back on the CPU using [method texture_get_data] faster than without this bit, since it is always kept in the system memory.
2028 </constant>
2029 <constant name="TEXTURE_USAGE_CAN_UPDATE_BIT" value="64" enum="TextureUsageBits" is_bitfield="true">
2030 Texture can be updated using [method texture_update].
2031 </constant>
2032 <constant name="TEXTURE_USAGE_CAN_COPY_FROM_BIT" value="128" enum="TextureUsageBits" is_bitfield="true">
2033 Texture can be a source for [method texture_copy].
2034 </constant>
2035 <constant name="TEXTURE_USAGE_CAN_COPY_TO_BIT" value="256" enum="TextureUsageBits" is_bitfield="true">
2036 Texture can be a destination for [method texture_copy].
2037 </constant>
2038 <constant name="TEXTURE_USAGE_INPUT_ATTACHMENT_BIT" value="512" enum="TextureUsageBits" is_bitfield="true">
2039 Texture can be used as a [url=https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#descriptorsets-inputattachment]input attachment[/url] in a framebuffer.
2040 </constant>
2041 <constant name="TEXTURE_SWIZZLE_IDENTITY" value="0" enum="TextureSwizzle">
2042 Return the sampled value as-is.
2043 </constant>
2044 <constant name="TEXTURE_SWIZZLE_ZERO" value="1" enum="TextureSwizzle">
2045 Always return [code]0.0[/code] when sampling.
2046 </constant>
2047 <constant name="TEXTURE_SWIZZLE_ONE" value="2" enum="TextureSwizzle">
2048 Always return [code]1.0[/code] when sampling.
2049 </constant>
2050 <constant name="TEXTURE_SWIZZLE_R" value="3" enum="TextureSwizzle">
2051 Sample the red color channel.
2052 </constant>
2053 <constant name="TEXTURE_SWIZZLE_G" value="4" enum="TextureSwizzle">
2054 Sample the green color channel.
2055 </constant>
2056 <constant name="TEXTURE_SWIZZLE_B" value="5" enum="TextureSwizzle">
2057 Sample the blue color channel.
2058 </constant>
2059 <constant name="TEXTURE_SWIZZLE_A" value="6" enum="TextureSwizzle">
2060 Sample the alpha channel.
2061 </constant>
2062 <constant name="TEXTURE_SWIZZLE_MAX" value="7" enum="TextureSwizzle">
2063 Represents the size of the [enum TextureSwizzle] enum.
2064 </constant>
2065 <constant name="TEXTURE_SLICE_2D" value="0" enum="TextureSliceType">
2066 2-dimensional texture slice.
2067 </constant>
2068 <constant name="TEXTURE_SLICE_CUBEMAP" value="1" enum="TextureSliceType">
2069 Cubemap texture slice.
2070 </constant>
2071 <constant name="TEXTURE_SLICE_3D" value="2" enum="TextureSliceType">
2072 3-dimensional texture slice.
2073 </constant>
2074 <constant name="SAMPLER_FILTER_NEAREST" value="0" enum="SamplerFilter">
2075 Nearest-neighbor sampler filtering. Sampling at higher resolutions than the source will result in a pixelated look.
2076 </constant>
2077 <constant name="SAMPLER_FILTER_LINEAR" value="1" enum="SamplerFilter">
2078 Bilinear sampler filtering. Sampling at higher resolutions than the source will result in a blurry look.
2079 </constant>
2080 <constant name="SAMPLER_REPEAT_MODE_REPEAT" value="0" enum="SamplerRepeatMode">
2081 Sample with repeating enabled.
2082 </constant>
2083 <constant name="SAMPLER_REPEAT_MODE_MIRRORED_REPEAT" value="1" enum="SamplerRepeatMode">
2084 Sample with mirrored repeating enabled. When sampling outside the [code][0.0, 1.0][/code] range, return a mirrored version of the sampler. This mirrored version is mirrored again if sampling further away, with the pattern repeating indefinitely.
2085 </constant>
2086 <constant name="SAMPLER_REPEAT_MODE_CLAMP_TO_EDGE" value="2" enum="SamplerRepeatMode">
2087 Sample with repeating disabled. When sampling outside the [code][0.0, 1.0][/code] range, return the color of the last pixel on the edge.
2088 </constant>
2089 <constant name="SAMPLER_REPEAT_MODE_CLAMP_TO_BORDER" value="3" enum="SamplerRepeatMode">
2090 Sample with repeating disabled. When sampling outside the [code][0.0, 1.0][/code] range, return the specified [member RDSamplerState.border_color].
2091 </constant>
2092 <constant name="SAMPLER_REPEAT_MODE_MIRROR_CLAMP_TO_EDGE" value="4" enum="SamplerRepeatMode">
2093 Sample with mirrored repeating enabled, but only once. When sampling in the [code][-1.0, 0.0][/code] range, return a mirrored version of the sampler. When sampling outside the [code][-1.0, 1.0][/code] range, return the color of the last pixel on the edge.
2094 </constant>
2095 <constant name="SAMPLER_REPEAT_MODE_MAX" value="5" enum="SamplerRepeatMode">
2096 Represents the size of the [enum SamplerRepeatMode] enum.
2097 </constant>
2098 <constant name="SAMPLER_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK" value="0" enum="SamplerBorderColor">
2099 Return a floating-point transparent black color when sampling outside the [code][0.0, 1.0][/code] range. Only effective if the sampler repeat mode is [constant SAMPLER_REPEAT_MODE_CLAMP_TO_BORDER].
2100 </constant>
2101 <constant name="SAMPLER_BORDER_COLOR_INT_TRANSPARENT_BLACK" value="1" enum="SamplerBorderColor">
2102 Return an integer transparent black color when sampling outside the [code][0.0, 1.0][/code] range. Only effective if the sampler repeat mode is [constant SAMPLER_REPEAT_MODE_CLAMP_TO_BORDER].
2103 </constant>
2104 <constant name="SAMPLER_BORDER_COLOR_FLOAT_OPAQUE_BLACK" value="2" enum="SamplerBorderColor">
2105 Return a floating-point opaque black color when sampling outside the [code][0.0, 1.0][/code] range. Only effective if the sampler repeat mode is [constant SAMPLER_REPEAT_MODE_CLAMP_TO_BORDER].
2106 </constant>
2107 <constant name="SAMPLER_BORDER_COLOR_INT_OPAQUE_BLACK" value="3" enum="SamplerBorderColor">
2108 Return an integer opaque black color when sampling outside the [code][0.0, 1.0][/code] range. Only effective if the sampler repeat mode is [constant SAMPLER_REPEAT_MODE_CLAMP_TO_BORDER].
2109 </constant>
2110 <constant name="SAMPLER_BORDER_COLOR_FLOAT_OPAQUE_WHITE" value="4" enum="SamplerBorderColor">
2111 Return a floating-point opaque white color when sampling outside the [code][0.0, 1.0][/code] range. Only effective if the sampler repeat mode is [constant SAMPLER_REPEAT_MODE_CLAMP_TO_BORDER].
2112 </constant>
2113 <constant name="SAMPLER_BORDER_COLOR_INT_OPAQUE_WHITE" value="5" enum="SamplerBorderColor">
2114 Return an integer opaque white color when sampling outside the [code][0.0, 1.0][/code] range. Only effective if the sampler repeat mode is [constant SAMPLER_REPEAT_MODE_CLAMP_TO_BORDER].
2115 </constant>
2116 <constant name="SAMPLER_BORDER_COLOR_MAX" value="6" enum="SamplerBorderColor">
2117 Represents the size of the [enum SamplerBorderColor] enum.
2118 </constant>
2119 <constant name="VERTEX_FREQUENCY_VERTEX" value="0" enum="VertexFrequency">
2120 Vertex attribute addressing is a function of the vertex. This is used to specify the rate at which vertex attributes are pulled from buffers.
2121 </constant>
2122 <constant name="VERTEX_FREQUENCY_INSTANCE" value="1" enum="VertexFrequency">
2123 Vertex attribute addressing is a function of the instance index. This is used to specify the rate at which vertex attributes are pulled from buffers.
2124 </constant>
2125 <constant name="INDEX_BUFFER_FORMAT_UINT16" value="0" enum="IndexBufferFormat">
2126 Index buffer in 16-bit unsigned integer format. This limits the maximum index that can be specified to [code]65535[/code].
2127 </constant>
2128 <constant name="INDEX_BUFFER_FORMAT_UINT32" value="1" enum="IndexBufferFormat">
2129 Index buffer in 32-bit unsigned integer format. This limits the maximum index that can be specified to [code]4294967295[/code].
2130 </constant>
2131 <constant name="STORAGE_BUFFER_USAGE_DISPATCH_INDIRECT" value="1" enum="StorageBufferUsage" is_bitfield="true">
2132 </constant>
2133 <constant name="BUFFER_CREATION_DEVICE_ADDRESS_BIT" value="1" enum="BufferCreationBits" is_bitfield="true">
2134 Optionally, set this flag if you wish to use [method buffer_get_device_address] functionality. You must first check the GPU supports it:
2135 [codeblocks]
2136 [gdscript]
2137 rd = RenderingServer.get_rendering_device()
2138
2139 if rd.has_feature(RenderingDevice.SUPPORTS_BUFFER_DEVICE_ADDRESS):
2140 storage_buffer = rd.storage_buffer_create(bytes.size(), bytes, RenderingDevice.STORAGE_BUFFER_USAGE_SHADER_DEVICE_ADDRESS)
2141 storage_buffer_address = rd.buffer_get_device_address(storage_buffer)
2142 [/gdscript]
2143 [/codeblocks]
2144 </constant>
2145 <constant name="BUFFER_CREATION_AS_STORAGE_BIT" value="2" enum="BufferCreationBits" is_bitfield="true">
2146 Set this flag so that it is created as storage. This is useful if Compute Shaders need access (for reading or writing) to the buffer, e.g. skeletal animations are processed in Compute Shaders which need access to vertex buffers, to be later consumed by vertex shaders as part of the regular rasterization pipeline.
2147 </constant>
2148 <constant name="UNIFORM_TYPE_SAMPLER" value="0" enum="UniformType">
2149 Sampler uniform.
2150 </constant>
2151 <constant name="UNIFORM_TYPE_SAMPLER_WITH_TEXTURE" value="1" enum="UniformType">
2152 Sampler uniform with a texture.
2153 </constant>
2154 <constant name="UNIFORM_TYPE_TEXTURE" value="2" enum="UniformType">
2155 Texture uniform.
2156 </constant>
2157 <constant name="UNIFORM_TYPE_IMAGE" value="3" enum="UniformType">
2158 Image uniform.
2159 </constant>
2160 <constant name="UNIFORM_TYPE_TEXTURE_BUFFER" value="4" enum="UniformType">
2161 Texture buffer uniform.
2162 </constant>
2163 <constant name="UNIFORM_TYPE_SAMPLER_WITH_TEXTURE_BUFFER" value="5" enum="UniformType">
2164 Sampler uniform with a texture buffer.
2165 </constant>
2166 <constant name="UNIFORM_TYPE_IMAGE_BUFFER" value="6" enum="UniformType">
2167 Image buffer uniform.
2168 </constant>
2169 <constant name="UNIFORM_TYPE_UNIFORM_BUFFER" value="7" enum="UniformType">
2170 Uniform buffer uniform.
2171 </constant>
2172 <constant name="UNIFORM_TYPE_STORAGE_BUFFER" value="8" enum="UniformType">
2173 [url=https://vkguide.dev/docs/chapter-4/storage_buffers/]Storage buffer[/url] uniform.
2174 </constant>
2175 <constant name="UNIFORM_TYPE_INPUT_ATTACHMENT" value="9" enum="UniformType">
2176 Input attachment uniform.
2177 </constant>
2178 <constant name="UNIFORM_TYPE_UNIFORM_BUFFER_DYNAMIC" value="10" enum="UniformType">
2179 Same as UNIFORM_TYPE_UNIFORM_BUFFER but for buffers created with BUFFER_CREATION_DYNAMIC_PERSISTENT_BIT.
2180 [b]Note:[/b] This flag is not available to GD users due to being too dangerous (i.e. wrong usage can result in visual glitches).
2181 It's exposed in case GD users receive a buffer created with such flag from Godot.
2182 </constant>
2183 <constant name="UNIFORM_TYPE_STORAGE_BUFFER_DYNAMIC" value="11" enum="UniformType">
2184 Same as UNIFORM_TYPE_STORAGE_BUFFER but for buffers created with BUFFER_CREATION_DYNAMIC_PERSISTENT_BIT.
2185 [b]Note:[/b] This flag is not available to GD users due to being too dangerous (i.e. wrong usage can result in visual glitches).
2186 It's exposed in case GD users receive a buffer created with such flag from Godot.
2187 </constant>
2188 <constant name="UNIFORM_TYPE_MAX" value="12" enum="UniformType">
2189 Represents the size of the [enum UniformType] enum.
2190 </constant>
2191 <constant name="RENDER_PRIMITIVE_POINTS" value="0" enum="RenderPrimitive">
2192 Point rendering primitive (with constant size, regardless of distance from camera).
2193 </constant>
2194 <constant name="RENDER_PRIMITIVE_LINES" value="1" enum="RenderPrimitive">
2195 Line list rendering primitive. Lines are drawn separated from each other.
2196 </constant>
2197 <constant name="RENDER_PRIMITIVE_LINES_WITH_ADJACENCY" value="2" enum="RenderPrimitive">
2198 [url=https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#drawing-line-lists-with-adjacency]Line list rendering primitive with adjacency.[/url]
2199 [b]Note:[/b] Adjacency is only useful with geometry shaders, which Godot does not expose.
2200 </constant>
2201 <constant name="RENDER_PRIMITIVE_LINESTRIPS" value="3" enum="RenderPrimitive">
2202 Line strip rendering primitive. Lines drawn are connected to the previous vertex.
2203 </constant>
2204 <constant name="RENDER_PRIMITIVE_LINESTRIPS_WITH_ADJACENCY" value="4" enum="RenderPrimitive">
2205 [url=https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#drawing-line-strips-with-adjacency]Line strip rendering primitive with adjacency.[/url]
2206 [b]Note:[/b] Adjacency is only useful with geometry shaders, which Godot does not expose.
2207 </constant>
2208 <constant name="RENDER_PRIMITIVE_TRIANGLES" value="5" enum="RenderPrimitive">
2209 Triangle list rendering primitive. Triangles are drawn separated from each other.
2210 </constant>
2211 <constant name="RENDER_PRIMITIVE_TRIANGLES_WITH_ADJACENCY" value="6" enum="RenderPrimitive">
2212 [url=https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#drawing-triangle-lists-with-adjacency]Triangle list rendering primitive with adjacency.[/url]
2213 [b]Note:[/b] Adjacency is only useful with geometry shaders, which Godot does not expose.
2214 </constant>
2215 <constant name="RENDER_PRIMITIVE_TRIANGLE_STRIPS" value="7" enum="RenderPrimitive">
2216 Triangle strip rendering primitive. Triangles drawn are connected to the previous triangle.
2217 </constant>
2218 <constant name="RENDER_PRIMITIVE_TRIANGLE_STRIPS_WITH_AJACENCY" value="8" enum="RenderPrimitive">
2219 [url=https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#drawing-triangle-strips-with-adjacency]Triangle strip rendering primitive with adjacency.[/url]
2220 [b]Note:[/b] Adjacency is only useful with geometry shaders, which Godot does not expose.
2221 </constant>
2222 <constant name="RENDER_PRIMITIVE_TRIANGLE_STRIPS_WITH_RESTART_INDEX" value="9" enum="RenderPrimitive">
2223 Triangle strip rendering primitive with [i]primitive restart[/i] enabled. Triangles drawn are connected to the previous triangle, but a primitive restart index can be specified before drawing to create a second triangle strip after the specified index.
2224 [b]Note:[/b] Only compatible with indexed draws.
2225 </constant>
2226 <constant name="RENDER_PRIMITIVE_TESSELATION_PATCH" value="10" enum="RenderPrimitive">
2227 Tessellation patch rendering primitive. Only useful with tessellation shaders, which can be used to deform these patches.
2228 </constant>
2229 <constant name="RENDER_PRIMITIVE_MAX" value="11" enum="RenderPrimitive">
2230 Represents the size of the [enum RenderPrimitive] enum.
2231 </constant>
2232 <constant name="POLYGON_CULL_DISABLED" value="0" enum="PolygonCullMode">
2233 Do not use polygon front face or backface culling.
2234 </constant>
2235 <constant name="POLYGON_CULL_FRONT" value="1" enum="PolygonCullMode">
2236 Use polygon frontface culling (faces pointing towards the camera are hidden).
2237 </constant>
2238 <constant name="POLYGON_CULL_BACK" value="2" enum="PolygonCullMode">
2239 Use polygon backface culling (faces pointing away from the camera are hidden).
2240 </constant>
2241 <constant name="POLYGON_FRONT_FACE_CLOCKWISE" value="0" enum="PolygonFrontFace">
2242 Clockwise winding order to determine which face of a polygon is its front face.
2243 </constant>
2244 <constant name="POLYGON_FRONT_FACE_COUNTER_CLOCKWISE" value="1" enum="PolygonFrontFace">
2245 Counter-clockwise winding order to determine which face of a polygon is its front face.
2246 </constant>
2247 <constant name="STENCIL_OP_KEEP" value="0" enum="StencilOperation">
2248 Keep the current stencil value.
2249 </constant>
2250 <constant name="STENCIL_OP_ZERO" value="1" enum="StencilOperation">
2251 Set the stencil value to [code]0[/code].
2252 </constant>
2253 <constant name="STENCIL_OP_REPLACE" value="2" enum="StencilOperation">
2254 Replace the existing stencil value with the new one.
2255 </constant>
2256 <constant name="STENCIL_OP_INCREMENT_AND_CLAMP" value="3" enum="StencilOperation">
2257 Increment the existing stencil value and clamp to the maximum representable unsigned value if reached. Stencil bits are considered as an unsigned integer.
2258 </constant>
2259 <constant name="STENCIL_OP_DECREMENT_AND_CLAMP" value="4" enum="StencilOperation">
2260 Decrement the existing stencil value and clamp to the minimum value if reached. Stencil bits are considered as an unsigned integer.
2261 </constant>
2262 <constant name="STENCIL_OP_INVERT" value="5" enum="StencilOperation">
2263 Bitwise-invert the existing stencil value.
2264 </constant>
2265 <constant name="STENCIL_OP_INCREMENT_AND_WRAP" value="6" enum="StencilOperation">
2266 Increment the stencil value and wrap around to [code]0[/code] if reaching the maximum representable unsigned. Stencil bits are considered as an unsigned integer.
2267 </constant>
2268 <constant name="STENCIL_OP_DECREMENT_AND_WRAP" value="7" enum="StencilOperation">
2269 Decrement the stencil value and wrap around to the maximum representable unsigned if reaching the minimum. Stencil bits are considered as an unsigned integer.
2270 </constant>
2271 <constant name="STENCIL_OP_MAX" value="8" enum="StencilOperation">
2272 Represents the size of the [enum StencilOperation] enum.
2273 </constant>
2274 <constant name="COMPARE_OP_NEVER" value="0" enum="CompareOperator">
2275 "Never" comparison (opposite of [constant COMPARE_OP_ALWAYS]).
2276 </constant>
2277 <constant name="COMPARE_OP_LESS" value="1" enum="CompareOperator">
2278 "Less than" comparison.
2279 </constant>
2280 <constant name="COMPARE_OP_EQUAL" value="2" enum="CompareOperator">
2281 "Equal" comparison.
2282 </constant>
2283 <constant name="COMPARE_OP_LESS_OR_EQUAL" value="3" enum="CompareOperator">
2284 "Less than or equal" comparison.
2285 </constant>
2286 <constant name="COMPARE_OP_GREATER" value="4" enum="CompareOperator">
2287 "Greater than" comparison.
2288 </constant>
2289 <constant name="COMPARE_OP_NOT_EQUAL" value="5" enum="CompareOperator">
2290 "Not equal" comparison.
2291 </constant>
2292 <constant name="COMPARE_OP_GREATER_OR_EQUAL" value="6" enum="CompareOperator">
2293 "Greater than or equal" comparison.
2294 </constant>
2295 <constant name="COMPARE_OP_ALWAYS" value="7" enum="CompareOperator">
2296 "Always" comparison (opposite of [constant COMPARE_OP_NEVER]).
2297 </constant>
2298 <constant name="COMPARE_OP_MAX" value="8" enum="CompareOperator">
2299 Represents the size of the [enum CompareOperator] enum.
2300 </constant>
2301 <constant name="LOGIC_OP_CLEAR" value="0" enum="LogicOperation">
2302 Clear logic operation (result is always [code]0[/code]). See also [constant LOGIC_OP_SET].
2303 </constant>
2304 <constant name="LOGIC_OP_AND" value="1" enum="LogicOperation">
2305 AND logic operation.
2306 </constant>
2307 <constant name="LOGIC_OP_AND_REVERSE" value="2" enum="LogicOperation">
2308 AND logic operation with the [i]destination[/i] operand being inverted. See also [constant LOGIC_OP_AND_INVERTED].
2309 </constant>
2310 <constant name="LOGIC_OP_COPY" value="3" enum="LogicOperation">
2311 Copy logic operation (keeps the [i]source[/i] value as-is). See also [constant LOGIC_OP_COPY_INVERTED] and [constant LOGIC_OP_NO_OP].
2312 </constant>
2313 <constant name="LOGIC_OP_AND_INVERTED" value="4" enum="LogicOperation">
2314 AND logic operation with the [i]source[/i] operand being inverted. See also [constant LOGIC_OP_AND_REVERSE].
2315 </constant>
2316 <constant name="LOGIC_OP_NO_OP" value="5" enum="LogicOperation">
2317 No-op logic operation (keeps the [i]destination[/i] value as-is). See also [constant LOGIC_OP_COPY].
2318 </constant>
2319 <constant name="LOGIC_OP_XOR" value="6" enum="LogicOperation">
2320 Exclusive or (XOR) logic operation.
2321 </constant>
2322 <constant name="LOGIC_OP_OR" value="7" enum="LogicOperation">
2323 OR logic operation.
2324 </constant>
2325 <constant name="LOGIC_OP_NOR" value="8" enum="LogicOperation">
2326 Not-OR (NOR) logic operation.
2327 </constant>
2328 <constant name="LOGIC_OP_EQUIVALENT" value="9" enum="LogicOperation">
2329 Not-XOR (XNOR) logic operation.
2330 </constant>
2331 <constant name="LOGIC_OP_INVERT" value="10" enum="LogicOperation">
2332 Invert logic operation.
2333 </constant>
2334 <constant name="LOGIC_OP_OR_REVERSE" value="11" enum="LogicOperation">
2335 OR logic operation with the [i]destination[/i] operand being inverted. See also [constant LOGIC_OP_OR_REVERSE].
2336 </constant>
2337 <constant name="LOGIC_OP_COPY_INVERTED" value="12" enum="LogicOperation">
2338 NOT logic operation (inverts the value). See also [constant LOGIC_OP_COPY].
2339 </constant>
2340 <constant name="LOGIC_OP_OR_INVERTED" value="13" enum="LogicOperation">
2341 OR logic operation with the [i]source[/i] operand being inverted. See also [constant LOGIC_OP_OR_REVERSE].
2342 </constant>
2343 <constant name="LOGIC_OP_NAND" value="14" enum="LogicOperation">
2344 Not-AND (NAND) logic operation.
2345 </constant>
2346 <constant name="LOGIC_OP_SET" value="15" enum="LogicOperation">
2347 SET logic operation (result is always [code]1[/code]). See also [constant LOGIC_OP_CLEAR].
2348 </constant>
2349 <constant name="LOGIC_OP_MAX" value="16" enum="LogicOperation">
2350 Represents the size of the [enum LogicOperation] enum.
2351 </constant>
2352 <constant name="BLEND_FACTOR_ZERO" value="0" enum="BlendFactor">
2353 Constant [code]0.0[/code] blend factor.
2354 </constant>
2355 <constant name="BLEND_FACTOR_ONE" value="1" enum="BlendFactor">
2356 Constant [code]1.0[/code] blend factor.
2357 </constant>
2358 <constant name="BLEND_FACTOR_SRC_COLOR" value="2" enum="BlendFactor">
2359 Color blend factor is [code]source color[/code]. Alpha blend factor is [code]source alpha[/code].
2360 </constant>
2361 <constant name="BLEND_FACTOR_ONE_MINUS_SRC_COLOR" value="3" enum="BlendFactor">
2362 Color blend factor is [code]1.0 - source color[/code]. Alpha blend factor is [code]1.0 - source alpha[/code].
2363 </constant>
2364 <constant name="BLEND_FACTOR_DST_COLOR" value="4" enum="BlendFactor">
2365 Color blend factor is [code]destination color[/code]. Alpha blend factor is [code]destination alpha[/code].
2366 </constant>
2367 <constant name="BLEND_FACTOR_ONE_MINUS_DST_COLOR" value="5" enum="BlendFactor">
2368 Color blend factor is [code]1.0 - destination color[/code]. Alpha blend factor is [code]1.0 - destination alpha[/code].
2369 </constant>
2370 <constant name="BLEND_FACTOR_SRC_ALPHA" value="6" enum="BlendFactor">
2371 Color and alpha blend factor is [code]source alpha[/code].
2372 </constant>
2373 <constant name="BLEND_FACTOR_ONE_MINUS_SRC_ALPHA" value="7" enum="BlendFactor">
2374 Color and alpha blend factor is [code]1.0 - source alpha[/code].
2375 </constant>
2376 <constant name="BLEND_FACTOR_DST_ALPHA" value="8" enum="BlendFactor">
2377 Color and alpha blend factor is [code]destination alpha[/code].
2378 </constant>
2379 <constant name="BLEND_FACTOR_ONE_MINUS_DST_ALPHA" value="9" enum="BlendFactor">
2380 Color and alpha blend factor is [code]1.0 - destination alpha[/code].
2381 </constant>
2382 <constant name="BLEND_FACTOR_CONSTANT_COLOR" value="10" enum="BlendFactor">
2383 Color blend factor is [code]blend constant color[/code]. Alpha blend factor is [code]blend constant alpha[/code] (see [method draw_list_set_blend_constants]).
2384 </constant>
2385 <constant name="BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR" value="11" enum="BlendFactor">
2386 Color blend factor is [code]1.0 - blend constant color[/code]. Alpha blend factor is [code]1.0 - blend constant alpha[/code] (see [method draw_list_set_blend_constants]).
2387 </constant>
2388 <constant name="BLEND_FACTOR_CONSTANT_ALPHA" value="12" enum="BlendFactor">
2389 Color and alpha blend factor is [code]blend constant alpha[/code] (see [method draw_list_set_blend_constants]).
2390 </constant>
2391 <constant name="BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA" value="13" enum="BlendFactor">
2392 Color and alpha blend factor is [code]1.0 - blend constant alpha[/code] (see [method draw_list_set_blend_constants]).
2393 </constant>
2394 <constant name="BLEND_FACTOR_SRC_ALPHA_SATURATE" value="14" enum="BlendFactor">
2395 Color blend factor is [code]min(source alpha, 1.0 - destination alpha)[/code]. Alpha blend factor is [code]1.0[/code].
2396 </constant>
2397 <constant name="BLEND_FACTOR_SRC1_COLOR" value="15" enum="BlendFactor">
2398 Color blend factor is [code]second source color[/code]. Alpha blend factor is [code]second source alpha[/code]. Only relevant for dual-source blending.
2399 </constant>
2400 <constant name="BLEND_FACTOR_ONE_MINUS_SRC1_COLOR" value="16" enum="BlendFactor">
2401 Color blend factor is [code]1.0 - second source color[/code]. Alpha blend factor is [code]1.0 - second source alpha[/code]. Only relevant for dual-source blending.
2402 </constant>
2403 <constant name="BLEND_FACTOR_SRC1_ALPHA" value="17" enum="BlendFactor">
2404 Color and alpha blend factor is [code]second source alpha[/code]. Only relevant for dual-source blending.
2405 </constant>
2406 <constant name="BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA" value="18" enum="BlendFactor">
2407 Color and alpha blend factor is [code]1.0 - second source alpha[/code]. Only relevant for dual-source blending.
2408 </constant>
2409 <constant name="BLEND_FACTOR_MAX" value="19" enum="BlendFactor">
2410 Represents the size of the [enum BlendFactor] enum.
2411 </constant>
2412 <constant name="BLEND_OP_ADD" value="0" enum="BlendOperation">
2413 Additive blending operation ([code]source + destination[/code]).
2414 </constant>
2415 <constant name="BLEND_OP_SUBTRACT" value="1" enum="BlendOperation">
2416 Subtractive blending operation ([code]source - destination[/code]).
2417 </constant>
2418 <constant name="BLEND_OP_REVERSE_SUBTRACT" value="2" enum="BlendOperation">
2419 Reverse subtractive blending operation ([code]destination - source[/code]).
2420 </constant>
2421 <constant name="BLEND_OP_MINIMUM" value="3" enum="BlendOperation">
2422 Minimum blending operation (keep the lowest value of the two).
2423 </constant>
2424 <constant name="BLEND_OP_MAXIMUM" value="4" enum="BlendOperation">
2425 Maximum blending operation (keep the highest value of the two).
2426 </constant>
2427 <constant name="BLEND_OP_MAX" value="5" enum="BlendOperation">
2428 Represents the size of the [enum BlendOperation] enum.
2429 </constant>
2430 <constant name="DYNAMIC_STATE_LINE_WIDTH" value="1" enum="PipelineDynamicStateFlags" is_bitfield="true">
2431 Allows dynamically changing the width of rendering lines.
2432 </constant>
2433 <constant name="DYNAMIC_STATE_DEPTH_BIAS" value="2" enum="PipelineDynamicStateFlags" is_bitfield="true">
2434 Allows dynamically changing the depth bias.
2435 </constant>
2436 <constant name="DYNAMIC_STATE_BLEND_CONSTANTS" value="4" enum="PipelineDynamicStateFlags" is_bitfield="true">
2437 </constant>
2438 <constant name="DYNAMIC_STATE_DEPTH_BOUNDS" value="8" enum="PipelineDynamicStateFlags" is_bitfield="true">
2439 </constant>
2440 <constant name="DYNAMIC_STATE_STENCIL_COMPARE_MASK" value="16" enum="PipelineDynamicStateFlags" is_bitfield="true">
2441 </constant>
2442 <constant name="DYNAMIC_STATE_STENCIL_WRITE_MASK" value="32" enum="PipelineDynamicStateFlags" is_bitfield="true">
2443 </constant>
2444 <constant name="DYNAMIC_STATE_STENCIL_REFERENCE" value="64" enum="PipelineDynamicStateFlags" is_bitfield="true">
2445 </constant>
2446 <constant name="INITIAL_ACTION_LOAD" value="0" enum="InitialAction" deprecated="Initial actions are solved automatically by RenderingDevice.">
2447 Load the previous contents of the framebuffer.
2448 </constant>
2449 <constant name="INITIAL_ACTION_CLEAR" value="1" enum="InitialAction" deprecated="Initial actions are solved automatically by RenderingDevice.">
2450 Clear the whole framebuffer or its specified region.
2451 </constant>
2452 <constant name="INITIAL_ACTION_DISCARD" value="2" enum="InitialAction" deprecated="Initial actions are solved automatically by RenderingDevice.">
2453 Ignore the previous contents of the framebuffer. This is the fastest option if you'll overwrite all of the pixels and don't need to read any of them.
2454 </constant>
2455 <constant name="INITIAL_ACTION_MAX" value="3" enum="InitialAction" deprecated="Initial actions are solved automatically by RenderingDevice.">
2456 Represents the size of the [enum InitialAction] enum.
2457 </constant>
2458 <constant name="INITIAL_ACTION_CLEAR_REGION" value="1" enum="InitialAction" deprecated="Initial actions are solved automatically by RenderingDevice.">
2459 </constant>
2460 <constant name="INITIAL_ACTION_CLEAR_REGION_CONTINUE" value="1" enum="InitialAction" deprecated="Initial actions are solved automatically by RenderingDevice.">
2461 </constant>
2462 <constant name="INITIAL_ACTION_KEEP" value="0" enum="InitialAction" deprecated="Initial actions are solved automatically by RenderingDevice.">
2463 </constant>
2464 <constant name="INITIAL_ACTION_DROP" value="2" enum="InitialAction" deprecated="Initial actions are solved automatically by RenderingDevice.">
2465 </constant>
2466 <constant name="INITIAL_ACTION_CONTINUE" value="0" enum="InitialAction" deprecated="Initial actions are solved automatically by RenderingDevice.">
2467 </constant>
2468 <constant name="FINAL_ACTION_STORE" value="0" enum="FinalAction" deprecated="Final actions are solved automatically by RenderingDevice.">
2469 Store the result of the draw list in the framebuffer. This is generally what you want to do.
2470 </constant>
2471 <constant name="FINAL_ACTION_DISCARD" value="1" enum="FinalAction" deprecated="Final actions are solved automatically by RenderingDevice.">
2472 Discard the contents of the framebuffer. This is the fastest option if you don't need to use the results of the draw list.
2473 </constant>
2474 <constant name="FINAL_ACTION_MAX" value="2" enum="FinalAction" deprecated="Final actions are solved automatically by RenderingDevice.">
2475 Represents the size of the [enum FinalAction] enum.
2476 </constant>
2477 <constant name="FINAL_ACTION_READ" value="0" enum="FinalAction" deprecated="Final actions are solved automatically by RenderingDevice.">
2478 </constant>
2479 <constant name="FINAL_ACTION_CONTINUE" value="0" enum="FinalAction" deprecated="Final actions are solved automatically by RenderingDevice.">
2480 </constant>
2481 <constant name="SHADER_STAGE_VERTEX" value="0" enum="ShaderStage">
2482 Vertex shader stage. This can be used to manipulate vertices from a shader (but not create new vertices).
2483 </constant>
2484 <constant name="SHADER_STAGE_FRAGMENT" value="1" enum="ShaderStage">
2485 Fragment shader stage (called "pixel shader" in Direct3D). This can be used to manipulate pixels from a shader.
2486 </constant>
2487 <constant name="SHADER_STAGE_TESSELATION_CONTROL" value="2" enum="ShaderStage">
2488 Tessellation control shader stage. This can be used to create additional geometry from a shader.
2489 </constant>
2490 <constant name="SHADER_STAGE_TESSELATION_EVALUATION" value="3" enum="ShaderStage">
2491 Tessellation evaluation shader stage. This can be used to create additional geometry from a shader.
2492 </constant>
2493 <constant name="SHADER_STAGE_COMPUTE" value="4" enum="ShaderStage">
2494 Compute shader stage. This can be used to run arbitrary computing tasks in a shader, performing them on the GPU instead of the CPU.
2495 </constant>
2496 <constant name="SHADER_STAGE_MAX" value="5" enum="ShaderStage">
2497 Represents the size of the [enum ShaderStage] enum.
2498 </constant>
2499 <constant name="SHADER_STAGE_VERTEX_BIT" value="1" enum="ShaderStage">
2500 Vertex shader stage bit (see also [constant SHADER_STAGE_VERTEX]).
2501 </constant>
2502 <constant name="SHADER_STAGE_FRAGMENT_BIT" value="2" enum="ShaderStage">
2503 Fragment shader stage bit (see also [constant SHADER_STAGE_FRAGMENT]).
2504 </constant>
2505 <constant name="SHADER_STAGE_TESSELATION_CONTROL_BIT" value="4" enum="ShaderStage">
2506 Tessellation control shader stage bit (see also [constant SHADER_STAGE_TESSELATION_CONTROL]).
2507 </constant>
2508 <constant name="SHADER_STAGE_TESSELATION_EVALUATION_BIT" value="8" enum="ShaderStage">
2509 Tessellation evaluation shader stage bit (see also [constant SHADER_STAGE_TESSELATION_EVALUATION]).
2510 </constant>
2511 <constant name="SHADER_STAGE_COMPUTE_BIT" value="16" enum="ShaderStage">
2512 Compute shader stage bit (see also [constant SHADER_STAGE_COMPUTE]).
2513 </constant>
2514 <constant name="SHADER_LANGUAGE_GLSL" value="0" enum="ShaderLanguage">
2515 Khronos' GLSL shading language (used natively by OpenGL and Vulkan). This is the language used for core Godot shaders.
2516 </constant>
2517 <constant name="SHADER_LANGUAGE_HLSL" value="1" enum="ShaderLanguage">
2518 Microsoft's High-Level Shading Language (used natively by Direct3D, but can also be used in Vulkan).
2519 </constant>
2520 <constant name="PIPELINE_SPECIALIZATION_CONSTANT_TYPE_BOOL" value="0" enum="PipelineSpecializationConstantType">
2521 Boolean specialization constant.
2522 </constant>
2523 <constant name="PIPELINE_SPECIALIZATION_CONSTANT_TYPE_INT" value="1" enum="PipelineSpecializationConstantType">
2524 Integer specialization constant.
2525 </constant>
2526 <constant name="PIPELINE_SPECIALIZATION_CONSTANT_TYPE_FLOAT" value="2" enum="PipelineSpecializationConstantType">
2527 Floating-point specialization constant.
2528 </constant>
2529 <constant name="SUPPORTS_METALFX_SPATIAL" value="3" enum="Features">
2530 Support for MetalFX spatial upscaling.
2531 </constant>
2532 <constant name="SUPPORTS_METALFX_TEMPORAL" value="4" enum="Features">
2533 Support for MetalFX temporal upscaling.
2534 </constant>
2535 <constant name="SUPPORTS_BUFFER_DEVICE_ADDRESS" value="6" enum="Features">
2536 Features support for buffer device address extension.
2537 </constant>
2538 <constant name="SUPPORTS_IMAGE_ATOMIC_32_BIT" value="7" enum="Features">
2539 Support for 32-bit image atomic operations.
2540 </constant>
2541 <constant name="LIMIT_MAX_BOUND_UNIFORM_SETS" value="0" enum="Limit">
2542 Maximum number of uniform sets that can be bound at a given time.
2543 </constant>
2544 <constant name="LIMIT_MAX_FRAMEBUFFER_COLOR_ATTACHMENTS" value="1" enum="Limit">
2545 Maximum number of color framebuffer attachments that can be used at a given time.
2546 </constant>
2547 <constant name="LIMIT_MAX_TEXTURES_PER_UNIFORM_SET" value="2" enum="Limit">
2548 Maximum number of textures that can be used per uniform set.
2549 </constant>
2550 <constant name="LIMIT_MAX_SAMPLERS_PER_UNIFORM_SET" value="3" enum="Limit">
2551 Maximum number of samplers that can be used per uniform set.
2552 </constant>
2553 <constant name="LIMIT_MAX_STORAGE_BUFFERS_PER_UNIFORM_SET" value="4" enum="Limit">
2554 Maximum number of [url=https://vkguide.dev/docs/chapter-4/storage_buffers/]storage buffers[/url] per uniform set.
2555 </constant>
2556 <constant name="LIMIT_MAX_STORAGE_IMAGES_PER_UNIFORM_SET" value="5" enum="Limit">
2557 Maximum number of storage images per uniform set.
2558 </constant>
2559 <constant name="LIMIT_MAX_UNIFORM_BUFFERS_PER_UNIFORM_SET" value="6" enum="Limit">
2560 Maximum number of uniform buffers per uniform set.
2561 </constant>
2562 <constant name="LIMIT_MAX_DRAW_INDEXED_INDEX" value="7" enum="Limit">
2563 Maximum index for an indexed draw command.
2564 </constant>
2565 <constant name="LIMIT_MAX_FRAMEBUFFER_HEIGHT" value="8" enum="Limit">
2566 Maximum height of a framebuffer (in pixels).
2567 </constant>
2568 <constant name="LIMIT_MAX_FRAMEBUFFER_WIDTH" value="9" enum="Limit">
2569 Maximum width of a framebuffer (in pixels).
2570 </constant>
2571 <constant name="LIMIT_MAX_TEXTURE_ARRAY_LAYERS" value="10" enum="Limit">
2572 Maximum number of texture array layers.
2573 </constant>
2574 <constant name="LIMIT_MAX_TEXTURE_SIZE_1D" value="11" enum="Limit">
2575 Maximum supported 1-dimensional texture size (in pixels on a single axis).
2576 </constant>
2577 <constant name="LIMIT_MAX_TEXTURE_SIZE_2D" value="12" enum="Limit">
2578 Maximum supported 2-dimensional texture size (in pixels on a single axis).
2579 </constant>
2580 <constant name="LIMIT_MAX_TEXTURE_SIZE_3D" value="13" enum="Limit">
2581 Maximum supported 3-dimensional texture size (in pixels on a single axis).
2582 </constant>
2583 <constant name="LIMIT_MAX_TEXTURE_SIZE_CUBE" value="14" enum="Limit">
2584 Maximum supported cubemap texture size (in pixels on a single axis of a single face).
2585 </constant>
2586 <constant name="LIMIT_MAX_TEXTURES_PER_SHADER_STAGE" value="15" enum="Limit">
2587 Maximum number of textures per shader stage.
2588 </constant>
2589 <constant name="LIMIT_MAX_SAMPLERS_PER_SHADER_STAGE" value="16" enum="Limit">
2590 Maximum number of samplers per shader stage.
2591 </constant>
2592 <constant name="LIMIT_MAX_STORAGE_BUFFERS_PER_SHADER_STAGE" value="17" enum="Limit">
2593 Maximum number of [url=https://vkguide.dev/docs/chapter-4/storage_buffers/]storage buffers[/url] per shader stage.
2594 </constant>
2595 <constant name="LIMIT_MAX_STORAGE_IMAGES_PER_SHADER_STAGE" value="18" enum="Limit">
2596 Maximum number of storage images per shader stage.
2597 </constant>
2598 <constant name="LIMIT_MAX_UNIFORM_BUFFERS_PER_SHADER_STAGE" value="19" enum="Limit">
2599 Maximum number of uniform buffers per uniform set.
2600 </constant>
2601 <constant name="LIMIT_MAX_PUSH_CONSTANT_SIZE" value="20" enum="Limit">
2602 Maximum size of a push constant. A lot of devices are limited to 128 bytes, so try to avoid exceeding 128 bytes in push constants to ensure compatibility even if your GPU is reporting a higher value.
2603 </constant>
2604 <constant name="LIMIT_MAX_UNIFORM_BUFFER_SIZE" value="21" enum="Limit">
2605 Maximum size of a uniform buffer.
2606 </constant>
2607 <constant name="LIMIT_MAX_VERTEX_INPUT_ATTRIBUTE_OFFSET" value="22" enum="Limit">
2608 Maximum vertex input attribute offset.
2609 </constant>
2610 <constant name="LIMIT_MAX_VERTEX_INPUT_ATTRIBUTES" value="23" enum="Limit">
2611 Maximum number of vertex input attributes.
2612 </constant>
2613 <constant name="LIMIT_MAX_VERTEX_INPUT_BINDINGS" value="24" enum="Limit">
2614 Maximum number of vertex input bindings.
2615 </constant>
2616 <constant name="LIMIT_MAX_VERTEX_INPUT_BINDING_STRIDE" value="25" enum="Limit">
2617 Maximum vertex input binding stride.
2618 </constant>
2619 <constant name="LIMIT_MIN_UNIFORM_BUFFER_OFFSET_ALIGNMENT" value="26" enum="Limit">
2620 Minimum uniform buffer offset alignment.
2621 </constant>
2622 <constant name="LIMIT_MAX_COMPUTE_SHARED_MEMORY_SIZE" value="27" enum="Limit">
2623 Maximum shared memory size for compute shaders.
2624 </constant>
2625 <constant name="LIMIT_MAX_COMPUTE_WORKGROUP_COUNT_X" value="28" enum="Limit">
2626 Maximum number of workgroups for compute shaders on the X axis.
2627 </constant>
2628 <constant name="LIMIT_MAX_COMPUTE_WORKGROUP_COUNT_Y" value="29" enum="Limit">
2629 Maximum number of workgroups for compute shaders on the Y axis.
2630 </constant>
2631 <constant name="LIMIT_MAX_COMPUTE_WORKGROUP_COUNT_Z" value="30" enum="Limit">
2632 Maximum number of workgroups for compute shaders on the Z axis.
2633 </constant>
2634 <constant name="LIMIT_MAX_COMPUTE_WORKGROUP_INVOCATIONS" value="31" enum="Limit">
2635 Maximum number of workgroup invocations for compute shaders.
2636 </constant>
2637 <constant name="LIMIT_MAX_COMPUTE_WORKGROUP_SIZE_X" value="32" enum="Limit">
2638 Maximum workgroup size for compute shaders on the X axis.
2639 </constant>
2640 <constant name="LIMIT_MAX_COMPUTE_WORKGROUP_SIZE_Y" value="33" enum="Limit">
2641 Maximum workgroup size for compute shaders on the Y axis.
2642 </constant>
2643 <constant name="LIMIT_MAX_COMPUTE_WORKGROUP_SIZE_Z" value="34" enum="Limit">
2644 Maximum workgroup size for compute shaders on the Z axis.
2645 </constant>
2646 <constant name="LIMIT_MAX_VIEWPORT_DIMENSIONS_X" value="35" enum="Limit">
2647 Maximum viewport width (in pixels).
2648 </constant>
2649 <constant name="LIMIT_MAX_VIEWPORT_DIMENSIONS_Y" value="36" enum="Limit">
2650 Maximum viewport height (in pixels).
2651 </constant>
2652 <constant name="LIMIT_METALFX_TEMPORAL_SCALER_MIN_SCALE" value="46" enum="Limit">
2653 Returns the smallest value for [member ProjectSettings.rendering/scaling_3d/scale] when using the MetalFX temporal upscaler.
2654 [b]Note:[/b] The returned value is multiplied by a factor of [code]1000000[/code] to preserve 6 digits of precision. It must be divided by [code]1000000.0[/code] to convert the value to a floating point number.
2655 </constant>
2656 <constant name="LIMIT_METALFX_TEMPORAL_SCALER_MAX_SCALE" value="47" enum="Limit">
2657 Returns the largest value for [member ProjectSettings.rendering/scaling_3d/scale] when using the MetalFX temporal upscaler.
2658 [b]Note:[/b] The returned value is multiplied by a factor of [code]1000000[/code] to preserve 6 digits of precision. It must be divided by [code]1000000.0[/code] to convert the value to a floating point number.
2659 </constant>
2660 <constant name="MEMORY_TEXTURES" value="0" enum="MemoryType">
2661 Memory taken by textures.
2662 </constant>
2663 <constant name="MEMORY_BUFFERS" value="1" enum="MemoryType">
2664 Memory taken by buffers.
2665 </constant>
2666 <constant name="MEMORY_TOTAL" value="2" enum="MemoryType">
2667 Total memory taken. This is greater than the sum of [constant MEMORY_TEXTURES] and [constant MEMORY_BUFFERS], as it also includes miscellaneous memory usage.
2668 </constant>
2669 <constant name="INVALID_ID" value="-1">
2670 Returned by functions that return an ID if a value is invalid.
2671 </constant>
2672 <constant name="INVALID_FORMAT_ID" value="-1">
2673 Returned by functions that return a format ID if a value is invalid.
2674 </constant>
2675 <constant name="NONE" value="0" enum="BreadcrumbMarker">
2676 No breadcrumb marker will be added.
2677 </constant>
2678 <constant name="REFLECTION_PROBES" value="65536" enum="BreadcrumbMarker">
2679 During a GPU crash in dev or debug mode, Godot's error message will include [code]"REFLECTION_PROBES"[/code] for added context as to when the crash occurred.
2680 </constant>
2681 <constant name="SKY_PASS" value="131072" enum="BreadcrumbMarker">
2682 During a GPU crash in dev or debug mode, Godot's error message will include [code]"SKY_PASS"[/code] for added context as to when the crash occurred.
2683 </constant>
2684 <constant name="LIGHTMAPPER_PASS" value="196608" enum="BreadcrumbMarker">
2685 During a GPU crash in dev or debug mode, Godot's error message will include [code]"LIGHTMAPPER_PASS"[/code] for added context as to when the crash occurred.
2686 </constant>
2687 <constant name="SHADOW_PASS_DIRECTIONAL" value="262144" enum="BreadcrumbMarker">
2688 During a GPU crash in dev or debug mode, Godot's error message will include [code]"SHADOW_PASS_DIRECTIONAL"[/code] for added context as to when the crash occurred.
2689 </constant>
2690 <constant name="SHADOW_PASS_CUBE" value="327680" enum="BreadcrumbMarker">
2691 During a GPU crash in dev or debug mode, Godot's error message will include [code]"SHADOW_PASS_CUBE"[/code] for added context as to when the crash occurred.
2692 </constant>
2693 <constant name="OPAQUE_PASS" value="393216" enum="BreadcrumbMarker">
2694 During a GPU crash in dev or debug mode, Godot's error message will include [code]"OPAQUE_PASS"[/code] for added context as to when the crash occurred.
2695 </constant>
2696 <constant name="ALPHA_PASS" value="458752" enum="BreadcrumbMarker">
2697 During a GPU crash in dev or debug mode, Godot's error message will include [code]"ALPHA_PASS"[/code] for added context as to when the crash occurred.
2698 </constant>
2699 <constant name="TRANSPARENT_PASS" value="524288" enum="BreadcrumbMarker">
2700 During a GPU crash in dev or debug mode, Godot's error message will include [code]"TRANSPARENT_PASS"[/code] for added context as to when the crash occurred.
2701 </constant>
2702 <constant name="POST_PROCESSING_PASS" value="589824" enum="BreadcrumbMarker">
2703 During a GPU crash in dev or debug mode, Godot's error message will include [code]"POST_PROCESSING_PASS"[/code] for added context as to when the crash occurred.
2704 </constant>
2705 <constant name="BLIT_PASS" value="655360" enum="BreadcrumbMarker">
2706 During a GPU crash in dev or debug mode, Godot's error message will include [code]"BLIT_PASS"[/code] for added context as to when the crash occurred.
2707 </constant>
2708 <constant name="UI_PASS" value="720896" enum="BreadcrumbMarker">
2709 During a GPU crash in dev or debug mode, Godot's error message will include [code]"UI_PASS"[/code] for added context as to when the crash occurred.
2710 </constant>
2711 <constant name="DEBUG_PASS" value="786432" enum="BreadcrumbMarker">
2712 During a GPU crash in dev or debug mode, Godot's error message will include [code]"DEBUG_PASS"[/code] for added context as to when the crash occurred.
2713 </constant>
2714 <constant name="DRAW_DEFAULT_ALL" value="0" enum="DrawFlags" is_bitfield="true">
2715 Do not clear or ignore any attachments.
2716 </constant>
2717 <constant name="DRAW_CLEAR_COLOR_0" value="1" enum="DrawFlags" is_bitfield="true">
2718 Clear the first color attachment.
2719 </constant>
2720 <constant name="DRAW_CLEAR_COLOR_1" value="2" enum="DrawFlags" is_bitfield="true">
2721 Clear the second color attachment.
2722 </constant>
2723 <constant name="DRAW_CLEAR_COLOR_2" value="4" enum="DrawFlags" is_bitfield="true">
2724 Clear the third color attachment.
2725 </constant>
2726 <constant name="DRAW_CLEAR_COLOR_3" value="8" enum="DrawFlags" is_bitfield="true">
2727 Clear the fourth color attachment.
2728 </constant>
2729 <constant name="DRAW_CLEAR_COLOR_4" value="16" enum="DrawFlags" is_bitfield="true">
2730 Clear the fifth color attachment.
2731 </constant>
2732 <constant name="DRAW_CLEAR_COLOR_5" value="32" enum="DrawFlags" is_bitfield="true">
2733 Clear the sixth color attachment.
2734 </constant>
2735 <constant name="DRAW_CLEAR_COLOR_6" value="64" enum="DrawFlags" is_bitfield="true">
2736 Clear the seventh color attachment.
2737 </constant>
2738 <constant name="DRAW_CLEAR_COLOR_7" value="128" enum="DrawFlags" is_bitfield="true">
2739 Clear the eighth color attachment.
2740 </constant>
2741 <constant name="DRAW_CLEAR_COLOR_MASK" value="255" enum="DrawFlags" is_bitfield="true">
2742 Mask for clearing all color attachments.
2743 </constant>
2744 <constant name="DRAW_CLEAR_COLOR_ALL" value="255" enum="DrawFlags" is_bitfield="true">
2745 Clear all color attachments.
2746 </constant>
2747 <constant name="DRAW_IGNORE_COLOR_0" value="256" enum="DrawFlags" is_bitfield="true">
2748 Ignore the previous contents of the first color attachment.
2749 </constant>
2750 <constant name="DRAW_IGNORE_COLOR_1" value="512" enum="DrawFlags" is_bitfield="true">
2751 Ignore the previous contents of the second color attachment.
2752 </constant>
2753 <constant name="DRAW_IGNORE_COLOR_2" value="1024" enum="DrawFlags" is_bitfield="true">
2754 Ignore the previous contents of the third color attachment.
2755 </constant>
2756 <constant name="DRAW_IGNORE_COLOR_3" value="2048" enum="DrawFlags" is_bitfield="true">
2757 Ignore the previous contents of the fourth color attachment.
2758 </constant>
2759 <constant name="DRAW_IGNORE_COLOR_4" value="4096" enum="DrawFlags" is_bitfield="true">
2760 Ignore the previous contents of the fifth color attachment.
2761 </constant>
2762 <constant name="DRAW_IGNORE_COLOR_5" value="8192" enum="DrawFlags" is_bitfield="true">
2763 Ignore the previous contents of the sixth color attachment.
2764 </constant>
2765 <constant name="DRAW_IGNORE_COLOR_6" value="16384" enum="DrawFlags" is_bitfield="true">
2766 Ignore the previous contents of the seventh color attachment.
2767 </constant>
2768 <constant name="DRAW_IGNORE_COLOR_7" value="32768" enum="DrawFlags" is_bitfield="true">
2769 Ignore the previous contents of the eighth color attachment.
2770 </constant>
2771 <constant name="DRAW_IGNORE_COLOR_MASK" value="65280" enum="DrawFlags" is_bitfield="true">
2772 Mask for ignoring all the previous contents of the color attachments.
2773 </constant>
2774 <constant name="DRAW_IGNORE_COLOR_ALL" value="65280" enum="DrawFlags" is_bitfield="true">
2775 Ignore the previous contents of all color attachments.
2776 </constant>
2777 <constant name="DRAW_CLEAR_DEPTH" value="65536" enum="DrawFlags" is_bitfield="true">
2778 Clear the depth attachment.
2779 </constant>
2780 <constant name="DRAW_IGNORE_DEPTH" value="131072" enum="DrawFlags" is_bitfield="true">
2781 Ignore the previous contents of the depth attachment.
2782 </constant>
2783 <constant name="DRAW_CLEAR_STENCIL" value="262144" enum="DrawFlags" is_bitfield="true">
2784 Clear the stencil attachment.
2785 </constant>
2786 <constant name="DRAW_IGNORE_STENCIL" value="524288" enum="DrawFlags" is_bitfield="true">
2787 Ignore the previous contents of the stencil attachment.
2788 </constant>
2789 <constant name="DRAW_CLEAR_ALL" value="327935" enum="DrawFlags" is_bitfield="true">
2790 Clear all attachments.
2791 </constant>
2792 <constant name="DRAW_IGNORE_ALL" value="720640" enum="DrawFlags" is_bitfield="true">
2793 Ignore the previous contents of all attachments.
2794 </constant>
2795 </constants>
2796 </class>