mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2025-12-31 09:49:22 +03:00
6994 lines
516 KiB
ReStructuredText
6994 lines
516 KiB
ReStructuredText
:github_url: hide
|
||
|
||
.. _class_RenderingDevice:
|
||
|
||
RenderingDevice
|
||
===============
|
||
|
||
**繼承:** :ref:`Object<class_Object>`
|
||
|
||
用於處理現代低階圖形 API 的抽象。
|
||
|
||
.. rst-class:: classref-introduction-group
|
||
|
||
說明
|
||
----
|
||
|
||
**RenderingDevice** 是用來使用 Vulkan 等現代低階圖形 API 的抽象。與(適用於 Godot 自有算繪子系統的)\ :ref:`RenderingServer<class_RenderingServer>` 相比,\ **RenderingDevice** 所處的層級更低,能夠更加直接地使用底層圖形 API。Godot 使用 **RenderingDevice** 來支援部分現代低階圖形 API,能夠減少所需的重複程式碼。你也可以在自己的專案中使用 **RenderingDevice**\ ,從而執行 :ref:`RenderingServer<class_RenderingServer>` 和高階節點未暴露的功能,例如使用計算著色器。
|
||
|
||
啟動時,Godot 會建立一個全域的 **RenderingDevice**\ ,可以使用 :ref:`RenderingServer.get_rendering_device()<class_RenderingServer_method_get_rendering_device>` 獲取。這個全域的 **RenderingDevice** 進行的是螢幕繪圖。
|
||
|
||
\ **局部 RenderingDevice:**\ 你可以使用 :ref:`RenderingServer.create_local_rendering_device()<class_RenderingServer_method_create_local_rendering_device>` 建立“次級”算繪裝置,在單獨的執行緒中進行算繪和 GPU 計算操作。
|
||
|
||
\ **注意:**\ 使用 **RenderingDevice** 需要對 Vulkan、Direct3D 12、Metal 或 WebGPU 有中等水平的知識。這些圖形 API 比 OpenGL 和 Direct3D 所處的層級更低,能夠執行原本由圖形驅動自己實作的功能。如果這個類中所使用的概念你理解起來有困難,請學習 `Vulkan 教學 <https://vulkan-tutorial.com/>`__\ 或 `Vulkan 指南 <https://vkguide.dev/>`__\ 。在嘗試學習低階圖形 API 之前,建議先學習現代 OpenGL 或 Direct3D 11 相關的知識。
|
||
|
||
\ **注意:**\ 使用無頭模式運作或使用 Compatibility 算繪方法時,\ **RenderingDevice** 不可用。
|
||
|
||
.. rst-class:: classref-introduction-group
|
||
|
||
教學
|
||
----
|
||
|
||
- :doc:`使用計算著色器 <../tutorials/shaders/compute_shaders>`
|
||
|
||
.. rst-class:: classref-reftable-group
|
||
|
||
方法
|
||
----
|
||
|
||
.. table::
|
||
:widths: auto
|
||
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`barrier<class_RenderingDevice_method_barrier>`\ (\ from\: |bitfield|\[:ref:`BarrierMask<enum_RenderingDevice_BarrierMask>`\] = 32767, to\: |bitfield|\[:ref:`BarrierMask<enum_RenderingDevice_BarrierMask>`\] = 32767\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`Error<enum_@GlobalScope_Error>` | :ref:`buffer_clear<class_RenderingDevice_method_buffer_clear>`\ (\ buffer\: :ref:`RID<class_RID>`, offset\: :ref:`int<class_int>`, size_bytes\: :ref:`int<class_int>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`Error<enum_@GlobalScope_Error>` | :ref:`buffer_copy<class_RenderingDevice_method_buffer_copy>`\ (\ src_buffer\: :ref:`RID<class_RID>`, dst_buffer\: :ref:`RID<class_RID>`, src_offset\: :ref:`int<class_int>`, dst_offset\: :ref:`int<class_int>`, size\: :ref:`int<class_int>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`PackedByteArray<class_PackedByteArray>` | :ref:`buffer_get_data<class_RenderingDevice_method_buffer_get_data>`\ (\ buffer\: :ref:`RID<class_RID>`, offset_bytes\: :ref:`int<class_int>` = 0, size_bytes\: :ref:`int<class_int>` = 0\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`Error<enum_@GlobalScope_Error>` | :ref:`buffer_get_data_async<class_RenderingDevice_method_buffer_get_data_async>`\ (\ buffer\: :ref:`RID<class_RID>`, callback\: :ref:`Callable<class_Callable>`, offset_bytes\: :ref:`int<class_int>` = 0, size_bytes\: :ref:`int<class_int>` = 0\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`buffer_get_device_address<class_RenderingDevice_method_buffer_get_device_address>`\ (\ buffer\: :ref:`RID<class_RID>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`Error<enum_@GlobalScope_Error>` | :ref:`buffer_update<class_RenderingDevice_method_buffer_update>`\ (\ buffer\: :ref:`RID<class_RID>`, offset\: :ref:`int<class_int>`, size_bytes\: :ref:`int<class_int>`, data\: :ref:`PackedByteArray<class_PackedByteArray>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`capture_timestamp<class_RenderingDevice_method_capture_timestamp>`\ (\ name\: :ref:`String<class_String>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`compute_list_add_barrier<class_RenderingDevice_method_compute_list_add_barrier>`\ (\ compute_list\: :ref:`int<class_int>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`compute_list_begin<class_RenderingDevice_method_compute_list_begin>`\ (\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`compute_list_bind_compute_pipeline<class_RenderingDevice_method_compute_list_bind_compute_pipeline>`\ (\ compute_list\: :ref:`int<class_int>`, compute_pipeline\: :ref:`RID<class_RID>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`compute_list_bind_uniform_set<class_RenderingDevice_method_compute_list_bind_uniform_set>`\ (\ compute_list\: :ref:`int<class_int>`, uniform_set\: :ref:`RID<class_RID>`, set_index\: :ref:`int<class_int>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`compute_list_dispatch<class_RenderingDevice_method_compute_list_dispatch>`\ (\ compute_list\: :ref:`int<class_int>`, x_groups\: :ref:`int<class_int>`, y_groups\: :ref:`int<class_int>`, z_groups\: :ref:`int<class_int>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`compute_list_dispatch_indirect<class_RenderingDevice_method_compute_list_dispatch_indirect>`\ (\ compute_list\: :ref:`int<class_int>`, buffer\: :ref:`RID<class_RID>`, offset\: :ref:`int<class_int>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`compute_list_end<class_RenderingDevice_method_compute_list_end>`\ (\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`compute_list_set_push_constant<class_RenderingDevice_method_compute_list_set_push_constant>`\ (\ compute_list\: :ref:`int<class_int>`, buffer\: :ref:`PackedByteArray<class_PackedByteArray>`, size_bytes\: :ref:`int<class_int>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`RID<class_RID>` | :ref:`compute_pipeline_create<class_RenderingDevice_method_compute_pipeline_create>`\ (\ shader\: :ref:`RID<class_RID>`, specialization_constants\: :ref:`Array<class_Array>`\[:ref:`RDPipelineSpecializationConstant<class_RDPipelineSpecializationConstant>`\] = []\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`compute_pipeline_is_valid<class_RenderingDevice_method_compute_pipeline_is_valid>`\ (\ compute_pipeline\: :ref:`RID<class_RID>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`RenderingDevice<class_RenderingDevice>` | :ref:`create_local_device<class_RenderingDevice_method_create_local_device>`\ (\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`draw_command_begin_label<class_RenderingDevice_method_draw_command_begin_label>`\ (\ name\: :ref:`String<class_String>`, color\: :ref:`Color<class_Color>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`draw_command_end_label<class_RenderingDevice_method_draw_command_end_label>`\ (\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`draw_command_insert_label<class_RenderingDevice_method_draw_command_insert_label>`\ (\ name\: :ref:`String<class_String>`, color\: :ref:`Color<class_Color>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`draw_list_begin<class_RenderingDevice_method_draw_list_begin>`\ (\ framebuffer\: :ref:`RID<class_RID>`, draw_flags\: |bitfield|\[:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>`\] = 0, clear_color_values\: :ref:`PackedColorArray<class_PackedColorArray>` = PackedColorArray(), clear_depth_value\: :ref:`float<class_float>` = 1.0, clear_stencil_value\: :ref:`int<class_int>` = 0, region\: :ref:`Rect2<class_Rect2>` = Rect2(0, 0, 0, 0), breadcrumb\: :ref:`int<class_int>` = 0\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`draw_list_begin_for_screen<class_RenderingDevice_method_draw_list_begin_for_screen>`\ (\ screen\: :ref:`int<class_int>` = 0, clear_color\: :ref:`Color<class_Color>` = Color(0, 0, 0, 1)\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`PackedInt64Array<class_PackedInt64Array>` | :ref:`draw_list_begin_split<class_RenderingDevice_method_draw_list_begin_split>`\ (\ framebuffer\: :ref:`RID<class_RID>`, splits\: :ref:`int<class_int>`, initial_color_action\: :ref:`InitialAction<enum_RenderingDevice_InitialAction>`, final_color_action\: :ref:`FinalAction<enum_RenderingDevice_FinalAction>`, initial_depth_action\: :ref:`InitialAction<enum_RenderingDevice_InitialAction>`, final_depth_action\: :ref:`FinalAction<enum_RenderingDevice_FinalAction>`, clear_color_values\: :ref:`PackedColorArray<class_PackedColorArray>` = PackedColorArray(), clear_depth\: :ref:`float<class_float>` = 1.0, clear_stencil\: :ref:`int<class_int>` = 0, region\: :ref:`Rect2<class_Rect2>` = Rect2(0, 0, 0, 0), storage_textures\: :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\] = []\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`draw_list_bind_index_array<class_RenderingDevice_method_draw_list_bind_index_array>`\ (\ draw_list\: :ref:`int<class_int>`, index_array\: :ref:`RID<class_RID>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`draw_list_bind_render_pipeline<class_RenderingDevice_method_draw_list_bind_render_pipeline>`\ (\ draw_list\: :ref:`int<class_int>`, render_pipeline\: :ref:`RID<class_RID>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`draw_list_bind_uniform_set<class_RenderingDevice_method_draw_list_bind_uniform_set>`\ (\ draw_list\: :ref:`int<class_int>`, uniform_set\: :ref:`RID<class_RID>`, set_index\: :ref:`int<class_int>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`draw_list_bind_vertex_array<class_RenderingDevice_method_draw_list_bind_vertex_array>`\ (\ draw_list\: :ref:`int<class_int>`, vertex_array\: :ref:`RID<class_RID>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`draw_list_bind_vertex_buffers_format<class_RenderingDevice_method_draw_list_bind_vertex_buffers_format>`\ (\ draw_list\: :ref:`int<class_int>`, vertex_format\: :ref:`int<class_int>`, vertex_count\: :ref:`int<class_int>`, vertex_buffers\: :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\], offsets\: :ref:`PackedInt64Array<class_PackedInt64Array>` = PackedInt64Array()\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`draw_list_disable_scissor<class_RenderingDevice_method_draw_list_disable_scissor>`\ (\ draw_list\: :ref:`int<class_int>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`draw_list_draw<class_RenderingDevice_method_draw_list_draw>`\ (\ draw_list\: :ref:`int<class_int>`, use_indices\: :ref:`bool<class_bool>`, instances\: :ref:`int<class_int>`, procedural_vertex_count\: :ref:`int<class_int>` = 0\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`draw_list_draw_indirect<class_RenderingDevice_method_draw_list_draw_indirect>`\ (\ draw_list\: :ref:`int<class_int>`, use_indices\: :ref:`bool<class_bool>`, buffer\: :ref:`RID<class_RID>`, offset\: :ref:`int<class_int>` = 0, draw_count\: :ref:`int<class_int>` = 1, stride\: :ref:`int<class_int>` = 0\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`draw_list_enable_scissor<class_RenderingDevice_method_draw_list_enable_scissor>`\ (\ draw_list\: :ref:`int<class_int>`, rect\: :ref:`Rect2<class_Rect2>` = Rect2(0, 0, 0, 0)\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`draw_list_end<class_RenderingDevice_method_draw_list_end>`\ (\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`draw_list_set_blend_constants<class_RenderingDevice_method_draw_list_set_blend_constants>`\ (\ draw_list\: :ref:`int<class_int>`, color\: :ref:`Color<class_Color>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`draw_list_set_push_constant<class_RenderingDevice_method_draw_list_set_push_constant>`\ (\ draw_list\: :ref:`int<class_int>`, buffer\: :ref:`PackedByteArray<class_PackedByteArray>`, size_bytes\: :ref:`int<class_int>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`draw_list_switch_to_next_pass<class_RenderingDevice_method_draw_list_switch_to_next_pass>`\ (\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`PackedInt64Array<class_PackedInt64Array>` | :ref:`draw_list_switch_to_next_pass_split<class_RenderingDevice_method_draw_list_switch_to_next_pass_split>`\ (\ splits\: :ref:`int<class_int>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`RID<class_RID>` | :ref:`framebuffer_create<class_RenderingDevice_method_framebuffer_create>`\ (\ textures\: :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\], validate_with_format\: :ref:`int<class_int>` = -1, view_count\: :ref:`int<class_int>` = 1\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`RID<class_RID>` | :ref:`framebuffer_create_empty<class_RenderingDevice_method_framebuffer_create_empty>`\ (\ size\: :ref:`Vector2i<class_Vector2i>`, samples\: :ref:`TextureSamples<enum_RenderingDevice_TextureSamples>` = 0, validate_with_format\: :ref:`int<class_int>` = -1\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`RID<class_RID>` | :ref:`framebuffer_create_multipass<class_RenderingDevice_method_framebuffer_create_multipass>`\ (\ textures\: :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\], passes\: :ref:`Array<class_Array>`\[:ref:`RDFramebufferPass<class_RDFramebufferPass>`\], validate_with_format\: :ref:`int<class_int>` = -1, view_count\: :ref:`int<class_int>` = 1\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`framebuffer_format_create<class_RenderingDevice_method_framebuffer_format_create>`\ (\ attachments\: :ref:`Array<class_Array>`\[:ref:`RDAttachmentFormat<class_RDAttachmentFormat>`\], view_count\: :ref:`int<class_int>` = 1\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`framebuffer_format_create_empty<class_RenderingDevice_method_framebuffer_format_create_empty>`\ (\ samples\: :ref:`TextureSamples<enum_RenderingDevice_TextureSamples>` = 0\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`framebuffer_format_create_multipass<class_RenderingDevice_method_framebuffer_format_create_multipass>`\ (\ attachments\: :ref:`Array<class_Array>`\[:ref:`RDAttachmentFormat<class_RDAttachmentFormat>`\], passes\: :ref:`Array<class_Array>`\[:ref:`RDFramebufferPass<class_RDFramebufferPass>`\], view_count\: :ref:`int<class_int>` = 1\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`TextureSamples<enum_RenderingDevice_TextureSamples>` | :ref:`framebuffer_format_get_texture_samples<class_RenderingDevice_method_framebuffer_format_get_texture_samples>`\ (\ format\: :ref:`int<class_int>`, render_pass\: :ref:`int<class_int>` = 0\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`framebuffer_get_format<class_RenderingDevice_method_framebuffer_get_format>`\ (\ framebuffer\: :ref:`RID<class_RID>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`framebuffer_is_valid<class_RenderingDevice_method_framebuffer_is_valid>`\ (\ framebuffer\: :ref:`RID<class_RID>`\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`free_rid<class_RenderingDevice_method_free_rid>`\ (\ rid\: :ref:`RID<class_RID>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`full_barrier<class_RenderingDevice_method_full_barrier>`\ (\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_captured_timestamp_cpu_time<class_RenderingDevice_method_get_captured_timestamp_cpu_time>`\ (\ index\: :ref:`int<class_int>`\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_captured_timestamp_gpu_time<class_RenderingDevice_method_get_captured_timestamp_gpu_time>`\ (\ index\: :ref:`int<class_int>`\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`String<class_String>` | :ref:`get_captured_timestamp_name<class_RenderingDevice_method_get_captured_timestamp_name>`\ (\ index\: :ref:`int<class_int>`\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_captured_timestamps_count<class_RenderingDevice_method_get_captured_timestamps_count>`\ (\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_captured_timestamps_frame<class_RenderingDevice_method_get_captured_timestamps_frame>`\ (\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_device_allocation_count<class_RenderingDevice_method_get_device_allocation_count>`\ (\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_device_allocs_by_object_type<class_RenderingDevice_method_get_device_allocs_by_object_type>`\ (\ type\: :ref:`int<class_int>`\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_device_memory_by_object_type<class_RenderingDevice_method_get_device_memory_by_object_type>`\ (\ type\: :ref:`int<class_int>`\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`String<class_String>` | :ref:`get_device_name<class_RenderingDevice_method_get_device_name>`\ (\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`String<class_String>` | :ref:`get_device_pipeline_cache_uuid<class_RenderingDevice_method_get_device_pipeline_cache_uuid>`\ (\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_device_total_memory<class_RenderingDevice_method_get_device_total_memory>`\ (\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`String<class_String>` | :ref:`get_device_vendor_name<class_RenderingDevice_method_get_device_vendor_name>`\ (\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_driver_allocation_count<class_RenderingDevice_method_get_driver_allocation_count>`\ (\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_driver_allocs_by_object_type<class_RenderingDevice_method_get_driver_allocs_by_object_type>`\ (\ type\: :ref:`int<class_int>`\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`String<class_String>` | :ref:`get_driver_and_device_memory_report<class_RenderingDevice_method_get_driver_and_device_memory_report>`\ (\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_driver_memory_by_object_type<class_RenderingDevice_method_get_driver_memory_by_object_type>`\ (\ type\: :ref:`int<class_int>`\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_driver_resource<class_RenderingDevice_method_get_driver_resource>`\ (\ resource\: :ref:`DriverResource<enum_RenderingDevice_DriverResource>`, rid\: :ref:`RID<class_RID>`, index\: :ref:`int<class_int>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_driver_total_memory<class_RenderingDevice_method_get_driver_total_memory>`\ (\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_frame_delay<class_RenderingDevice_method_get_frame_delay>`\ (\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_memory_usage<class_RenderingDevice_method_get_memory_usage>`\ (\ type\: :ref:`MemoryType<enum_RenderingDevice_MemoryType>`\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`String<class_String>` | :ref:`get_perf_report<class_RenderingDevice_method_get_perf_report>`\ (\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`String<class_String>` | :ref:`get_tracked_object_name<class_RenderingDevice_method_get_tracked_object_name>`\ (\ type_index\: :ref:`int<class_int>`\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_tracked_object_type_count<class_RenderingDevice_method_get_tracked_object_type_count>`\ (\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`has_feature<class_RenderingDevice_method_has_feature>`\ (\ feature\: :ref:`Features<enum_RenderingDevice_Features>`\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`RID<class_RID>` | :ref:`index_array_create<class_RenderingDevice_method_index_array_create>`\ (\ index_buffer\: :ref:`RID<class_RID>`, index_offset\: :ref:`int<class_int>`, index_count\: :ref:`int<class_int>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`RID<class_RID>` | :ref:`index_buffer_create<class_RenderingDevice_method_index_buffer_create>`\ (\ size_indices\: :ref:`int<class_int>`, format\: :ref:`IndexBufferFormat<enum_RenderingDevice_IndexBufferFormat>`, data\: :ref:`PackedByteArray<class_PackedByteArray>` = PackedByteArray(), use_restart_indices\: :ref:`bool<class_bool>` = false, creation_bits\: |bitfield|\[:ref:`BufferCreationBits<enum_RenderingDevice_BufferCreationBits>`\] = 0\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`limit_get<class_RenderingDevice_method_limit_get>`\ (\ limit\: :ref:`Limit<enum_RenderingDevice_Limit>`\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`RID<class_RID>` | :ref:`render_pipeline_create<class_RenderingDevice_method_render_pipeline_create>`\ (\ shader\: :ref:`RID<class_RID>`, framebuffer_format\: :ref:`int<class_int>`, vertex_format\: :ref:`int<class_int>`, primitive\: :ref:`RenderPrimitive<enum_RenderingDevice_RenderPrimitive>`, rasterization_state\: :ref:`RDPipelineRasterizationState<class_RDPipelineRasterizationState>`, multisample_state\: :ref:`RDPipelineMultisampleState<class_RDPipelineMultisampleState>`, stencil_state\: :ref:`RDPipelineDepthStencilState<class_RDPipelineDepthStencilState>`, color_blend_state\: :ref:`RDPipelineColorBlendState<class_RDPipelineColorBlendState>`, dynamic_state_flags\: |bitfield|\[:ref:`PipelineDynamicStateFlags<enum_RenderingDevice_PipelineDynamicStateFlags>`\] = 0, for_render_pass\: :ref:`int<class_int>` = 0, specialization_constants\: :ref:`Array<class_Array>`\[:ref:`RDPipelineSpecializationConstant<class_RDPipelineSpecializationConstant>`\] = []\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`render_pipeline_is_valid<class_RenderingDevice_method_render_pipeline_is_valid>`\ (\ render_pipeline\: :ref:`RID<class_RID>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`RID<class_RID>` | :ref:`sampler_create<class_RenderingDevice_method_sampler_create>`\ (\ state\: :ref:`RDSamplerState<class_RDSamplerState>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`sampler_is_format_supported_for_filter<class_RenderingDevice_method_sampler_is_format_supported_for_filter>`\ (\ format\: :ref:`DataFormat<enum_RenderingDevice_DataFormat>`, sampler_filter\: :ref:`SamplerFilter<enum_RenderingDevice_SamplerFilter>`\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`screen_get_framebuffer_format<class_RenderingDevice_method_screen_get_framebuffer_format>`\ (\ screen\: :ref:`int<class_int>` = 0\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`screen_get_height<class_RenderingDevice_method_screen_get_height>`\ (\ screen\: :ref:`int<class_int>` = 0\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`screen_get_width<class_RenderingDevice_method_screen_get_width>`\ (\ screen\: :ref:`int<class_int>` = 0\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`set_resource_name<class_RenderingDevice_method_set_resource_name>`\ (\ id\: :ref:`RID<class_RID>`, name\: :ref:`String<class_String>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`PackedByteArray<class_PackedByteArray>` | :ref:`shader_compile_binary_from_spirv<class_RenderingDevice_method_shader_compile_binary_from_spirv>`\ (\ spirv_data\: :ref:`RDShaderSPIRV<class_RDShaderSPIRV>`, name\: :ref:`String<class_String>` = ""\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`RDShaderSPIRV<class_RDShaderSPIRV>` | :ref:`shader_compile_spirv_from_source<class_RenderingDevice_method_shader_compile_spirv_from_source>`\ (\ shader_source\: :ref:`RDShaderSource<class_RDShaderSource>`, allow_cache\: :ref:`bool<class_bool>` = true\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`RID<class_RID>` | :ref:`shader_create_from_bytecode<class_RenderingDevice_method_shader_create_from_bytecode>`\ (\ binary_data\: :ref:`PackedByteArray<class_PackedByteArray>`, placeholder_rid\: :ref:`RID<class_RID>` = RID()\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`RID<class_RID>` | :ref:`shader_create_from_spirv<class_RenderingDevice_method_shader_create_from_spirv>`\ (\ spirv_data\: :ref:`RDShaderSPIRV<class_RDShaderSPIRV>`, name\: :ref:`String<class_String>` = ""\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`RID<class_RID>` | :ref:`shader_create_placeholder<class_RenderingDevice_method_shader_create_placeholder>`\ (\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`shader_get_vertex_input_attribute_mask<class_RenderingDevice_method_shader_get_vertex_input_attribute_mask>`\ (\ shader\: :ref:`RID<class_RID>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`RID<class_RID>` | :ref:`storage_buffer_create<class_RenderingDevice_method_storage_buffer_create>`\ (\ size_bytes\: :ref:`int<class_int>`, data\: :ref:`PackedByteArray<class_PackedByteArray>` = PackedByteArray(), usage\: |bitfield|\[:ref:`StorageBufferUsage<enum_RenderingDevice_StorageBufferUsage>`\] = 0, creation_bits\: |bitfield|\[:ref:`BufferCreationBits<enum_RenderingDevice_BufferCreationBits>`\] = 0\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`submit<class_RenderingDevice_method_submit>`\ (\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`sync<class_RenderingDevice_method_sync>`\ (\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`RID<class_RID>` | :ref:`texture_buffer_create<class_RenderingDevice_method_texture_buffer_create>`\ (\ size_bytes\: :ref:`int<class_int>`, format\: :ref:`DataFormat<enum_RenderingDevice_DataFormat>`, data\: :ref:`PackedByteArray<class_PackedByteArray>` = PackedByteArray()\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`Error<enum_@GlobalScope_Error>` | :ref:`texture_clear<class_RenderingDevice_method_texture_clear>`\ (\ texture\: :ref:`RID<class_RID>`, color\: :ref:`Color<class_Color>`, base_mipmap\: :ref:`int<class_int>`, mipmap_count\: :ref:`int<class_int>`, base_layer\: :ref:`int<class_int>`, layer_count\: :ref:`int<class_int>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`Error<enum_@GlobalScope_Error>` | :ref:`texture_copy<class_RenderingDevice_method_texture_copy>`\ (\ from_texture\: :ref:`RID<class_RID>`, to_texture\: :ref:`RID<class_RID>`, from_pos\: :ref:`Vector3<class_Vector3>`, to_pos\: :ref:`Vector3<class_Vector3>`, size\: :ref:`Vector3<class_Vector3>`, src_mipmap\: :ref:`int<class_int>`, dst_mipmap\: :ref:`int<class_int>`, src_layer\: :ref:`int<class_int>`, dst_layer\: :ref:`int<class_int>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`RID<class_RID>` | :ref:`texture_create<class_RenderingDevice_method_texture_create>`\ (\ format\: :ref:`RDTextureFormat<class_RDTextureFormat>`, view\: :ref:`RDTextureView<class_RDTextureView>`, data\: :ref:`Array<class_Array>`\[:ref:`PackedByteArray<class_PackedByteArray>`\] = []\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`RID<class_RID>` | :ref:`texture_create_from_extension<class_RenderingDevice_method_texture_create_from_extension>`\ (\ type\: :ref:`TextureType<enum_RenderingDevice_TextureType>`, format\: :ref:`DataFormat<enum_RenderingDevice_DataFormat>`, samples\: :ref:`TextureSamples<enum_RenderingDevice_TextureSamples>`, usage_flags\: |bitfield|\[:ref:`TextureUsageBits<enum_RenderingDevice_TextureUsageBits>`\], image\: :ref:`int<class_int>`, width\: :ref:`int<class_int>`, height\: :ref:`int<class_int>`, depth\: :ref:`int<class_int>`, layers\: :ref:`int<class_int>`, mipmaps\: :ref:`int<class_int>` = 1\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`RID<class_RID>` | :ref:`texture_create_shared<class_RenderingDevice_method_texture_create_shared>`\ (\ view\: :ref:`RDTextureView<class_RDTextureView>`, with_texture\: :ref:`RID<class_RID>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`RID<class_RID>` | :ref:`texture_create_shared_from_slice<class_RenderingDevice_method_texture_create_shared_from_slice>`\ (\ view\: :ref:`RDTextureView<class_RDTextureView>`, with_texture\: :ref:`RID<class_RID>`, layer\: :ref:`int<class_int>`, mipmap\: :ref:`int<class_int>`, mipmaps\: :ref:`int<class_int>` = 1, slice_type\: :ref:`TextureSliceType<enum_RenderingDevice_TextureSliceType>` = 0\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`PackedByteArray<class_PackedByteArray>` | :ref:`texture_get_data<class_RenderingDevice_method_texture_get_data>`\ (\ texture\: :ref:`RID<class_RID>`, layer\: :ref:`int<class_int>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`Error<enum_@GlobalScope_Error>` | :ref:`texture_get_data_async<class_RenderingDevice_method_texture_get_data_async>`\ (\ texture\: :ref:`RID<class_RID>`, layer\: :ref:`int<class_int>`, callback\: :ref:`Callable<class_Callable>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`RDTextureFormat<class_RDTextureFormat>` | :ref:`texture_get_format<class_RenderingDevice_method_texture_get_format>`\ (\ texture\: :ref:`RID<class_RID>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`texture_get_native_handle<class_RenderingDevice_method_texture_get_native_handle>`\ (\ texture\: :ref:`RID<class_RID>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`texture_is_discardable<class_RenderingDevice_method_texture_is_discardable>`\ (\ texture\: :ref:`RID<class_RID>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`texture_is_format_supported_for_usage<class_RenderingDevice_method_texture_is_format_supported_for_usage>`\ (\ format\: :ref:`DataFormat<enum_RenderingDevice_DataFormat>`, usage_flags\: |bitfield|\[:ref:`TextureUsageBits<enum_RenderingDevice_TextureUsageBits>`\]\ ) |const| |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`texture_is_shared<class_RenderingDevice_method_texture_is_shared>`\ (\ texture\: :ref:`RID<class_RID>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`texture_is_valid<class_RenderingDevice_method_texture_is_valid>`\ (\ texture\: :ref:`RID<class_RID>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`Error<enum_@GlobalScope_Error>` | :ref:`texture_resolve_multisample<class_RenderingDevice_method_texture_resolve_multisample>`\ (\ from_texture\: :ref:`RID<class_RID>`, to_texture\: :ref:`RID<class_RID>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`texture_set_discardable<class_RenderingDevice_method_texture_set_discardable>`\ (\ texture\: :ref:`RID<class_RID>`, discardable\: :ref:`bool<class_bool>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`Error<enum_@GlobalScope_Error>` | :ref:`texture_update<class_RenderingDevice_method_texture_update>`\ (\ texture\: :ref:`RID<class_RID>`, layer\: :ref:`int<class_int>`, data\: :ref:`PackedByteArray<class_PackedByteArray>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`RID<class_RID>` | :ref:`uniform_buffer_create<class_RenderingDevice_method_uniform_buffer_create>`\ (\ size_bytes\: :ref:`int<class_int>`, data\: :ref:`PackedByteArray<class_PackedByteArray>` = PackedByteArray(), creation_bits\: |bitfield|\[:ref:`BufferCreationBits<enum_RenderingDevice_BufferCreationBits>`\] = 0\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`RID<class_RID>` | :ref:`uniform_set_create<class_RenderingDevice_method_uniform_set_create>`\ (\ uniforms\: :ref:`Array<class_Array>`\[:ref:`RDUniform<class_RDUniform>`\], shader\: :ref:`RID<class_RID>`, shader_set\: :ref:`int<class_int>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`uniform_set_is_valid<class_RenderingDevice_method_uniform_set_is_valid>`\ (\ uniform_set\: :ref:`RID<class_RID>`\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`RID<class_RID>` | :ref:`vertex_array_create<class_RenderingDevice_method_vertex_array_create>`\ (\ vertex_count\: :ref:`int<class_int>`, vertex_format\: :ref:`int<class_int>`, src_buffers\: :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\], offsets\: :ref:`PackedInt64Array<class_PackedInt64Array>` = PackedInt64Array()\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`RID<class_RID>` | :ref:`vertex_buffer_create<class_RenderingDevice_method_vertex_buffer_create>`\ (\ size_bytes\: :ref:`int<class_int>`, data\: :ref:`PackedByteArray<class_PackedByteArray>` = PackedByteArray(), creation_bits\: |bitfield|\[:ref:`BufferCreationBits<enum_RenderingDevice_BufferCreationBits>`\] = 0\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`vertex_format_create<class_RenderingDevice_method_vertex_format_create>`\ (\ vertex_descriptions\: :ref:`Array<class_Array>`\[:ref:`RDVertexAttribute<class_RDVertexAttribute>`\]\ ) |
|
||
+------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
|
||
.. rst-class:: classref-section-separator
|
||
|
||
----
|
||
|
||
.. rst-class:: classref-descriptions-group
|
||
|
||
列舉
|
||
----
|
||
|
||
.. _enum_RenderingDevice_DeviceType:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **DeviceType**: :ref:`🔗<enum_RenderingDevice_DeviceType>`
|
||
|
||
.. _class_RenderingDevice_constant_DEVICE_TYPE_OTHER:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DeviceType<enum_RenderingDevice_DeviceType>` **DEVICE_TYPE_OTHER** = ``0``
|
||
|
||
算繪裝置的型別與其他列舉值均不配對,或者未知。
|
||
|
||
.. _class_RenderingDevice_constant_DEVICE_TYPE_INTEGRATED_GPU:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DeviceType<enum_RenderingDevice_DeviceType>` **DEVICE_TYPE_INTEGRATED_GPU** = ``1``
|
||
|
||
算繪裝置為集成 GPU,通常\ *(但不一定)*\ 比獨立 GPU(\ :ref:`DEVICE_TYPE_DISCRETE_GPU<class_RenderingDevice_constant_DEVICE_TYPE_DISCRETE_GPU>`\ )要慢。在 Android 和 iOS 上,算繪裝置的型別始終為 :ref:`DEVICE_TYPE_INTEGRATED_GPU<class_RenderingDevice_constant_DEVICE_TYPE_INTEGRATED_GPU>`\ 。
|
||
|
||
.. _class_RenderingDevice_constant_DEVICE_TYPE_DISCRETE_GPU:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DeviceType<enum_RenderingDevice_DeviceType>` **DEVICE_TYPE_DISCRETE_GPU** = ``2``
|
||
|
||
算繪裝置為獨立 GPU,通常\ *(但不一定)*\ 比集成 GPU(\ :ref:`DEVICE_TYPE_INTEGRATED_GPU<class_RenderingDevice_constant_DEVICE_TYPE_INTEGRATED_GPU>`\ )要快。
|
||
|
||
.. _class_RenderingDevice_constant_DEVICE_TYPE_VIRTUAL_GPU:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DeviceType<enum_RenderingDevice_DeviceType>` **DEVICE_TYPE_VIRTUAL_GPU** = ``3``
|
||
|
||
算繪裝置為虛擬環境中的類比 GPU。通常比主機 GPU 要慢很多,這意味著獨立 GPU 的預期性能等級大概與 :ref:`DEVICE_TYPE_INTEGRATED_GPU<class_RenderingDevice_constant_DEVICE_TYPE_INTEGRATED_GPU>` 等價。使用虛擬機器 GPU 穿透(例如 VFIO)時,裝置型別不會被彙報為 :ref:`DEVICE_TYPE_VIRTUAL_GPU<class_RenderingDevice_constant_DEVICE_TYPE_VIRTUAL_GPU>`\ 。而是會彙報主機 GPU 的裝置型別,就好像使用的不是模擬 GPU 一樣。
|
||
|
||
.. _class_RenderingDevice_constant_DEVICE_TYPE_CPU:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DeviceType<enum_RenderingDevice_DeviceType>` **DEVICE_TYPE_CPU** = ``4``
|
||
|
||
算繪裝置由軟體類比提供(例如 Lavapipe 或 `SwiftShader <https://github.com/google/swiftshader>`__\ )。這是可用的算繪裝置中最慢的一種;通常比 :ref:`DEVICE_TYPE_INTEGRATED_GPU<class_RenderingDevice_constant_DEVICE_TYPE_INTEGRATED_GPU>` 要慢很多。
|
||
|
||
.. _class_RenderingDevice_constant_DEVICE_TYPE_MAX:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DeviceType<enum_RenderingDevice_DeviceType>` **DEVICE_TYPE_MAX** = ``5``
|
||
|
||
代表 :ref:`DeviceType<enum_RenderingDevice_DeviceType>` 列舉的大小。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_DriverResource:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **DriverResource**: :ref:`🔗<enum_RenderingDevice_DriverResource>`
|
||
|
||
.. _class_RenderingDevice_constant_DRIVER_RESOURCE_LOGICAL_DEVICE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DriverResource<enum_RenderingDevice_DriverResource>` **DRIVER_RESOURCE_LOGICAL_DEVICE** = ``0``
|
||
|
||
Specific device object based on a physical device (``rid`` parameter is ignored).
|
||
|
||
- Vulkan: Vulkan device driver resource (``VkDevice``).
|
||
|
||
- D3D12: D3D12 device driver resource (``ID3D12Device``).
|
||
|
||
- Metal: Metal device driver resource (``MTLDevice``).
|
||
|
||
.. _class_RenderingDevice_constant_DRIVER_RESOURCE_PHYSICAL_DEVICE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DriverResource<enum_RenderingDevice_DriverResource>` **DRIVER_RESOURCE_PHYSICAL_DEVICE** = ``1``
|
||
|
||
Physical device the specific logical device is based on (``rid`` parameter is ignored).
|
||
|
||
- Vulkan: ``VkPhysicalDevice``.
|
||
|
||
- D3D12: ``IDXGIAdapter``.
|
||
|
||
.. _class_RenderingDevice_constant_DRIVER_RESOURCE_TOPMOST_OBJECT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DriverResource<enum_RenderingDevice_DriverResource>` **DRIVER_RESOURCE_TOPMOST_OBJECT** = ``2``
|
||
|
||
Top-most graphics API entry object (``rid`` parameter is ignored).
|
||
|
||
- Vulkan: ``VkInstance``.
|
||
|
||
.. _class_RenderingDevice_constant_DRIVER_RESOURCE_COMMAND_QUEUE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DriverResource<enum_RenderingDevice_DriverResource>` **DRIVER_RESOURCE_COMMAND_QUEUE** = ``3``
|
||
|
||
The main graphics-compute command queue (``rid`` parameter is ignored).
|
||
|
||
- Vulkan: ``VkQueue``.
|
||
|
||
- D3D12: ``ID3D12CommandQueue``.
|
||
|
||
- Metal: ``MTLCommandQueue``.
|
||
|
||
.. _class_RenderingDevice_constant_DRIVER_RESOURCE_QUEUE_FAMILY:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DriverResource<enum_RenderingDevice_DriverResource>` **DRIVER_RESOURCE_QUEUE_FAMILY** = ``4``
|
||
|
||
The specific family the main queue belongs to (``rid`` parameter is ignored).
|
||
|
||
- Vulkan: The queue family index, a ``uint32_t``.
|
||
|
||
.. _class_RenderingDevice_constant_DRIVER_RESOURCE_TEXTURE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DriverResource<enum_RenderingDevice_DriverResource>` **DRIVER_RESOURCE_TEXTURE** = ``5``
|
||
|
||
- Vulkan: ``VkImage``.
|
||
|
||
- D3D12: ``ID3D12Resource``.
|
||
|
||
.. _class_RenderingDevice_constant_DRIVER_RESOURCE_TEXTURE_VIEW:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DriverResource<enum_RenderingDevice_DriverResource>` **DRIVER_RESOURCE_TEXTURE_VIEW** = ``6``
|
||
|
||
The view of an owned or shared texture.
|
||
|
||
- Vulkan: ``VkImageView``.
|
||
|
||
- D3D12: ``ID3D12Resource``.
|
||
|
||
.. _class_RenderingDevice_constant_DRIVER_RESOURCE_TEXTURE_DATA_FORMAT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DriverResource<enum_RenderingDevice_DriverResource>` **DRIVER_RESOURCE_TEXTURE_DATA_FORMAT** = ``7``
|
||
|
||
The native id of the data format of the texture.
|
||
|
||
- Vulkan: ``VkFormat``.
|
||
|
||
- D3D12: ``DXGI_FORMAT``.
|
||
|
||
.. _class_RenderingDevice_constant_DRIVER_RESOURCE_SAMPLER:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DriverResource<enum_RenderingDevice_DriverResource>` **DRIVER_RESOURCE_SAMPLER** = ``8``
|
||
|
||
- Vulkan: ``VkSampler``.
|
||
|
||
.. _class_RenderingDevice_constant_DRIVER_RESOURCE_UNIFORM_SET:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DriverResource<enum_RenderingDevice_DriverResource>` **DRIVER_RESOURCE_UNIFORM_SET** = ``9``
|
||
|
||
- Vulkan: ``VkDescriptorSet``.
|
||
|
||
.. _class_RenderingDevice_constant_DRIVER_RESOURCE_BUFFER:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DriverResource<enum_RenderingDevice_DriverResource>` **DRIVER_RESOURCE_BUFFER** = ``10``
|
||
|
||
Buffer of any kind of (storage, vertex, etc.).
|
||
|
||
- Vulkan: ``VkBuffer``.
|
||
|
||
- D3D12: ``ID3D12Resource``.
|
||
|
||
.. _class_RenderingDevice_constant_DRIVER_RESOURCE_COMPUTE_PIPELINE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DriverResource<enum_RenderingDevice_DriverResource>` **DRIVER_RESOURCE_COMPUTE_PIPELINE** = ``11``
|
||
|
||
- Vulkan: ``VkPipeline``.
|
||
|
||
- Metal: ``MTLComputePipelineState``.
|
||
|
||
.. _class_RenderingDevice_constant_DRIVER_RESOURCE_RENDER_PIPELINE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DriverResource<enum_RenderingDevice_DriverResource>` **DRIVER_RESOURCE_RENDER_PIPELINE** = ``12``
|
||
|
||
- Vulkan: ``VkPipeline``.
|
||
|
||
- Metal: ``MTLRenderPipelineState``.
|
||
|
||
.. _class_RenderingDevice_constant_DRIVER_RESOURCE_VULKAN_DEVICE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DriverResource<enum_RenderingDevice_DriverResource>` **DRIVER_RESOURCE_VULKAN_DEVICE** = ``0``
|
||
|
||
**已棄用:** Use :ref:`DRIVER_RESOURCE_LOGICAL_DEVICE<class_RenderingDevice_constant_DRIVER_RESOURCE_LOGICAL_DEVICE>` instead.
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DRIVER_RESOURCE_VULKAN_PHYSICAL_DEVICE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DriverResource<enum_RenderingDevice_DriverResource>` **DRIVER_RESOURCE_VULKAN_PHYSICAL_DEVICE** = ``1``
|
||
|
||
**已棄用:** Use :ref:`DRIVER_RESOURCE_PHYSICAL_DEVICE<class_RenderingDevice_constant_DRIVER_RESOURCE_PHYSICAL_DEVICE>` instead.
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DRIVER_RESOURCE_VULKAN_INSTANCE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DriverResource<enum_RenderingDevice_DriverResource>` **DRIVER_RESOURCE_VULKAN_INSTANCE** = ``2``
|
||
|
||
**已棄用:** Use :ref:`DRIVER_RESOURCE_TOPMOST_OBJECT<class_RenderingDevice_constant_DRIVER_RESOURCE_TOPMOST_OBJECT>` instead.
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DRIVER_RESOURCE_VULKAN_QUEUE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DriverResource<enum_RenderingDevice_DriverResource>` **DRIVER_RESOURCE_VULKAN_QUEUE** = ``3``
|
||
|
||
**已棄用:** Use :ref:`DRIVER_RESOURCE_COMMAND_QUEUE<class_RenderingDevice_constant_DRIVER_RESOURCE_COMMAND_QUEUE>` instead.
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DRIVER_RESOURCE_VULKAN_QUEUE_FAMILY_INDEX:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DriverResource<enum_RenderingDevice_DriverResource>` **DRIVER_RESOURCE_VULKAN_QUEUE_FAMILY_INDEX** = ``4``
|
||
|
||
**已棄用:** Use :ref:`DRIVER_RESOURCE_QUEUE_FAMILY<class_RenderingDevice_constant_DRIVER_RESOURCE_QUEUE_FAMILY>` instead.
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DRIVER_RESOURCE_VULKAN_IMAGE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DriverResource<enum_RenderingDevice_DriverResource>` **DRIVER_RESOURCE_VULKAN_IMAGE** = ``5``
|
||
|
||
**已棄用:** Use :ref:`DRIVER_RESOURCE_TEXTURE<class_RenderingDevice_constant_DRIVER_RESOURCE_TEXTURE>` instead.
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DRIVER_RESOURCE_VULKAN_IMAGE_VIEW:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DriverResource<enum_RenderingDevice_DriverResource>` **DRIVER_RESOURCE_VULKAN_IMAGE_VIEW** = ``6``
|
||
|
||
**已棄用:** Use :ref:`DRIVER_RESOURCE_TEXTURE_VIEW<class_RenderingDevice_constant_DRIVER_RESOURCE_TEXTURE_VIEW>` instead.
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DRIVER_RESOURCE_VULKAN_IMAGE_NATIVE_TEXTURE_FORMAT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DriverResource<enum_RenderingDevice_DriverResource>` **DRIVER_RESOURCE_VULKAN_IMAGE_NATIVE_TEXTURE_FORMAT** = ``7``
|
||
|
||
**已棄用:** Use :ref:`DRIVER_RESOURCE_TEXTURE_DATA_FORMAT<class_RenderingDevice_constant_DRIVER_RESOURCE_TEXTURE_DATA_FORMAT>` instead.
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DRIVER_RESOURCE_VULKAN_SAMPLER:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DriverResource<enum_RenderingDevice_DriverResource>` **DRIVER_RESOURCE_VULKAN_SAMPLER** = ``8``
|
||
|
||
**已棄用:** Use :ref:`DRIVER_RESOURCE_SAMPLER<class_RenderingDevice_constant_DRIVER_RESOURCE_SAMPLER>` instead.
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DRIVER_RESOURCE_VULKAN_DESCRIPTOR_SET:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DriverResource<enum_RenderingDevice_DriverResource>` **DRIVER_RESOURCE_VULKAN_DESCRIPTOR_SET** = ``9``
|
||
|
||
**已棄用:** Use :ref:`DRIVER_RESOURCE_UNIFORM_SET<class_RenderingDevice_constant_DRIVER_RESOURCE_UNIFORM_SET>` instead.
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DRIVER_RESOURCE_VULKAN_BUFFER:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DriverResource<enum_RenderingDevice_DriverResource>` **DRIVER_RESOURCE_VULKAN_BUFFER** = ``10``
|
||
|
||
**已棄用:** Use :ref:`DRIVER_RESOURCE_BUFFER<class_RenderingDevice_constant_DRIVER_RESOURCE_BUFFER>` instead.
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DRIVER_RESOURCE_VULKAN_COMPUTE_PIPELINE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DriverResource<enum_RenderingDevice_DriverResource>` **DRIVER_RESOURCE_VULKAN_COMPUTE_PIPELINE** = ``11``
|
||
|
||
**已棄用:** Use :ref:`DRIVER_RESOURCE_COMPUTE_PIPELINE<class_RenderingDevice_constant_DRIVER_RESOURCE_COMPUTE_PIPELINE>` instead.
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DRIVER_RESOURCE_VULKAN_RENDER_PIPELINE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DriverResource<enum_RenderingDevice_DriverResource>` **DRIVER_RESOURCE_VULKAN_RENDER_PIPELINE** = ``12``
|
||
|
||
**已棄用:** Use :ref:`DRIVER_RESOURCE_RENDER_PIPELINE<class_RenderingDevice_constant_DRIVER_RESOURCE_RENDER_PIPELINE>` instead.
|
||
|
||
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_DataFormat:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **DataFormat**: :ref:`🔗<enum_RenderingDevice_DataFormat>`
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R4G4_UNORM_PACK8:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R4G4_UNORM_PACK8** = ``0``
|
||
|
||
每通道 4 位的紅、綠通道資料格式,緊縮在 8 個比特位中。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
\ **注意:**\ 所有資料格式的更多資訊可以在 Vulkan 規格說明的 `Identification of formats <https://registry.khronos.org/vulkan/specs/1.1/html/vkspec.html#_identification_of_formats>`__ 章節和 `VkFormat <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkFormat.html>`__ 列舉中找到。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R4G4B4A4_UNORM_PACK16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R4G4B4A4_UNORM_PACK16** = ``1``
|
||
|
||
每通道 4 位的紅、綠、藍、Alpha 通道資料格式,緊縮在 16 個比特位中。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_B4G4R4A4_UNORM_PACK16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_B4G4R4A4_UNORM_PACK16** = ``2``
|
||
|
||
每通道 4 位的藍、綠、紅、Alpha 通道資料格式,緊縮在 16 個比特位中。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R5G6B5_UNORM_PACK16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R5G6B5_UNORM_PACK16** = ``3``
|
||
|
||
紅、綠、藍通道資料格式,紅占 5 位、綠占 6 位、藍占 5 位,緊縮在 16 個比特位中。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_B5G6R5_UNORM_PACK16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_B5G6R5_UNORM_PACK16** = ``4``
|
||
|
||
藍、綠、紅通道資料格式,藍占 5 位、綠占 6 位、紅占 5 位,緊縮在 16 個比特位中。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R5G5B5A1_UNORM_PACK16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R5G5B5A1_UNORM_PACK16** = ``5``
|
||
|
||
紅、綠、藍、Alpha 通道資料格式,紅占 5 位、綠占 6 位、藍占 5 位、Alpha 占 1 位,緊縮在 16 個比特位中。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_B5G5R5A1_UNORM_PACK16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_B5G5R5A1_UNORM_PACK16** = ``6``
|
||
|
||
藍、綠、紅、Alpha 通道資料格式,藍占 5 位、綠占 6 位、紅占 5 位、Alpha 占 1 位,緊縮在 16 個比特位中。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_A1R5G5B5_UNORM_PACK16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_A1R5G5B5_UNORM_PACK16** = ``7``
|
||
|
||
Alpha、紅、綠、藍通道資料格式,Alpha 占 1 位、紅占 5 位、綠占 6 位、藍占 5 位,緊縮在 16 個比特位中。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R8_UNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R8_UNORM** = ``8``
|
||
|
||
每通道 8 位元的無符號浮點數紅通道資料格式,使用正規化的值。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R8_SNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R8_SNORM** = ``9``
|
||
|
||
每通道 8 位元的帶符號浮點數紅通道資料格式,使用正規化的值。取值均在 ``[-1.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R8_USCALED:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R8_USCALED** = ``10``
|
||
|
||
每通道 8 位元的無符號浮點數紅通道資料格式,使用縮放後的值(值從整數轉換為浮點數)。取值均在 ``[0.0, 255.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R8_SSCALED:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R8_SSCALED** = ``11``
|
||
|
||
每通道 8 位元的帶符號浮點數紅通道資料格式,使用縮放後的值(值從整數轉換為浮點數)。取值均在 ``[-127.0, 127.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R8_UINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R8_UINT** = ``12``
|
||
|
||
每通道 8 位元的不帶正負號的整數紅通道資料格式。取值均在 ``[0, 255]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R8_SINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R8_SINT** = ``13``
|
||
|
||
每通道 8 位元的帶符號整數紅通道資料格式。取值均在 ``[-127, 127]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R8_SRGB:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R8_SRGB** = ``14``
|
||
|
||
8-bit-per-channel unsigned floating-point red channel data format with normalized value and nonlinear sRGB encoding. Values are in the ``[0.0, 1.0]`` range.
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R8G8_UNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R8G8_UNORM** = ``15``
|
||
|
||
每通道 8 位元的無符號浮點數紅、綠通道資料格式,使用正規化的值。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R8G8_SNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R8G8_SNORM** = ``16``
|
||
|
||
每通道 8 位元的帶符號浮點數紅、綠通道資料格式,使用正規化的值。取值均在 ``[-1.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R8G8_USCALED:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R8G8_USCALED** = ``17``
|
||
|
||
每通道 8 位元的無符號浮點數紅、綠通道資料格式,使用縮放後的值(值從整數轉換為浮點數)。取值均在 ``[0.0, 255.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R8G8_SSCALED:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R8G8_SSCALED** = ``18``
|
||
|
||
每通道 8 位元的帶符號浮點數紅、綠通道資料格式,使用縮放後的值(值從整數轉換為浮點數)。取值均在 ``[-127.0, 127.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R8G8_UINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R8G8_UINT** = ``19``
|
||
|
||
每通道 8 位的不帶正負號的整數紅、綠通道資料格式。取值均在 ``[0, 255]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R8G8_SINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R8G8_SINT** = ``20``
|
||
|
||
每通道 8 位元的帶符號整數紅、綠通道資料格式。取值均在 ``[-127, 127]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R8G8_SRGB:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R8G8_SRGB** = ``21``
|
||
|
||
8-bit-per-channel unsigned floating-point red/green channel data format with normalized value and nonlinear sRGB encoding. Values are in the ``[0.0, 1.0]`` range.
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R8G8B8_UNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R8G8B8_UNORM** = ``22``
|
||
|
||
每通道 8 位元的無符號浮點數紅、綠、藍通道資料格式,使用正規化的值。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R8G8B8_SNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R8G8B8_SNORM** = ``23``
|
||
|
||
每通道 8 位元的帶符號浮點數紅、綠、藍通道資料格式,使用正規化的值。取值均在 ``[-1.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R8G8B8_USCALED:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R8G8B8_USCALED** = ``24``
|
||
|
||
每通道 8 位元的無符號浮點數紅、綠、藍通道資料格式,使用縮放後的值(值從整數轉換為浮點數)。取值均在 ``[0.0, 255.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R8G8B8_SSCALED:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R8G8B8_SSCALED** = ``25``
|
||
|
||
每通道 8 位元的帶符號浮點數紅、綠、藍通道資料格式,使用縮放後的值(值從整數轉換為浮點數)。取值均在 ``[-127.0, 127.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R8G8B8_UINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R8G8B8_UINT** = ``26``
|
||
|
||
每通道 8 位的不帶正負號的整數紅、綠、藍通道資料格式。取值均在 ``[0, 255]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R8G8B8_SINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R8G8B8_SINT** = ``27``
|
||
|
||
每通道 8 位元的帶符號整數紅、綠、藍通道資料格式。取值均在 ``[-127, 127]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R8G8B8_SRGB:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R8G8B8_SRGB** = ``28``
|
||
|
||
8-bit-per-channel unsigned floating-point red/green/blue channel data format with normalized value and nonlinear sRGB encoding. Values are in the ``[0.0, 1.0]`` range.
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_B8G8R8_UNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_B8G8R8_UNORM** = ``29``
|
||
|
||
每通道 8 位元的無符號浮點數藍、綠、紅通道資料格式,使用正規化的值。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_B8G8R8_SNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_B8G8R8_SNORM** = ``30``
|
||
|
||
每通道 8 位元的帶符號浮點數藍、綠、紅通道資料格式,使用正規化的值。取值均在 ``[-1.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_B8G8R8_USCALED:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_B8G8R8_USCALED** = ``31``
|
||
|
||
每通道 8 位元的無符號浮點數藍、綠、紅通道資料格式,使用縮放後的值(值從整數轉換為浮點數)。取值均在 ``[0.0, 255.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_B8G8R8_SSCALED:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_B8G8R8_SSCALED** = ``32``
|
||
|
||
每通道 8 位元的帶符號浮點數藍、綠、紅通道資料格式,使用縮放後的值(值從整數轉換為浮點數)。取值均在 ``[-127.0, 127.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_B8G8R8_UINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_B8G8R8_UINT** = ``33``
|
||
|
||
每通道 8 位的不帶正負號的整數藍、綠、紅通道資料格式。取值均在 ``[0, 255]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_B8G8R8_SINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_B8G8R8_SINT** = ``34``
|
||
|
||
每通道 8 位元的帶符號整數藍、綠、紅通道資料格式。取值均在 ``[-127, 127]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_B8G8R8_SRGB:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_B8G8R8_SRGB** = ``35``
|
||
|
||
8-bit-per-channel unsigned floating-point blue/green/red data format with normalized value and nonlinear sRGB encoding. Values are in the ``[0.0, 1.0]`` range.
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R8G8B8A8_UNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R8G8B8A8_UNORM** = ``36``
|
||
|
||
每通道 8 位元的無符號浮點數紅、綠、藍、Alpha 通道資料格式,使用正規化的值。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R8G8B8A8_SNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R8G8B8A8_SNORM** = ``37``
|
||
|
||
每通道 8 位元的帶符號浮點數紅、綠、藍、Alpha 通道資料格式,使用正規化的值。取值均在 ``[-1.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R8G8B8A8_USCALED:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R8G8B8A8_USCALED** = ``38``
|
||
|
||
每通道 8 位元的無符號浮點數紅、綠、藍、Alpha 通道資料格式,使用縮放後的值(值從整數轉換為浮點數)。取值均在 ``[0.0, 255.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R8G8B8A8_SSCALED:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R8G8B8A8_SSCALED** = ``39``
|
||
|
||
每通道 8 位元的帶符號浮點數紅、綠、藍、Alpha 通道資料格式,使用縮放後的值(值從整數轉換為浮點數)。取值均在 ``[-127.0, 127.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R8G8B8A8_UINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R8G8B8A8_UINT** = ``40``
|
||
|
||
每通道 8 位的不帶正負號的整數紅、綠、藍、Alpha 通道資料格式。取值均在 ``[0, 255]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R8G8B8A8_SINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R8G8B8A8_SINT** = ``41``
|
||
|
||
每通道 8 位元的帶符號整數紅、綠、藍、Alpha 通道資料格式。取值均在 ``[-127, 127]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R8G8B8A8_SRGB:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R8G8B8A8_SRGB** = ``42``
|
||
|
||
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 ``[0.0, 1.0]`` range.
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_B8G8R8A8_UNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_B8G8R8A8_UNORM** = ``43``
|
||
|
||
每通道 8 位元的無符號浮點數藍、綠、紅、Alpha 通道資料格式,使用正規化的值。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_B8G8R8A8_SNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_B8G8R8A8_SNORM** = ``44``
|
||
|
||
每通道 8 位元的帶符號浮點數藍、綠、紅、Alpha 通道資料格式,使用正規化的值。取值均在 ``[-1.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_B8G8R8A8_USCALED:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_B8G8R8A8_USCALED** = ``45``
|
||
|
||
每通道 8 位元的無符號浮點數藍、綠、紅、Alpha 通道資料格式,使用縮放後的值(值從整數轉換為浮點數)。取值均在 ``[0.0, 255.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_B8G8R8A8_SSCALED:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_B8G8R8A8_SSCALED** = ``46``
|
||
|
||
每通道 8 位元的帶符號浮點數藍、綠、紅、Alpha 通道資料格式,使用縮放後的值(值從整數轉換為浮點數)。取值均在 ``[-127.0, 127.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_B8G8R8A8_UINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_B8G8R8A8_UINT** = ``47``
|
||
|
||
每通道 8 位的不帶正負號的整數藍、綠、紅、Alpha 通道資料格式。取值均在 ``[0, 255]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_B8G8R8A8_SINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_B8G8R8A8_SINT** = ``48``
|
||
|
||
每通道 8 位元的帶符號整數藍、綠、紅、Alpha 通道資料格式。取值均在 ``[-127, 127]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_B8G8R8A8_SRGB:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_B8G8R8A8_SRGB** = ``49``
|
||
|
||
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 ``[0.0, 1.0]`` range.
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_A8B8G8R8_UNORM_PACK32:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_A8B8G8R8_UNORM_PACK32** = ``50``
|
||
|
||
每通道 8 位元的無符號浮點數 Alpha、紅、綠、藍通道資料格式,使用正規化的值,緊縮在 32 個比特位中。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_A8B8G8R8_SNORM_PACK32:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_A8B8G8R8_SNORM_PACK32** = ``51``
|
||
|
||
每通道 8 位元的帶符號浮點數 Alpha、紅、綠、藍通道資料格式,使用正規化的值,緊縮在 32 個比特位中。取值均在 ``[-1.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_A8B8G8R8_USCALED_PACK32:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_A8B8G8R8_USCALED_PACK32** = ``52``
|
||
|
||
每通道 8 位元的無符號浮點數 Alpha、紅、綠、藍通道資料格式,使用縮放後的值(值從整數轉換為浮點數),緊縮在 32 個比特位中。取值均在 ``[0.0, 255.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_A8B8G8R8_SSCALED_PACK32:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_A8B8G8R8_SSCALED_PACK32** = ``53``
|
||
|
||
每通道 8 位元的帶符號浮點數 Alpha、紅、綠、藍通道資料格式,使用縮放後的值(值從整數轉換為浮點數),緊縮在 32 個比特位中。取值均在 ``[-127.0, 127.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_A8B8G8R8_UINT_PACK32:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_A8B8G8R8_UINT_PACK32** = ``54``
|
||
|
||
每通道 8 位的不帶正負號的整數 Alpha、紅、綠、藍通道資料格式,緊縮在 32 個比特位中。取值均在 ``[0, 255]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_A8B8G8R8_SINT_PACK32:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_A8B8G8R8_SINT_PACK32** = ``55``
|
||
|
||
每通道 8 位元的帶符號整數 Alpha、紅、綠、藍通道資料格式,緊縮在 32 個比特位中。取值均在 ``[-127, 127]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_A8B8G8R8_SRGB_PACK32:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_A8B8G8R8_SRGB_PACK32** = ``56``
|
||
|
||
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 ``[0.0, 1.0]`` range.
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_A2R10G10B10_UNORM_PACK32:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_A2R10G10B10_UNORM_PACK32** = ``57``
|
||
|
||
無符號浮點數 Alpha、紅、綠、藍通道資料格式,使用正規化的值,緊縮在 32 個比特位中。格式中包含 2 位 Alpha、10 位紅、10 位綠、10 位藍。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_A2R10G10B10_SNORM_PACK32:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_A2R10G10B10_SNORM_PACK32** = ``58``
|
||
|
||
帶符號浮點數 Alpha、紅、綠、藍通道資料格式,使用正規化的值,緊縮在 32 個比特位中。格式中包含 2 位 Alpha、10 位紅、10 位綠、10 位藍。取值均在 ``[-1.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_A2R10G10B10_USCALED_PACK32:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_A2R10G10B10_USCALED_PACK32** = ``59``
|
||
|
||
無符號浮點數 Alpha、紅、綠、藍通道資料格式,使用正規化的值,緊縮在 32 個比特位中。格式中包含 2 位 Alpha、10 位紅、10 位綠、10 位藍。紅、綠、藍的取值在 ``[0.0, 1023.0]`` 的範圍內,Alpha 的取值在 ``[0.0, 3.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_A2R10G10B10_SSCALED_PACK32:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_A2R10G10B10_SSCALED_PACK32** = ``60``
|
||
|
||
帶符號浮點數 Alpha、紅、綠、藍通道資料格式,使用正規化的值,緊縮在 32 個比特位中。格式中包含 2 位 Alpha、10 位紅、10 位綠、10 位藍。紅、綠、藍的取值在 ``[-511.0, 511.0]`` 的範圍內,Alpha 的取值在 ``[-1.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_A2R10G10B10_UINT_PACK32:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_A2R10G10B10_UINT_PACK32** = ``61``
|
||
|
||
不帶正負號的整數 Alpha、紅、綠、藍通道資料格式,使用正規化的值,緊縮在 32 個比特位中。格式中包含 2 位 Alpha、10 位紅、10 位綠、10 位藍。紅、綠、藍的取值在 ``[0, 1023]`` 的範圍內,Alpha 的取值在 ``[0, 3]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_A2R10G10B10_SINT_PACK32:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_A2R10G10B10_SINT_PACK32** = ``62``
|
||
|
||
帶符號整數 Alpha、紅、綠、藍通道資料格式,使用正規化的值,緊縮在 32 個比特位中。格式中包含 2 位 Alpha、10 位紅、10 位綠、10 位藍。紅、綠、藍的取值在 ``[-511, 511]`` 的範圍內,Alpha 的取值在 ``[-1, 1]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_A2B10G10R10_UNORM_PACK32:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_A2B10G10R10_UNORM_PACK32** = ``63``
|
||
|
||
無符號浮點數 Alpha、藍、綠、紅通道資料格式,使用正規化的值,緊縮在 32 個比特位中。格式中包含 2 位 Alpha、10 位藍、10 位綠、10 位紅。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_A2B10G10R10_SNORM_PACK32:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_A2B10G10R10_SNORM_PACK32** = ``64``
|
||
|
||
帶符號浮點數 Alpha、藍、綠、紅通道資料格式,使用正規化的值,緊縮在 32 個比特位中。格式中包含 2 位 Alpha、10 位藍、10 位綠、10 位紅。取值均在 ``[-1.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_A2B10G10R10_USCALED_PACK32:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_A2B10G10R10_USCALED_PACK32** = ``65``
|
||
|
||
無符號浮點數 Alpha、藍、綠、紅通道資料格式,使用正規化的值,緊縮在 32 個比特位中。格式中包含 2 位 Alpha、10 位藍、10 位綠、10 位紅。藍、綠、紅的取值在 ``[0.0, 1023.0]`` 的範圍內,Alpha 的取值在 ``[0.0, 3.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_A2B10G10R10_SSCALED_PACK32:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_A2B10G10R10_SSCALED_PACK32** = ``66``
|
||
|
||
帶符號浮點數 Alpha、藍、綠、紅通道資料格式,使用正規化的值,緊縮在 32 個比特位中。格式中包含 2 位 Alpha、10 位藍、10 位綠、10 位紅。藍、綠、紅的取值在 ``[-511.0, 511.0]`` 的範圍內,Alpha 的取值在 ``[-1.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_A2B10G10R10_UINT_PACK32:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_A2B10G10R10_UINT_PACK32** = ``67``
|
||
|
||
不帶正負號的整數 Alpha、藍、綠、紅通道資料格式,使用正規化的值,緊縮在 32 個比特位中。格式中包含 2 位 Alpha、10 位藍、10 位綠、10 位紅。藍、綠、紅的取值在 ``[0, 1023]`` 的範圍內,Alpha 的取值在 ``[0, 3]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_A2B10G10R10_SINT_PACK32:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_A2B10G10R10_SINT_PACK32** = ``68``
|
||
|
||
帶符號整數 Alpha、藍、綠、紅通道資料格式,使用正規化的值,緊縮在 32 個比特位中。格式中包含 2 位 Alpha、10 位藍、10 位綠、10 位紅。藍、綠、紅的取值在 ``[-511, 511]`` 的範圍內,Alpha 的取值在 ``[-1, 1]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R16_UNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R16_UNORM** = ``69``
|
||
|
||
每通道 16 位元的無符號浮點數紅通道資料格式,使用正規化的值。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R16_SNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R16_SNORM** = ``70``
|
||
|
||
每通道 16 位元的帶符號浮點數紅通道資料格式,使用正規化的值。取值均在 ``[-1.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R16_USCALED:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R16_USCALED** = ``71``
|
||
|
||
每通道 16 位元的無符號浮點數紅通道資料格式,使用縮放後的值(值從整數轉換為浮點數)。取值均在 ``[0.0, 65535.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R16_SSCALED:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R16_SSCALED** = ``72``
|
||
|
||
每通道 16 位元的帶符號浮點數紅通道資料格式,使用縮放後的值(值從整數轉換為浮點數)。取值均在 ``[-32767.0, 32767.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R16_UINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R16_UINT** = ``73``
|
||
|
||
每通道 16 位元的不帶正負號的整數紅通道資料格式。取值均在 ``[0.0, 65535]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R16_SINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R16_SINT** = ``74``
|
||
|
||
每通道 16 位元的帶符號整數紅通道資料格式。取值均在 ``[-32767, 32767]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R16_SFLOAT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R16_SFLOAT** = ``75``
|
||
|
||
每通道 16 位元的帶符號浮點數紅通道資料格式,數值原樣儲存。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R16G16_UNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R16G16_UNORM** = ``76``
|
||
|
||
每通道 16 位元的無符號浮點數紅、綠通道資料格式,使用正規化的值。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R16G16_SNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R16G16_SNORM** = ``77``
|
||
|
||
每通道 16 位元的帶符號浮點數紅、綠通道資料格式,使用正規化的值。取值均在 ``[-1.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R16G16_USCALED:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R16G16_USCALED** = ``78``
|
||
|
||
每通道 16 位元的無符號浮點數紅、綠通道資料格式,使用縮放後的值(值從整數轉換為浮點數)。取值均在 ``[0.0, 65535.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R16G16_SSCALED:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R16G16_SSCALED** = ``79``
|
||
|
||
每通道 16 位元的帶符號浮點數紅、綠通道資料格式,使用縮放後的值(值從整數轉換為浮點數)。取值均在 ``[-32767.0, 32767.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R16G16_UINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R16G16_UINT** = ``80``
|
||
|
||
每通道 16 位的不帶正負號的整數紅、綠通道資料格式。取值均在 ``[0.0, 65535]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R16G16_SINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R16G16_SINT** = ``81``
|
||
|
||
每通道 16 位元的帶符號整數紅、綠通道資料格式。取值均在 ``[-32767, 32767]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R16G16_SFLOAT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R16G16_SFLOAT** = ``82``
|
||
|
||
每通道 16 位元的帶符號浮點數紅、綠通道資料格式,數值原樣儲存。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R16G16B16_UNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R16G16B16_UNORM** = ``83``
|
||
|
||
每通道 16 位元的無符號浮點數紅、綠、藍通道資料格式,使用正規化的值。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R16G16B16_SNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R16G16B16_SNORM** = ``84``
|
||
|
||
每通道 16 位元的帶符號浮點數紅、綠、藍通道資料格式,使用正規化的值。取值均在 ``[-1.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R16G16B16_USCALED:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R16G16B16_USCALED** = ``85``
|
||
|
||
每通道 16 位元的無符號浮點數紅、綠、藍通道資料格式,使用縮放後的值(值從整數轉換為浮點數)。取值均在 ``[0.0, 65535.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R16G16B16_SSCALED:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R16G16B16_SSCALED** = ``86``
|
||
|
||
每通道 16 位元的帶符號浮點數紅、綠、藍通道資料格式,使用縮放後的值(值從整數轉換為浮點數)。取值均在 ``[-32767.0, 32767.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R16G16B16_UINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R16G16B16_UINT** = ``87``
|
||
|
||
每通道 16 位的不帶正負號的整數紅、綠、藍通道資料格式。取值均在 ``[0.0, 65535]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R16G16B16_SINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R16G16B16_SINT** = ``88``
|
||
|
||
每通道 16 位元的帶符號整數紅、綠、藍通道資料格式。取值均在 ``[-32767, 32767]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R16G16B16_SFLOAT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R16G16B16_SFLOAT** = ``89``
|
||
|
||
每通道 16 位元的帶符號浮點數紅、綠、藍通道資料格式,數值原樣儲存。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R16G16B16A16_UNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R16G16B16A16_UNORM** = ``90``
|
||
|
||
每通道 16 位元的無符號浮點數紅、綠、藍、Alpha 通道資料格式,使用正規化的值。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R16G16B16A16_SNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R16G16B16A16_SNORM** = ``91``
|
||
|
||
每通道 16 位元的帶符號浮點數紅、綠、藍、Alpha 通道資料格式,使用正規化的值。取值均在 ``[-1.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R16G16B16A16_USCALED:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R16G16B16A16_USCALED** = ``92``
|
||
|
||
每通道 16 位元的無符號浮點數紅、綠、藍、Alpha 通道資料格式,使用縮放後的值(值從整數轉換為浮點數)。取值均在 ``[0.0, 65535.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R16G16B16A16_SSCALED:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R16G16B16A16_SSCALED** = ``93``
|
||
|
||
每通道 16 位元的帶符號浮點數紅、綠、藍、Alpha 通道資料格式,使用縮放後的值(值從整數轉換為浮點數)。取值均在 ``[-32767.0, 32767.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R16G16B16A16_UINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R16G16B16A16_UINT** = ``94``
|
||
|
||
每通道 16 位的不帶正負號的整數紅、綠、藍、Alpha 通道資料格式。取值均在 ``[0.0, 65535]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R16G16B16A16_SINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R16G16B16A16_SINT** = ``95``
|
||
|
||
每通道 16 位元的帶符號整數紅、綠、藍、Alpha 通道資料格式。取值均在 ``[-32767, 32767]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R16G16B16A16_SFLOAT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R16G16B16A16_SFLOAT** = ``96``
|
||
|
||
每通道 16 位元的帶符號浮點數紅、綠、藍、Alpha 通道資料格式,數值原樣儲存。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R32_UINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R32_UINT** = ``97``
|
||
|
||
每通道 32 位元的不帶正負號的整數紅通道資料格式。取值均在 ``[0, 2^32 - 1]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R32_SINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R32_SINT** = ``98``
|
||
|
||
每通道 32 位元的帶符號整數紅通道資料格式。取值均在 ``[2^31 + 1, 2^31 - 1]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R32_SFLOAT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R32_SFLOAT** = ``99``
|
||
|
||
每通道 32 位元的帶符號整數紅通道資料格式,數值原樣儲存。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R32G32_UINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R32G32_UINT** = ``100``
|
||
|
||
每通道 32 位的不帶正負號的整數紅、綠通道資料格式。取值均在 ``[0, 2^32 - 1]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R32G32_SINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R32G32_SINT** = ``101``
|
||
|
||
每通道 32 位元的帶符號整數紅、綠通道資料格式。取值均在 ``[2^31 + 1, 2^31 - 1]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R32G32_SFLOAT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R32G32_SFLOAT** = ``102``
|
||
|
||
每通道 32 位元的帶符號整數紅、綠通道資料格式,數值原樣儲存。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R32G32B32_UINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R32G32B32_UINT** = ``103``
|
||
|
||
每通道 32 位的不帶正負號的整數紅、綠、藍通道資料格式。取值均在 ``[0, 2^32 - 1]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R32G32B32_SINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R32G32B32_SINT** = ``104``
|
||
|
||
每通道 32 位元的帶符號整數紅、綠、藍通道資料格式。取值均在 ``[2^31 + 1, 2^31 - 1]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R32G32B32_SFLOAT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R32G32B32_SFLOAT** = ``105``
|
||
|
||
每通道 32 位元的帶符號整數紅、綠、藍通道資料格式,數值原樣儲存。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R32G32B32A32_UINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R32G32B32A32_UINT** = ``106``
|
||
|
||
每通道 32 位的不帶正負號的整數紅、綠、藍、Alpha 通道資料格式。取值均在 ``[0, 2^32 - 1]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R32G32B32A32_SINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R32G32B32A32_SINT** = ``107``
|
||
|
||
每通道 32 位元的帶符號整數紅、綠、藍、Alpha 通道資料格式。取值均在 ``[2^31 + 1, 2^31 - 1]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R32G32B32A32_SFLOAT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R32G32B32A32_SFLOAT** = ``108``
|
||
|
||
每通道 32 位元的帶符號整數紅、綠、藍、Alpha 通道資料格式,數值原樣儲存。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R64_UINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R64_UINT** = ``109``
|
||
|
||
每通道 64 位元的不帶正負號的整數紅通道資料格式。取值均在 ``[0, 2^64 - 1]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R64_SINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R64_SINT** = ``110``
|
||
|
||
每通道 64 位元的帶符號整數紅通道資料格式。取值均在 ``[2^63 + 1, 2^63 - 1]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R64_SFLOAT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R64_SFLOAT** = ``111``
|
||
|
||
每通道 64 位元的帶符號整數紅通道資料格式,數值原樣儲存。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R64G64_UINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R64G64_UINT** = ``112``
|
||
|
||
每通道 64 位的不帶正負號的整數紅、綠通道資料格式。取值均在 ``[0, 2^64 - 1]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R64G64_SINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R64G64_SINT** = ``113``
|
||
|
||
每通道 64 位元的帶符號整數紅、綠通道資料格式。取值均在 ``[2^63 + 1, 2^63 - 1]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R64G64_SFLOAT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R64G64_SFLOAT** = ``114``
|
||
|
||
每通道 64 位元的帶符號整數紅、綠通道資料格式,數值原樣儲存。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R64G64B64_UINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R64G64B64_UINT** = ``115``
|
||
|
||
每通道 64 位的不帶正負號的整數紅、綠、藍通道資料格式。取值均在 ``[0, 2^64 - 1]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R64G64B64_SINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R64G64B64_SINT** = ``116``
|
||
|
||
每通道 64 位元的帶符號整數紅、綠、藍通道資料格式。取值均在 ``[2^63 + 1, 2^63 - 1]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R64G64B64_SFLOAT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R64G64B64_SFLOAT** = ``117``
|
||
|
||
每通道 64 位元的帶符號整數紅、綠、藍通道資料格式,數值原樣儲存。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R64G64B64A64_UINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R64G64B64A64_UINT** = ``118``
|
||
|
||
每通道 64 位的不帶正負號的整數紅、綠、藍、Alpha 通道資料格式。取值均在 ``[0, 2^64 - 1]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R64G64B64A64_SINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R64G64B64A64_SINT** = ``119``
|
||
|
||
每通道 64 位元的帶符號整數紅、綠、藍、Alpha 通道資料格式。取值均在 ``[2^63 + 1, 2^63 - 1]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R64G64B64A64_SFLOAT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R64G64B64A64_SFLOAT** = ``120``
|
||
|
||
每通道 64 位元的帶符號整數紅、綠、藍、Alpha 通道資料格式,數值原樣儲存。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_B10G11R11_UFLOAT_PACK32:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_B10G11R11_UFLOAT_PACK32** = ``121``
|
||
|
||
無符號浮點數藍、綠、紅資料格式,數值原樣儲存,緊縮在 32 個比特位中。該格式的精度為藍通道 10 位、綠通道 11 位、紅通道 11 位。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_E5B9G9R9_UFLOAT_PACK32:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_E5B9G9R9_UFLOAT_PACK32** = ``122``
|
||
|
||
無符號浮點數曝光、藍、綠、紅資料格式,數值原樣儲存,緊縮在 32 個比特位中。該格式的精度為曝光 5 位、藍通道 9 位、綠通道 9 位、紅通道 9 位。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_D16_UNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_D16_UNORM** = ``123``
|
||
|
||
16 位元無符號浮點數深度資料格式,使用正規化的值。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_X8_D24_UNORM_PACK32:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_X8_D24_UNORM_PACK32** = ``124``
|
||
|
||
24 位元無符號浮點數深度資料格式,使用正規化的值,另有 8 位未使用,緊縮在 32 個比特位中。深度取值在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_D32_SFLOAT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_D32_SFLOAT** = ``125``
|
||
|
||
32 位元無符號浮點數深度資料格式,數值原樣儲存。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_S8_UINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_S8_UINT** = ``126``
|
||
|
||
8 位元不帶正負號的整數範本資料格式。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_D16_UNORM_S8_UINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_D16_UNORM_S8_UINT** = ``127``
|
||
|
||
16 位元無符號浮點數深度資料格式,使用正規化的值,另有 8 位使用不帶正負號的整數格式的範本。深度取值在 ``[0.0, 1.0]`` 的範圍內。範本取值在 ``[0, 255]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_D24_UNORM_S8_UINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_D24_UNORM_S8_UINT** = ``128``
|
||
|
||
24 位元無符號浮點數深度資料格式,使用正規化的值,另有 8 位使用不帶正負號的整數格式的範本。深度取值在 ``[0.0, 1.0]`` 的範圍內。範本取值在 ``[0, 255]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_D32_SFLOAT_S8_UINT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_D32_SFLOAT_S8_UINT** = ``129``
|
||
|
||
32 位元無符號浮點數深度資料格式,數值原樣儲存,另有 8 位使用不帶正負號的整數格式的模板。範本取值在 ``[0, 255]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_BC1_RGB_UNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_BC1_RGB_UNORM_BLOCK** = ``130``
|
||
|
||
顯存壓縮的無符號紅、綠、藍通道資料格式,使用正規化的值。取值均在 ``[0.0, 1.0]`` 的範圍內。該格式的精度為紅通道 5 位、綠通道 6 位、藍通道 5 位。使用 BC1 紋理壓縮(也叫 S3TC DXT1)。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_BC1_RGB_SRGB_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_BC1_RGB_SRGB_BLOCK** = ``131``
|
||
|
||
VRAM-compressed unsigned red/green/blue channel data format with normalized value and nonlinear sRGB encoding. Values are in the ``[0.0, 1.0]`` 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).
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_BC1_RGBA_UNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_BC1_RGBA_UNORM_BLOCK** = ``132``
|
||
|
||
顯存壓縮的無符號紅、綠、藍、Alpha 通道資料格式,使用正規化的值。取值均在 ``[0.0, 1.0]`` 的範圍內。該格式的精度為紅通道 5 位、綠通道 6 位、藍通道 5 位、Alpha 通道 1 位。使用 BC1 紋理壓縮(也叫 S3TC DXT1)。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_BC1_RGBA_SRGB_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_BC1_RGBA_SRGB_BLOCK** = ``133``
|
||
|
||
VRAM-compressed unsigned red/green/blue/alpha channel data format with normalized value and nonlinear sRGB encoding. Values are in the ``[0.0, 1.0]`` 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).
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_BC2_UNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_BC2_UNORM_BLOCK** = ``134``
|
||
|
||
顯存壓縮的無符號紅、綠、藍、Alpha 通道資料格式,使用正規化的值。取值均在 ``[0.0, 1.0]`` 的範圍內。該格式的精度為紅通道 5 位、綠通道 6 位、藍通道 5 位、Alpha 通道 4 位。使用 BC2 紋理壓縮(也叫 S3TC DXT3)。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_BC2_SRGB_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_BC2_SRGB_BLOCK** = ``135``
|
||
|
||
VRAM-compressed unsigned red/green/blue/alpha channel data format with normalized value and nonlinear sRGB encoding. Values are in the ``[0.0, 1.0]`` 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).
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_BC3_UNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_BC3_UNORM_BLOCK** = ``136``
|
||
|
||
顯存壓縮的無符號紅、綠、藍、Alpha 通道資料格式,使用正規化的值。取值均在 ``[0.0, 1.0]`` 的範圍內。該格式的精度為紅通道 5 位、綠通道 6 位、藍通道 5 位、Alpha 通道 8 位。使用 BC3 紋理壓縮(也叫 S3TC DXT5)。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_BC3_SRGB_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_BC3_SRGB_BLOCK** = ``137``
|
||
|
||
VRAM-compressed unsigned red/green/blue/alpha channel data format with normalized value and nonlinear sRGB encoding. Values are in the ``[0.0, 1.0]`` 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).
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_BC4_UNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_BC4_UNORM_BLOCK** = ``138``
|
||
|
||
顯存壓縮的無符號紅通道資料格式,使用正規化的值。取值均在 ``[0.0, 1.0]`` 的範圍內。該格式的精度為紅通道 8 位。使用 BC4 紋理壓縮。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_BC4_SNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_BC4_SNORM_BLOCK** = ``139``
|
||
|
||
顯存壓縮的帶符號紅通道資料格式,使用正規化的值。取值均在 ``[-1.0, 1.0]`` 的範圍內。該格式的精度為紅通道 8 位。使用 BC4 紋理壓縮。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_BC5_UNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_BC5_UNORM_BLOCK** = ``140``
|
||
|
||
顯存壓縮的無符號紅、綠通道資料格式,使用正規化的值。取值均在 ``[0.0, 1.0]`` 的範圍內。該格式的精度為紅通道 8 位、綠通道 8 位。使用 BC5 紋理壓縮(也叫 S3TC RGTC)。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_BC5_SNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_BC5_SNORM_BLOCK** = ``141``
|
||
|
||
顯存壓縮的帶符號紅、綠通道資料格式,使用正規化的值。取值均在 ``[-1.0, 1.0]`` 的範圍內。該格式的精度為紅通道 8 位、綠通道 8 位。使用 BC5 紋理壓縮(也叫 S3TC RGTC)。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_BC6H_UFLOAT_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_BC6H_UFLOAT_BLOCK** = ``142``
|
||
|
||
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).
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_BC6H_SFLOAT_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_BC6H_SFLOAT_BLOCK** = ``143``
|
||
|
||
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).
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_BC7_UNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_BC7_UNORM_BLOCK** = ``144``
|
||
|
||
顯存壓縮的無符號紅、綠、藍、Alpha 通道資料格式,使用正規化的值。取值均在 ``[0.0, 1.0]`` 的範圍內。該格式的精度為紅、綠、藍通道在 4 到 7 位之間,Alpha 通道在 0 到 8 位之間。使用 BC7 紋理壓縮。也叫 BPTC HDR。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_BC7_SRGB_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_BC7_SRGB_BLOCK** = ``145``
|
||
|
||
VRAM-compressed unsigned red/green/blue/alpha channel data format with normalized value and nonlinear sRGB encoding. Values are in the ``[0.0, 1.0]`` 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.
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ETC2_R8G8B8_UNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ETC2_R8G8B8_UNORM_BLOCK** = ``146``
|
||
|
||
顯存壓縮的無符號紅、綠、藍通道資料格式,使用正規化的值。取值均在 ``[0.0, 1.0]`` 的範圍內。使用 ETC2 紋理壓縮。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ETC2_R8G8B8_SRGB_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ETC2_R8G8B8_SRGB_BLOCK** = ``147``
|
||
|
||
VRAM-compressed unsigned red/green/blue channel data format with normalized value and nonlinear sRGB encoding. Values are in the ``[0.0, 1.0]`` range. Using ETC2 texture compression.
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK** = ``148``
|
||
|
||
顯存壓縮的無符號紅、綠、藍、Alpha 通道資料格式,使用正規化的值。取值均在 ``[0.0, 1.0]`` 的範圍內。紅、綠、藍均使用 8 位精度,Alpha 使用 1 位精度。使用 ETC2 紋理壓縮。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK** = ``149``
|
||
|
||
VRAM-compressed unsigned red/green/blue/alpha channel data format with normalized value and nonlinear sRGB encoding. Values are in the ``[0.0, 1.0]`` range. Red/green/blue use 8 bit of precision each, with alpha using 1 bit of precision. Using ETC2 texture compression.
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK** = ``150``
|
||
|
||
顯存壓縮的無符號紅、綠、藍、Alpha 通道資料格式,使用正規化的值。取值均在 ``[0.0, 1.0]`` 的範圍內。紅、綠、藍均使用 8 位精度,Alpha 使用 8 位精度。使用 ETC2 紋理壓縮。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK** = ``151``
|
||
|
||
VRAM-compressed unsigned red/green/blue/alpha channel data format with normalized value and nonlinear sRGB encoding. Values are in the ``[0.0, 1.0]`` range. Red/green/blue use 8 bits of precision each, with alpha using 8 bits of precision. Using ETC2 texture compression.
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_EAC_R11_UNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_EAC_R11_UNORM_BLOCK** = ``152``
|
||
|
||
11 位元顯存壓縮的無符號紅通道資料格式,使用正規化的值。取值均在 ``[0.0, 1.0]`` 的範圍內。使用 ETC2 紋理壓縮。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_EAC_R11_SNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_EAC_R11_SNORM_BLOCK** = ``153``
|
||
|
||
11-bit VRAM-compressed signed red channel data format with normalized value. Values are in the ``[-1.0, 1.0]`` range. Using ETC2 texture compression.
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_EAC_R11G11_UNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_EAC_R11G11_UNORM_BLOCK** = ``154``
|
||
|
||
11 位元顯存壓縮的無符號紅、綠通道資料格式,使用正規化的值。取值均在 ``[0.0, 1.0]`` 的範圍內。使用 ETC2 紋理壓縮。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_EAC_R11G11_SNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_EAC_R11G11_SNORM_BLOCK** = ``155``
|
||
|
||
11-bit VRAM-compressed signed red/green channel data format with normalized value. Values are in the ``[-1.0, 1.0]`` range. Using ETC2 texture compression.
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_4x4_UNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_4x4_UNORM_BLOCK** = ``156``
|
||
|
||
顯存壓縮的無符號浮點數資料格式,使用正規化的值,緊縮在 4x4 的區塊內(品質最高)。取值均在 ``[0.0, 1.0]`` 的範圍內。使用 ASTC 壓縮。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_4x4_SRGB_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_4x4_SRGB_BLOCK** = ``157``
|
||
|
||
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 ``[0.0, 1.0]`` range. Using ASTC compression.
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_5x4_UNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_5x4_UNORM_BLOCK** = ``158``
|
||
|
||
顯存壓縮的無符號浮點數資料格式,使用正規化的值,緊縮在 5x4 的區塊內。取值均在 ``[0.0, 1.0]`` 的範圍內。使用 ASTC 壓縮。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_5x4_SRGB_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_5x4_SRGB_BLOCK** = ``159``
|
||
|
||
VRAM-compressed unsigned floating-point data format with normalized value and nonlinear sRGB encoding, packed in 5×4 blocks. Values are in the ``[0.0, 1.0]`` range. Using ASTC compression.
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_5x5_UNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_5x5_UNORM_BLOCK** = ``160``
|
||
|
||
顯存壓縮的無符號浮點數資料格式,使用正規化的值,緊縮在 5x5 的區塊內。取值均在 ``[0.0, 1.0]`` 的範圍內。使用 ASTC 壓縮。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_5x5_SRGB_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_5x5_SRGB_BLOCK** = ``161``
|
||
|
||
VRAM-compressed unsigned floating-point data format with normalized value and nonlinear sRGB encoding, packed in 5×5 blocks. Values are in the ``[0.0, 1.0]`` range. Using ASTC compression.
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_6x5_UNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_6x5_UNORM_BLOCK** = ``162``
|
||
|
||
顯存壓縮的無符號浮點數資料格式,使用正規化的值,緊縮在 6x5 的區塊內。取值均在 ``[0.0, 1.0]`` 的範圍內。使用 ASTC 壓縮。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_6x5_SRGB_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_6x5_SRGB_BLOCK** = ``163``
|
||
|
||
VRAM-compressed unsigned floating-point data format with normalized value and nonlinear sRGB encoding, packed in 6×5 blocks. Values are in the ``[0.0, 1.0]`` range. Using ASTC compression.
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_6x6_UNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_6x6_UNORM_BLOCK** = ``164``
|
||
|
||
顯存壓縮的無符號浮點數資料格式,使用正規化的值,緊縮在 6x6 的區塊內。取值均在 ``[0.0, 1.0]`` 的範圍內。使用 ASTC 壓縮。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_6x6_SRGB_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_6x6_SRGB_BLOCK** = ``165``
|
||
|
||
VRAM-compressed unsigned floating-point data format with normalized value and nonlinear sRGB encoding, packed in 6×6 blocks. Values are in the ``[0.0, 1.0]`` range. Using ASTC compression.
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_8x5_UNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_8x5_UNORM_BLOCK** = ``166``
|
||
|
||
顯存壓縮的無符號浮點數資料格式,使用正規化的值,緊縮在 8x5 的區塊內。取值均在 ``[0.0, 1.0]`` 的範圍內。使用 ASTC 壓縮。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_8x5_SRGB_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_8x5_SRGB_BLOCK** = ``167``
|
||
|
||
VRAM-compressed unsigned floating-point data format with normalized value and nonlinear sRGB encoding, packed in 8×5 blocks. Values are in the ``[0.0, 1.0]`` range. Using ASTC compression.
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_8x6_UNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_8x6_UNORM_BLOCK** = ``168``
|
||
|
||
顯存壓縮的無符號浮點數資料格式,使用正規化的值,緊縮在 8x6 的區塊內。取值均在 ``[0.0, 1.0]`` 的範圍內。使用 ASTC 壓縮。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_8x6_SRGB_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_8x6_SRGB_BLOCK** = ``169``
|
||
|
||
VRAM-compressed unsigned floating-point data format with normalized value and nonlinear sRGB encoding, packed in 8×6 blocks. Values are in the ``[0.0, 1.0]`` range. Using ASTC compression.
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_8x8_UNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_8x8_UNORM_BLOCK** = ``170``
|
||
|
||
顯存壓縮的無符號浮點數資料格式,使用正規化的值,緊縮在 8x8 的區塊內。取值均在 ``[0.0, 1.0]`` 的範圍內。使用 ASTC 壓縮。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_8x8_SRGB_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_8x8_SRGB_BLOCK** = ``171``
|
||
|
||
VRAM-compressed unsigned floating-point data format with normalized value and nonlinear sRGB encoding, packed in 8×8 blocks. Values are in the ``[0.0, 1.0]`` range. Using ASTC compression.
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_10x5_UNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_10x5_UNORM_BLOCK** = ``172``
|
||
|
||
顯存壓縮的無符號浮點數資料格式,使用正規化的值,緊縮在 10x5 的區塊內。取值均在 ``[0.0, 1.0]`` 的範圍內。使用 ASTC 壓縮。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_10x5_SRGB_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_10x5_SRGB_BLOCK** = ``173``
|
||
|
||
VRAM-compressed unsigned floating-point data format with normalized value and nonlinear sRGB encoding, packed in 10×5 blocks. Values are in the ``[0.0, 1.0]`` range. Using ASTC compression.
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_10x6_UNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_10x6_UNORM_BLOCK** = ``174``
|
||
|
||
顯存壓縮的無符號浮點數資料格式,使用正規化的值,緊縮在 10x6 的區塊內。取值均在 ``[0.0, 1.0]`` 的範圍內。使用 ASTC 壓縮。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_10x6_SRGB_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_10x6_SRGB_BLOCK** = ``175``
|
||
|
||
VRAM-compressed unsigned floating-point data format with normalized value and nonlinear sRGB encoding, packed in 10×6 blocks. Values are in the ``[0.0, 1.0]`` range. Using ASTC compression.
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_10x8_UNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_10x8_UNORM_BLOCK** = ``176``
|
||
|
||
顯存壓縮的無符號浮點數資料格式,使用正規化的值,緊縮在 10x8 的區塊內。取值均在 ``[0.0, 1.0]`` 的範圍內。使用 ASTC 壓縮。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_10x8_SRGB_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_10x8_SRGB_BLOCK** = ``177``
|
||
|
||
VRAM-compressed unsigned floating-point data format with normalized value and nonlinear sRGB encoding, packed in 10×8 blocks. Values are in the ``[0.0, 1.0]`` range. Using ASTC compression.
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_10x10_UNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_10x10_UNORM_BLOCK** = ``178``
|
||
|
||
顯存壓縮的無符號浮點數資料格式,使用正規化的值,緊縮在 10x10 的區塊內。取值均在 ``[0.0, 1.0]`` 的範圍內。使用 ASTC 壓縮。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_10x10_SRGB_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_10x10_SRGB_BLOCK** = ``179``
|
||
|
||
VRAM-compressed unsigned floating-point data format with normalized value and nonlinear sRGB encoding, packed in 10×10 blocks. Values are in the ``[0.0, 1.0]`` range. Using ASTC compression.
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_12x10_UNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_12x10_UNORM_BLOCK** = ``180``
|
||
|
||
顯存壓縮的無符號浮點數資料格式,使用正規化的值,緊縮在 12x10 的區塊內。取值均在 ``[0.0, 1.0]`` 的範圍內。使用 ASTC 壓縮。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_12x10_SRGB_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_12x10_SRGB_BLOCK** = ``181``
|
||
|
||
VRAM-compressed unsigned floating-point data format with normalized value and nonlinear sRGB encoding, packed in 12×10 blocks. Values are in the ``[0.0, 1.0]`` range. Using ASTC compression.
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_12x12_UNORM_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_12x12_UNORM_BLOCK** = ``182``
|
||
|
||
顯存壓縮的無符號浮點數資料格式,使用正規化的值,緊縮在 12 個區塊內(品質最低)。取值均在 ``[0.0, 1.0]`` 的範圍內。使用 ASTC 壓縮。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_12x12_SRGB_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_12x12_SRGB_BLOCK** = ``183``
|
||
|
||
VRAM-compressed unsigned floating-point data format with normalized value and nonlinear sRGB encoding, packed in 12 blocks (lowest quality). Values are in the ``[0.0, 1.0]`` range. Using ASTC compression.
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_G8B8G8R8_422_UNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_G8B8G8R8_422_UNORM** = ``184``
|
||
|
||
每通道 8 位元的無符號浮點數綠、藍、紅通道資料格式,使用正規化的值。取值均在 ``[0.0, 1.0]`` 的範圍內。藍、紅通道資料橫向半解析度儲存(即兩個橫向相鄰的圖元共用同一個藍、紅通道數值)。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_B8G8R8G8_422_UNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_B8G8R8G8_422_UNORM** = ``185``
|
||
|
||
每通道 8 位元的無符號浮點數藍、綠、紅通道資料格式,使用正規化的值。取值均在 ``[0.0, 1.0]`` 的範圍內。藍、紅通道資料橫向半解析度儲存(即兩個橫向相鄰的圖元共用同一個藍、紅通道數值)。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_G8_B8_R8_3PLANE_420_UNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_G8_B8_R8_3PLANE_420_UNORM** = ``186``
|
||
|
||
每通道 8 位元的無符號浮點數綠、藍、紅通道資料格式,使用正規化的值,分別在三個獨立平面儲存(綠 + 藍 + 紅)。取值均在 ``[0.0, 1.0]`` 的範圍內。藍、紅通道資料縱橫半解析度儲存(即 2x2 相鄰的圖元共用同一個藍、紅通道數值)。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_G8_B8R8_2PLANE_420_UNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_G8_B8R8_2PLANE_420_UNORM** = ``187``
|
||
|
||
每通道 8 位元的無符號浮點數綠、藍、紅通道資料格式,使用正規化的值,分別在兩個獨立平面儲存(綠 + 藍、紅)。取值均在 ``[0.0, 1.0]`` 的範圍內。藍、紅通道資料縱橫半解析度儲存(即 2x2 相鄰的圖元共用同一個藍、紅通道數值)。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_G8_B8_R8_3PLANE_422_UNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_G8_B8_R8_3PLANE_422_UNORM** = ``188``
|
||
|
||
每通道 8 位元的無符號浮點數綠、藍、紅通道資料格式,使用正規化的值,分別在兩個獨立平面儲存(綠 + 藍 + 紅)。取值均在 ``[0.0, 1.0]`` 的範圍內。藍、紅通道資料橫向半解析度儲存(即兩個橫向相鄰的圖元共用同一個藍、紅通道數值)。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_G8_B8R8_2PLANE_422_UNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_G8_B8R8_2PLANE_422_UNORM** = ``189``
|
||
|
||
每通道 8 位元的無符號浮點數綠、藍、紅通道資料格式,使用正規化的值,分別在兩個獨立平面儲存(綠 + 藍、紅)。取值均在 ``[0.0, 1.0]`` 的範圍內。藍、紅通道資料橫向半解析度儲存(即兩個橫向相鄰的圖元共用同一個藍、紅通道數值)。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_G8_B8_R8_3PLANE_444_UNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_G8_B8_R8_3PLANE_444_UNORM** = ``190``
|
||
|
||
每通道 8 位元的無符號浮點數綠、藍、紅通道資料格式,使用正規化的值,分別在三個獨立平面儲存。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R10X6_UNORM_PACK16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R10X6_UNORM_PACK16** = ``191``
|
||
|
||
每通道 10 位元的無符號浮點數紅通道資料,使用正規化的值,另有 6 位未使用,緊縮在 16 個比特位中。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R10X6G10X6_UNORM_2PACK16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R10X6G10X6_UNORM_2PACK16** = ``192``
|
||
|
||
每通道 10 位元的無符號浮點數紅、綠通道資料,使用正規化的值,每個通道均另有 6 位未使用,緊縮在 2x16 個比特位中。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16** = ``193``
|
||
|
||
每通道 10 位元的無符號浮點數紅、綠、藍、Alpha 通道資料,使用正規化的值,每個通道均另有 6 位未使用,緊縮在 4x16 個比特位中。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16** = ``194``
|
||
|
||
每通道 10 位元的無符號浮點數綠、藍、綠、紅通道資料,使用正規化的值,每個通道均另有 6 位未使用,緊縮在 4x16 個比特位中。取值均在 ``[0.0, 1.0]`` 的範圍內。藍、紅通道資料橫向半解析度儲存(即兩個橫向相鄰的圖元共用同一個藍、紅通道數值)。綠通道出現兩次,但包含不同的值,因此能夠表示為完整的解析度。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16** = ``195``
|
||
|
||
每通道 10 位元的無符號浮點數藍、綠、紅、綠通道資料,使用正規化的值,每個通道均另有 6 位未使用,緊縮在 4x16 個比特位中。取值均在 ``[0.0, 1.0]`` 的範圍內。藍、紅通道資料橫向半解析度儲存(即兩個橫向相鄰的圖元共用同一個藍、紅通道數值)。綠通道出現兩次,但包含不同的值,因此能夠表示為完整的解析度。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16** = ``196``
|
||
|
||
每通道 10 位元的無符號浮點數綠、藍、紅通道資料,使用正規化的值,每個通道均另有 6 位未使用,緊縮在 3x16 個比特位中,分別在兩個獨立平面儲存(綠 + 藍 + 紅)。取值均在 ``[0.0, 1.0]`` 的範圍內。藍、紅通道資料縱橫半解析度儲存(即 2x2 相鄰的圖元共用同一個藍、紅通道數值)。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16** = ``197``
|
||
|
||
每通道 10 位元的無符號浮點數綠、藍、紅通道資料,使用正規化的值,每個通道均另有 6 位未使用,緊縮在 3x16 個比特位中,分別在兩個獨立平面儲存(綠 + 藍、紅)。取值均在 ``[0.0, 1.0]`` 的範圍內。藍、紅通道資料縱橫半解析度儲存(即 2x2 相鄰的圖元共用同一個藍、紅通道數值)。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16** = ``198``
|
||
|
||
每通道 10 位元的無符號浮點數綠、藍、紅通道資料,使用正規化的值,每個通道均另有 6 位未使用,緊縮在 3x16 個比特位中,分別在三個獨立平面儲存(綠 + 藍 + 紅)。取值均在 ``[0.0, 1.0]`` 的範圍內。藍、紅通道資料橫向半解析度儲存(即兩個橫向相鄰的圖元共用同一個藍、紅通道數值)。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16** = ``199``
|
||
|
||
每通道 10 位元的無符號浮點數綠、藍、紅通道資料,使用正規化的值,每個通道均另有 6 位未使用,緊縮在 3x16 個比特位中,分別在三個獨立平面儲存(綠 + 藍、紅)。取值均在 ``[0.0, 1.0]`` 的範圍內。藍、紅通道資料橫向半解析度儲存(即兩個橫向相鄰的圖元共用同一個藍、紅通道數值)。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16** = ``200``
|
||
|
||
每通道 10 位元的無符號浮點數綠、藍、紅通道資料,使用正規化的值,每個通道均另有 6 位未使用,緊縮在 3x16 個比特位中,分別在三個獨立平面儲存(綠 + 藍 + 紅)。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R12X4_UNORM_PACK16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R12X4_UNORM_PACK16** = ``201``
|
||
|
||
每通道 12 位元的無符號浮點數紅通道資料,使用正規化的值,另有 6 位未使用,緊縮在 16 個比特位中。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R12X4G12X4_UNORM_2PACK16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R12X4G12X4_UNORM_2PACK16** = ``202``
|
||
|
||
每通道 12 位元的無符號浮點數紅、綠通道資料,使用正規化的值,每個通道均另有 6 位未使用,緊縮在 2x16 個比特位中。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16** = ``203``
|
||
|
||
每通道 12 位元的無符號浮點數紅、綠、藍、Alpha 通道資料,使用正規化的值,每個通道均另有 6 位未使用,緊縮在 4x16 個比特位中。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16** = ``204``
|
||
|
||
每通道 12 位元的無符號浮點數綠、藍、綠、紅通道資料,使用正規化的值,每個通道均另有 6 位未使用,緊縮在 4x16 個比特位中。取值均在 ``[0.0, 1.0]`` 的範圍內。藍、紅通道資料橫向半解析度儲存(即兩個橫向相鄰的圖元共用同一個藍、紅通道數值)。綠通道出現兩次,但包含不同的值,因此能夠表示為完整的解析度。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16** = ``205``
|
||
|
||
每通道 12 位元的無符號浮點數藍、綠、紅、綠通道資料,使用正規化的值,每個通道均另有 6 位未使用,緊縮在 4x16 個比特位中。取值均在 ``[0.0, 1.0]`` 的範圍內。藍、紅通道資料橫向半解析度儲存(即兩個橫向相鄰的圖元共用同一個藍、紅通道數值)。綠通道出現兩次,但包含不同的值,因此能夠表示為完整的解析度。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16** = ``206``
|
||
|
||
每通道 12 位元的無符號浮點數綠、藍、紅通道資料,使用正規化的值,每個通道均另有 6 位未使用,緊縮在 3x16 個比特位中,分別在兩個獨立平面儲存(綠 + 藍 + 紅)。取值均在 ``[0.0, 1.0]`` 的範圍內。藍、紅通道資料縱橫半解析度儲存(即 2x2 相鄰的圖元共用同一個藍、紅通道數值)。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16** = ``207``
|
||
|
||
每通道 12 位元的無符號浮點數綠、藍、紅通道資料,使用正規化的值,每個通道均另有 6 位未使用,緊縮在 3x16 個比特位中,分別在兩個獨立平面儲存(綠 + 藍、紅)。取值均在 ``[0.0, 1.0]`` 的範圍內。藍、紅通道資料縱橫半解析度儲存(即 2x2 相鄰的圖元共用同一個藍、紅通道數值)。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16** = ``208``
|
||
|
||
每通道 12 位元的無符號浮點數綠、藍、紅通道資料,使用正規化的值,每個通道均另有 6 位未使用,緊縮在 3x16 個比特位中,分別在三個獨立平面儲存(綠 + 藍 + 紅)。取值均在 ``[0.0, 1.0]`` 的範圍內。藍、紅通道資料橫向半解析度儲存(即兩個橫向相鄰的圖元共用同一個藍、紅通道數值)。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16** = ``209``
|
||
|
||
每通道 12 位元的無符號浮點數綠、藍、紅通道資料,使用正規化的值,每個通道均另有 6 位未使用,緊縮在 3x16 個比特位中,分別在三個獨立平面儲存(綠 + 藍、紅)。取值均在 ``[0.0, 1.0]`` 的範圍內。藍、紅通道資料橫向半解析度儲存(即兩個橫向相鄰的圖元共用同一個藍、紅通道數值)。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16** = ``210``
|
||
|
||
每通道 12 位元的無符號浮點數綠、藍、紅通道資料,使用正規化的值,每個通道均另有 6 位未使用,緊縮在 3x16 個比特位中,分別在三個獨立平面儲存(綠 + 藍 + 紅)。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_G16B16G16R16_422_UNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_G16B16G16R16_422_UNORM** = ``211``
|
||
|
||
每通道 16 位元的無符號浮點數綠、藍、紅通道資料格式,使用正規化的值。取值均在 ``[0.0, 1.0]`` 的範圍內。藍、紅通道資料橫向半解析度儲存(即兩個橫向相鄰的圖元共用同一個藍、紅通道數值)。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_B16G16R16G16_422_UNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_B16G16R16G16_422_UNORM** = ``212``
|
||
|
||
每通道 16 位元的無符號浮點數藍、綠、紅通道資料格式,使用正規化的值。取值均在 ``[0.0, 1.0]`` 的範圍內。藍、紅通道資料橫向半解析度儲存(即兩個橫向相鄰的圖元共用同一個藍、紅通道數值)。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_G16_B16_R16_3PLANE_420_UNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_G16_B16_R16_3PLANE_420_UNORM** = ``213``
|
||
|
||
每通道 16 位元的無符號浮點數綠、藍、紅通道資料,使用正規化的值,每個通道均另有 6 位未使用。分別在兩個獨立平面儲存(綠 + 藍 + 紅)。取值均在 ``[0.0, 1.0]`` 的範圍內。藍、紅通道資料縱橫半解析度儲存(即 2x2 相鄰的圖元共用同一個藍、紅通道數值)。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_G16_B16R16_2PLANE_420_UNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_G16_B16R16_2PLANE_420_UNORM** = ``214``
|
||
|
||
每通道 16 位元的無符號浮點數綠、藍、紅通道資料,使用正規化的值,每個通道均另有 6 位未使用。分別在兩個獨立平面儲存(綠 + 藍、紅)。取值均在 ``[0.0, 1.0]`` 的範圍內。藍、紅通道資料縱橫半解析度儲存(即 2x2 相鄰的圖元共用同一個藍、紅通道數值)。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_G16_B16_R16_3PLANE_422_UNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_G16_B16_R16_3PLANE_422_UNORM** = ``215``
|
||
|
||
每通道 16 位元的無符號浮點數綠、藍、紅通道資料,使用正規化的值,每個通道均另有 6 位未使用。分別在三個獨立平面儲存(綠 + 藍 + 紅)。取值均在 ``[0.0, 1.0]`` 的範圍內。藍、紅通道資料橫向半解析度儲存(即兩個橫向相鄰的圖元共用同一個藍、紅通道數值)。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_G16_B16R16_2PLANE_422_UNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_G16_B16R16_2PLANE_422_UNORM** = ``216``
|
||
|
||
每通道 16 位元的無符號浮點數綠、藍、紅通道資料,使用正規化的值,每個通道均另有 6 位未使用。分別在三個獨立平面儲存(綠 + 藍、紅)。取值均在 ``[0.0, 1.0]`` 的範圍內。藍、紅通道資料橫向半解析度儲存(即兩個橫向相鄰的圖元共用同一個藍、紅通道數值)。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_G16_B16_R16_3PLANE_444_UNORM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_G16_B16_R16_3PLANE_444_UNORM** = ``217``
|
||
|
||
每通道 16 位元的無符號浮點數綠、藍、紅通道資料,使用正規化的值,每個通道均另有 6 位未使用。分別在三個獨立平面儲存(綠 + 藍 + 紅)。取值均在 ``[0.0, 1.0]`` 的範圍內。
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_4x4_SFLOAT_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_4x4_SFLOAT_BLOCK** = ``218``
|
||
|
||
.. container:: contribute
|
||
|
||
There is currently no description for this enum. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_5x4_SFLOAT_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_5x4_SFLOAT_BLOCK** = ``219``
|
||
|
||
.. container:: contribute
|
||
|
||
There is currently no description for this enum. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_5x5_SFLOAT_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_5x5_SFLOAT_BLOCK** = ``220``
|
||
|
||
.. container:: contribute
|
||
|
||
There is currently no description for this enum. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_6x5_SFLOAT_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_6x5_SFLOAT_BLOCK** = ``221``
|
||
|
||
.. container:: contribute
|
||
|
||
There is currently no description for this enum. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_6x6_SFLOAT_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_6x6_SFLOAT_BLOCK** = ``222``
|
||
|
||
.. container:: contribute
|
||
|
||
There is currently no description for this enum. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_8x5_SFLOAT_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_8x5_SFLOAT_BLOCK** = ``223``
|
||
|
||
.. container:: contribute
|
||
|
||
There is currently no description for this enum. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_8x6_SFLOAT_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_8x6_SFLOAT_BLOCK** = ``224``
|
||
|
||
.. container:: contribute
|
||
|
||
There is currently no description for this enum. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_8x8_SFLOAT_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_8x8_SFLOAT_BLOCK** = ``225``
|
||
|
||
.. container:: contribute
|
||
|
||
There is currently no description for this enum. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_10x5_SFLOAT_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_10x5_SFLOAT_BLOCK** = ``226``
|
||
|
||
.. container:: contribute
|
||
|
||
There is currently no description for this enum. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_10x6_SFLOAT_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_10x6_SFLOAT_BLOCK** = ``227``
|
||
|
||
.. container:: contribute
|
||
|
||
There is currently no description for this enum. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_10x8_SFLOAT_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_10x8_SFLOAT_BLOCK** = ``228``
|
||
|
||
.. container:: contribute
|
||
|
||
There is currently no description for this enum. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_10x10_SFLOAT_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_10x10_SFLOAT_BLOCK** = ``229``
|
||
|
||
.. container:: contribute
|
||
|
||
There is currently no description for this enum. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_12x10_SFLOAT_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_12x10_SFLOAT_BLOCK** = ``230``
|
||
|
||
.. container:: contribute
|
||
|
||
There is currently no description for this enum. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_ASTC_12x12_SFLOAT_BLOCK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_ASTC_12x12_SFLOAT_BLOCK** = ``231``
|
||
|
||
.. container:: contribute
|
||
|
||
There is currently no description for this enum. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DATA_FORMAT_MAX:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **DATA_FORMAT_MAX** = ``232``
|
||
|
||
代表 :ref:`DataFormat<enum_RenderingDevice_DataFormat>` 列舉的大小。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_BarrierMask:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
flags **BarrierMask**: :ref:`🔗<enum_RenderingDevice_BarrierMask>`
|
||
|
||
.. _class_RenderingDevice_constant_BARRIER_MASK_VERTEX:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BarrierMask<enum_RenderingDevice_BarrierMask>` **BARRIER_MASK_VERTEX** = ``1``
|
||
|
||
傳輸屏障遮罩。
|
||
|
||
.. _class_RenderingDevice_constant_BARRIER_MASK_FRAGMENT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BarrierMask<enum_RenderingDevice_BarrierMask>` **BARRIER_MASK_FRAGMENT** = ``8``
|
||
|
||
傳輸屏障遮罩。
|
||
|
||
.. _class_RenderingDevice_constant_BARRIER_MASK_COMPUTE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BarrierMask<enum_RenderingDevice_BarrierMask>` **BARRIER_MASK_COMPUTE** = ``2``
|
||
|
||
計算屏障遮罩。
|
||
|
||
.. _class_RenderingDevice_constant_BARRIER_MASK_TRANSFER:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BarrierMask<enum_RenderingDevice_BarrierMask>` **BARRIER_MASK_TRANSFER** = ``4``
|
||
|
||
傳輸屏障遮罩。
|
||
|
||
.. _class_RenderingDevice_constant_BARRIER_MASK_RASTER:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BarrierMask<enum_RenderingDevice_BarrierMask>` **BARRIER_MASK_RASTER** = ``9``
|
||
|
||
所有型別的屏障遮罩(柵格化、計算、傳輸)。等價於 ``BARRIER_MASK_RASTER | BARRIER_MASK_COMPUTE | BARRIER_MASK_TRANSFER``\ 。
|
||
|
||
.. _class_RenderingDevice_constant_BARRIER_MASK_ALL_BARRIERS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BarrierMask<enum_RenderingDevice_BarrierMask>` **BARRIER_MASK_ALL_BARRIERS** = ``32767``
|
||
|
||
所有型別(頂點、片段、計算、傳輸)的屏障遮罩。
|
||
|
||
.. _class_RenderingDevice_constant_BARRIER_MASK_NO_BARRIER:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BarrierMask<enum_RenderingDevice_BarrierMask>` **BARRIER_MASK_NO_BARRIER** = ``32768``
|
||
|
||
沒有任何型別的屏障。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_TextureType:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **TextureType**: :ref:`🔗<enum_RenderingDevice_TextureType>`
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_TYPE_1D:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureType<enum_RenderingDevice_TextureType>` **TEXTURE_TYPE_1D** = ``0``
|
||
|
||
一維紋理。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_TYPE_2D:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureType<enum_RenderingDevice_TextureType>` **TEXTURE_TYPE_2D** = ``1``
|
||
|
||
二維紋理。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_TYPE_3D:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureType<enum_RenderingDevice_TextureType>` **TEXTURE_TYPE_3D** = ``2``
|
||
|
||
三維紋理。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_TYPE_CUBE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureType<enum_RenderingDevice_TextureType>` **TEXTURE_TYPE_CUBE** = ``3``
|
||
|
||
:ref:`Cubemap<class_Cubemap>` 紋理。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_TYPE_1D_ARRAY:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureType<enum_RenderingDevice_TextureType>` **TEXTURE_TYPE_1D_ARRAY** = ``4``
|
||
|
||
一維紋理陣列。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_TYPE_2D_ARRAY:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureType<enum_RenderingDevice_TextureType>` **TEXTURE_TYPE_2D_ARRAY** = ``5``
|
||
|
||
二維紋理陣列。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_TYPE_CUBE_ARRAY:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureType<enum_RenderingDevice_TextureType>` **TEXTURE_TYPE_CUBE_ARRAY** = ``6``
|
||
|
||
:ref:`Cubemap<class_Cubemap>` 紋理陣列。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_TYPE_MAX:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureType<enum_RenderingDevice_TextureType>` **TEXTURE_TYPE_MAX** = ``7``
|
||
|
||
代表 :ref:`TextureType<enum_RenderingDevice_TextureType>` 列舉的大小。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_TextureSamples:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **TextureSamples**: :ref:`🔗<enum_RenderingDevice_TextureSamples>`
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_SAMPLES_1:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureSamples<enum_RenderingDevice_TextureSamples>` **TEXTURE_SAMPLES_1** = ``0``
|
||
|
||
執行 1 次紋理取樣(最快,但抗鋸齒品質最低)。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_SAMPLES_2:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureSamples<enum_RenderingDevice_TextureSamples>` **TEXTURE_SAMPLES_2** = ``1``
|
||
|
||
執行 2 次紋理取樣。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_SAMPLES_4:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureSamples<enum_RenderingDevice_TextureSamples>` **TEXTURE_SAMPLES_4** = ``2``
|
||
|
||
執行 4 次紋理取樣。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_SAMPLES_8:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureSamples<enum_RenderingDevice_TextureSamples>` **TEXTURE_SAMPLES_8** = ``3``
|
||
|
||
執行 8 次紋理取樣。移動 GPU 不支援(包括 Apple Silicon)。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_SAMPLES_16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureSamples<enum_RenderingDevice_TextureSamples>` **TEXTURE_SAMPLES_16** = ``4``
|
||
|
||
執行 16 次紋理取樣。移動 GPU 及許多桌面 GPU 均不支援。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_SAMPLES_32:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureSamples<enum_RenderingDevice_TextureSamples>` **TEXTURE_SAMPLES_32** = ``5``
|
||
|
||
執行 32 次紋理取樣。大多數 GPU 均不支援。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_SAMPLES_64:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureSamples<enum_RenderingDevice_TextureSamples>` **TEXTURE_SAMPLES_64** = ``6``
|
||
|
||
執行 64 次紋理取樣(最慢,但抗鋸齒品質最高)。大多數 GPU 均不支援。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_SAMPLES_MAX:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureSamples<enum_RenderingDevice_TextureSamples>` **TEXTURE_SAMPLES_MAX** = ``7``
|
||
|
||
代表 :ref:`TextureSamples<enum_RenderingDevice_TextureSamples>` 列舉的大小。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_TextureUsageBits:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
flags **TextureUsageBits**: :ref:`🔗<enum_RenderingDevice_TextureUsageBits>`
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_USAGE_SAMPLING_BIT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureUsageBits<enum_RenderingDevice_TextureUsageBits>` **TEXTURE_USAGE_SAMPLING_BIT** = ``1``
|
||
|
||
紋理可以取樣。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_USAGE_COLOR_ATTACHMENT_BIT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureUsageBits<enum_RenderingDevice_TextureUsageBits>` **TEXTURE_USAGE_COLOR_ATTACHMENT_BIT** = ``2``
|
||
|
||
紋理可以用作影格緩衝的顏色附件。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureUsageBits<enum_RenderingDevice_TextureUsageBits>` **TEXTURE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT** = ``4``
|
||
|
||
紋理可以用作影格緩衝的深度/範本附件。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_USAGE_DEPTH_RESOLVE_ATTACHMENT_BIT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureUsageBits<enum_RenderingDevice_TextureUsageBits>` **TEXTURE_USAGE_DEPTH_RESOLVE_ATTACHMENT_BIT** = ``4096``
|
||
|
||
Texture can be used as a depth/stencil resolve attachment in a framebuffer.
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_USAGE_STORAGE_BIT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureUsageBits<enum_RenderingDevice_TextureUsageBits>` **TEXTURE_USAGE_STORAGE_BIT** = ``8``
|
||
|
||
紋理可以用作\ `儲存圖像 <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#descriptorsets-storageimage>`__\ 。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_USAGE_STORAGE_ATOMIC_BIT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureUsageBits<enum_RenderingDevice_TextureUsageBits>` **TEXTURE_USAGE_STORAGE_ATOMIC_BIT** = ``16``
|
||
|
||
紋理可以用作支援不可分割操作的\ `儲存圖像 <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#descriptorsets-storageimage>`__\ 。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_USAGE_CPU_READ_BIT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureUsageBits<enum_RenderingDevice_TextureUsageBits>` **TEXTURE_USAGE_CPU_READ_BIT** = ``32``
|
||
|
||
紋理可以在 CPU 上使用 :ref:`texture_get_data()<class_RenderingDevice_method_texture_get_data>` 讀取,比不設定這一位要快,因為會始終在系統記憶體中保留。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_USAGE_CAN_UPDATE_BIT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureUsageBits<enum_RenderingDevice_TextureUsageBits>` **TEXTURE_USAGE_CAN_UPDATE_BIT** = ``64``
|
||
|
||
紋理可以使用 :ref:`texture_update()<class_RenderingDevice_method_texture_update>` 更新。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_USAGE_CAN_COPY_FROM_BIT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureUsageBits<enum_RenderingDevice_TextureUsageBits>` **TEXTURE_USAGE_CAN_COPY_FROM_BIT** = ``128``
|
||
|
||
紋理可以作為 :ref:`texture_copy()<class_RenderingDevice_method_texture_copy>` 的來源。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_USAGE_CAN_COPY_TO_BIT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureUsageBits<enum_RenderingDevice_TextureUsageBits>` **TEXTURE_USAGE_CAN_COPY_TO_BIT** = ``256``
|
||
|
||
紋理可以作為 :ref:`texture_copy()<class_RenderingDevice_method_texture_copy>` 的目標。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_USAGE_INPUT_ATTACHMENT_BIT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureUsageBits<enum_RenderingDevice_TextureUsageBits>` **TEXTURE_USAGE_INPUT_ATTACHMENT_BIT** = ``512``
|
||
|
||
紋理可以用作影格緩衝的\ `輸入附件 <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#descriptorsets-inputattachment>`__\ 。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_TextureSwizzle:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **TextureSwizzle**: :ref:`🔗<enum_RenderingDevice_TextureSwizzle>`
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_SWIZZLE_IDENTITY:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureSwizzle<enum_RenderingDevice_TextureSwizzle>` **TEXTURE_SWIZZLE_IDENTITY** = ``0``
|
||
|
||
原樣返回取樣數值。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_SWIZZLE_ZERO:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureSwizzle<enum_RenderingDevice_TextureSwizzle>` **TEXTURE_SWIZZLE_ZERO** = ``1``
|
||
|
||
取樣時使用返回 ``0.0``\ 。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_SWIZZLE_ONE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureSwizzle<enum_RenderingDevice_TextureSwizzle>` **TEXTURE_SWIZZLE_ONE** = ``2``
|
||
|
||
取樣時使用返回 ``1.0``\ 。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_SWIZZLE_R:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureSwizzle<enum_RenderingDevice_TextureSwizzle>` **TEXTURE_SWIZZLE_R** = ``3``
|
||
|
||
對紅色通道進行取樣。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_SWIZZLE_G:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureSwizzle<enum_RenderingDevice_TextureSwizzle>` **TEXTURE_SWIZZLE_G** = ``4``
|
||
|
||
對綠色通道進行取樣。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_SWIZZLE_B:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureSwizzle<enum_RenderingDevice_TextureSwizzle>` **TEXTURE_SWIZZLE_B** = ``5``
|
||
|
||
對藍色通道進行取樣。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_SWIZZLE_A:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureSwizzle<enum_RenderingDevice_TextureSwizzle>` **TEXTURE_SWIZZLE_A** = ``6``
|
||
|
||
對 Alpha 通道進行取樣。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_SWIZZLE_MAX:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureSwizzle<enum_RenderingDevice_TextureSwizzle>` **TEXTURE_SWIZZLE_MAX** = ``7``
|
||
|
||
代表 :ref:`TextureSwizzle<enum_RenderingDevice_TextureSwizzle>` 列舉的大小。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_TextureSliceType:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **TextureSliceType**: :ref:`🔗<enum_RenderingDevice_TextureSliceType>`
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_SLICE_2D:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureSliceType<enum_RenderingDevice_TextureSliceType>` **TEXTURE_SLICE_2D** = ``0``
|
||
|
||
二維紋理切片。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_SLICE_CUBEMAP:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureSliceType<enum_RenderingDevice_TextureSliceType>` **TEXTURE_SLICE_CUBEMAP** = ``1``
|
||
|
||
立方體貼圖紋理切片。
|
||
|
||
.. _class_RenderingDevice_constant_TEXTURE_SLICE_3D:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`TextureSliceType<enum_RenderingDevice_TextureSliceType>` **TEXTURE_SLICE_3D** = ``2``
|
||
|
||
三維紋理切片。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_SamplerFilter:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **SamplerFilter**: :ref:`🔗<enum_RenderingDevice_SamplerFilter>`
|
||
|
||
.. _class_RenderingDevice_constant_SAMPLER_FILTER_NEAREST:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`SamplerFilter<enum_RenderingDevice_SamplerFilter>` **SAMPLER_FILTER_NEAREST** = ``0``
|
||
|
||
最近鄰取樣器篩選。按照比源更高解析度取樣時,會產生圖元化的效果。
|
||
|
||
.. _class_RenderingDevice_constant_SAMPLER_FILTER_LINEAR:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`SamplerFilter<enum_RenderingDevice_SamplerFilter>` **SAMPLER_FILTER_LINEAR** = ``1``
|
||
|
||
雙線性取樣器篩選。按照比源更高解析度取樣時,會產生模糊的效果。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_SamplerRepeatMode:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **SamplerRepeatMode**: :ref:`🔗<enum_RenderingDevice_SamplerRepeatMode>`
|
||
|
||
.. _class_RenderingDevice_constant_SAMPLER_REPEAT_MODE_REPEAT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`SamplerRepeatMode<enum_RenderingDevice_SamplerRepeatMode>` **SAMPLER_REPEAT_MODE_REPEAT** = ``0``
|
||
|
||
啟用重複取樣。
|
||
|
||
.. _class_RenderingDevice_constant_SAMPLER_REPEAT_MODE_MIRRORED_REPEAT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`SamplerRepeatMode<enum_RenderingDevice_SamplerRepeatMode>` **SAMPLER_REPEAT_MODE_MIRRORED_REPEAT** = ``1``
|
||
|
||
啟用鏡像重複取樣。對 ``[0.0, 1.0]`` 範圍外進行取樣時,返回取樣器的鏡像版本。如果取樣的是更遠的位置,則會對鏡像版本再次鏡像,並按照這樣的規律無限重複下去。
|
||
|
||
.. _class_RenderingDevice_constant_SAMPLER_REPEAT_MODE_CLAMP_TO_EDGE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`SamplerRepeatMode<enum_RenderingDevice_SamplerRepeatMode>` **SAMPLER_REPEAT_MODE_CLAMP_TO_EDGE** = ``2``
|
||
|
||
禁用重複取樣。對 ``[0.0, 1.0]`` 範圍外進行取樣時,返回邊緣上最後一個圖元的顏色。
|
||
|
||
.. _class_RenderingDevice_constant_SAMPLER_REPEAT_MODE_CLAMP_TO_BORDER:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`SamplerRepeatMode<enum_RenderingDevice_SamplerRepeatMode>` **SAMPLER_REPEAT_MODE_CLAMP_TO_BORDER** = ``3``
|
||
|
||
禁用重複取樣。對 ``[0.0, 1.0]`` 範圍外進行取樣時,返回指定的邊框顏色 :ref:`RDSamplerState.border_color<class_RDSamplerState_property_border_color>`\ 。
|
||
|
||
.. _class_RenderingDevice_constant_SAMPLER_REPEAT_MODE_MIRROR_CLAMP_TO_EDGE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`SamplerRepeatMode<enum_RenderingDevice_SamplerRepeatMode>` **SAMPLER_REPEAT_MODE_MIRROR_CLAMP_TO_EDGE** = ``4``
|
||
|
||
啟用單次鏡像重複取樣。對 ``[-1.0, 0.0]`` 範圍進行取樣時,返回取樣器的鏡像版本。對 ``[-1.0, 1.0]`` 範圍外進行取樣時,返回邊緣上最後一個圖元的顏色。
|
||
|
||
.. _class_RenderingDevice_constant_SAMPLER_REPEAT_MODE_MAX:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`SamplerRepeatMode<enum_RenderingDevice_SamplerRepeatMode>` **SAMPLER_REPEAT_MODE_MAX** = ``5``
|
||
|
||
代表 :ref:`SamplerRepeatMode<enum_RenderingDevice_SamplerRepeatMode>` 列舉的大小。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_SamplerBorderColor:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **SamplerBorderColor**: :ref:`🔗<enum_RenderingDevice_SamplerBorderColor>`
|
||
|
||
.. _class_RenderingDevice_constant_SAMPLER_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`SamplerBorderColor<enum_RenderingDevice_SamplerBorderColor>` **SAMPLER_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK** = ``0``
|
||
|
||
對 ``[0.0, 1.0]`` 範圍外進行取樣時,返回浮點型的透明黑色。僅在取樣器的重複模式為 :ref:`SAMPLER_REPEAT_MODE_CLAMP_TO_BORDER<class_RenderingDevice_constant_SAMPLER_REPEAT_MODE_CLAMP_TO_BORDER>` 時有效。
|
||
|
||
.. _class_RenderingDevice_constant_SAMPLER_BORDER_COLOR_INT_TRANSPARENT_BLACK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`SamplerBorderColor<enum_RenderingDevice_SamplerBorderColor>` **SAMPLER_BORDER_COLOR_INT_TRANSPARENT_BLACK** = ``1``
|
||
|
||
Return an integer transparent black color when sampling outside the ``[0.0, 1.0]`` range. Only effective if the sampler repeat mode is :ref:`SAMPLER_REPEAT_MODE_CLAMP_TO_BORDER<class_RenderingDevice_constant_SAMPLER_REPEAT_MODE_CLAMP_TO_BORDER>`.
|
||
|
||
.. _class_RenderingDevice_constant_SAMPLER_BORDER_COLOR_FLOAT_OPAQUE_BLACK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`SamplerBorderColor<enum_RenderingDevice_SamplerBorderColor>` **SAMPLER_BORDER_COLOR_FLOAT_OPAQUE_BLACK** = ``2``
|
||
|
||
對 ``[0.0, 1.0]`` 範圍外進行取樣時,返回浮點型的不透明黑色。僅在取樣器的重複模式為 :ref:`SAMPLER_REPEAT_MODE_CLAMP_TO_BORDER<class_RenderingDevice_constant_SAMPLER_REPEAT_MODE_CLAMP_TO_BORDER>` 時有效。
|
||
|
||
.. _class_RenderingDevice_constant_SAMPLER_BORDER_COLOR_INT_OPAQUE_BLACK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`SamplerBorderColor<enum_RenderingDevice_SamplerBorderColor>` **SAMPLER_BORDER_COLOR_INT_OPAQUE_BLACK** = ``3``
|
||
|
||
Return an integer opaque black color when sampling outside the ``[0.0, 1.0]`` range. Only effective if the sampler repeat mode is :ref:`SAMPLER_REPEAT_MODE_CLAMP_TO_BORDER<class_RenderingDevice_constant_SAMPLER_REPEAT_MODE_CLAMP_TO_BORDER>`.
|
||
|
||
.. _class_RenderingDevice_constant_SAMPLER_BORDER_COLOR_FLOAT_OPAQUE_WHITE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`SamplerBorderColor<enum_RenderingDevice_SamplerBorderColor>` **SAMPLER_BORDER_COLOR_FLOAT_OPAQUE_WHITE** = ``4``
|
||
|
||
對 ``[0.0, 1.0]`` 範圍外進行取樣時,返回浮點型的不透明白色。僅在取樣器的重複模式為 :ref:`SAMPLER_REPEAT_MODE_CLAMP_TO_BORDER<class_RenderingDevice_constant_SAMPLER_REPEAT_MODE_CLAMP_TO_BORDER>` 時有效。
|
||
|
||
.. _class_RenderingDevice_constant_SAMPLER_BORDER_COLOR_INT_OPAQUE_WHITE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`SamplerBorderColor<enum_RenderingDevice_SamplerBorderColor>` **SAMPLER_BORDER_COLOR_INT_OPAQUE_WHITE** = ``5``
|
||
|
||
Return an integer opaque white color when sampling outside the ``[0.0, 1.0]`` range. Only effective if the sampler repeat mode is :ref:`SAMPLER_REPEAT_MODE_CLAMP_TO_BORDER<class_RenderingDevice_constant_SAMPLER_REPEAT_MODE_CLAMP_TO_BORDER>`.
|
||
|
||
.. _class_RenderingDevice_constant_SAMPLER_BORDER_COLOR_MAX:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`SamplerBorderColor<enum_RenderingDevice_SamplerBorderColor>` **SAMPLER_BORDER_COLOR_MAX** = ``6``
|
||
|
||
代表 :ref:`SamplerBorderColor<enum_RenderingDevice_SamplerBorderColor>` 列舉的大小。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_VertexFrequency:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **VertexFrequency**: :ref:`🔗<enum_RenderingDevice_VertexFrequency>`
|
||
|
||
.. _class_RenderingDevice_constant_VERTEX_FREQUENCY_VERTEX:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`VertexFrequency<enum_RenderingDevice_VertexFrequency>` **VERTEX_FREQUENCY_VERTEX** = ``0``
|
||
|
||
頂點屬性定址是頂點的功能。用於指定從緩衝中拉取頂點屬性的頻率。
|
||
|
||
.. _class_RenderingDevice_constant_VERTEX_FREQUENCY_INSTANCE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`VertexFrequency<enum_RenderingDevice_VertexFrequency>` **VERTEX_FREQUENCY_INSTANCE** = ``1``
|
||
|
||
頂點屬性定址是實例索引的功能。用於指定從緩衝中拉取頂點屬性的頻率。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_IndexBufferFormat:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **IndexBufferFormat**: :ref:`🔗<enum_RenderingDevice_IndexBufferFormat>`
|
||
|
||
.. _class_RenderingDevice_constant_INDEX_BUFFER_FORMAT_UINT16:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`IndexBufferFormat<enum_RenderingDevice_IndexBufferFormat>` **INDEX_BUFFER_FORMAT_UINT16** = ``0``
|
||
|
||
16 位元不帶正負號的整數格式的索引緩衝。對可指定索引最大值的限制為 ``65535``\ 。
|
||
|
||
.. _class_RenderingDevice_constant_INDEX_BUFFER_FORMAT_UINT32:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`IndexBufferFormat<enum_RenderingDevice_IndexBufferFormat>` **INDEX_BUFFER_FORMAT_UINT32** = ``1``
|
||
|
||
32 位元不帶正負號的整數格式的索引緩衝。對可指定索引最大值的限制為 ``4294967295``\ 。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_StorageBufferUsage:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
flags **StorageBufferUsage**: :ref:`🔗<enum_RenderingDevice_StorageBufferUsage>`
|
||
|
||
.. _class_RenderingDevice_constant_STORAGE_BUFFER_USAGE_DISPATCH_INDIRECT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`StorageBufferUsage<enum_RenderingDevice_StorageBufferUsage>` **STORAGE_BUFFER_USAGE_DISPATCH_INDIRECT** = ``1``
|
||
|
||
.. container:: contribute
|
||
|
||
There is currently no description for this enum. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!
|
||
|
||
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_BufferCreationBits:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
flags **BufferCreationBits**: :ref:`🔗<enum_RenderingDevice_BufferCreationBits>`
|
||
|
||
.. _class_RenderingDevice_constant_BUFFER_CREATION_DEVICE_ADDRESS_BIT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BufferCreationBits<enum_RenderingDevice_BufferCreationBits>` **BUFFER_CREATION_DEVICE_ADDRESS_BIT** = ``1``
|
||
|
||
Optionally, set this flag if you wish to use :ref:`buffer_get_device_address()<class_RenderingDevice_method_buffer_get_device_address>` functionality. You must first check the GPU supports it:
|
||
|
||
|
||
.. tabs::
|
||
|
||
.. code-tab:: gdscript
|
||
|
||
rd = RenderingServer.get_rendering_device()
|
||
|
||
if rd.has_feature(RenderingDevice.SUPPORTS_BUFFER_DEVICE_ADDRESS):
|
||
storage_buffer = rd.storage_buffer_create(bytes.size(), bytes, RenderingDevice.STORAGE_BUFFER_USAGE_SHADER_DEVICE_ADDRESS)
|
||
storage_buffer_address = rd.buffer_get_device_address(storage_buffer)
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_BUFFER_CREATION_AS_STORAGE_BIT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BufferCreationBits<enum_RenderingDevice_BufferCreationBits>` **BUFFER_CREATION_AS_STORAGE_BIT** = ``2``
|
||
|
||
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.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_UniformType:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **UniformType**: :ref:`🔗<enum_RenderingDevice_UniformType>`
|
||
|
||
.. _class_RenderingDevice_constant_UNIFORM_TYPE_SAMPLER:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`UniformType<enum_RenderingDevice_UniformType>` **UNIFORM_TYPE_SAMPLER** = ``0``
|
||
|
||
取樣器 uniform。
|
||
|
||
.. _class_RenderingDevice_constant_UNIFORM_TYPE_SAMPLER_WITH_TEXTURE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`UniformType<enum_RenderingDevice_UniformType>` **UNIFORM_TYPE_SAMPLER_WITH_TEXTURE** = ``1``
|
||
|
||
帶有紋理的取樣器 uniform。
|
||
|
||
.. _class_RenderingDevice_constant_UNIFORM_TYPE_TEXTURE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`UniformType<enum_RenderingDevice_UniformType>` **UNIFORM_TYPE_TEXTURE** = ``2``
|
||
|
||
紋理 uniform。
|
||
|
||
.. _class_RenderingDevice_constant_UNIFORM_TYPE_IMAGE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`UniformType<enum_RenderingDevice_UniformType>` **UNIFORM_TYPE_IMAGE** = ``3``
|
||
|
||
圖像 uniform。
|
||
|
||
.. _class_RenderingDevice_constant_UNIFORM_TYPE_TEXTURE_BUFFER:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`UniformType<enum_RenderingDevice_UniformType>` **UNIFORM_TYPE_TEXTURE_BUFFER** = ``4``
|
||
|
||
紋理緩衝 uniform。
|
||
|
||
.. _class_RenderingDevice_constant_UNIFORM_TYPE_SAMPLER_WITH_TEXTURE_BUFFER:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`UniformType<enum_RenderingDevice_UniformType>` **UNIFORM_TYPE_SAMPLER_WITH_TEXTURE_BUFFER** = ``5``
|
||
|
||
帶有紋理的取樣器 uniform。
|
||
|
||
.. _class_RenderingDevice_constant_UNIFORM_TYPE_IMAGE_BUFFER:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`UniformType<enum_RenderingDevice_UniformType>` **UNIFORM_TYPE_IMAGE_BUFFER** = ``6``
|
||
|
||
圖像緩衝 uniform。
|
||
|
||
.. _class_RenderingDevice_constant_UNIFORM_TYPE_UNIFORM_BUFFER:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`UniformType<enum_RenderingDevice_UniformType>` **UNIFORM_TYPE_UNIFORM_BUFFER** = ``7``
|
||
|
||
Uniform 緩衝區 uniform。
|
||
|
||
.. _class_RenderingDevice_constant_UNIFORM_TYPE_STORAGE_BUFFER:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`UniformType<enum_RenderingDevice_UniformType>` **UNIFORM_TYPE_STORAGE_BUFFER** = ``8``
|
||
|
||
`儲存緩衝區 <https://vkguide.dev/docs/chapter-4/storage_buffers/>`__ uniform。
|
||
|
||
.. _class_RenderingDevice_constant_UNIFORM_TYPE_INPUT_ATTACHMENT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`UniformType<enum_RenderingDevice_UniformType>` **UNIFORM_TYPE_INPUT_ATTACHMENT** = ``9``
|
||
|
||
輸入附件 uniform。
|
||
|
||
.. _class_RenderingDevice_constant_UNIFORM_TYPE_UNIFORM_BUFFER_DYNAMIC:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`UniformType<enum_RenderingDevice_UniformType>` **UNIFORM_TYPE_UNIFORM_BUFFER_DYNAMIC** = ``10``
|
||
|
||
Same as UNIFORM_TYPE_UNIFORM_BUFFER but for buffers created with BUFFER_CREATION_DYNAMIC_PERSISTENT_BIT.
|
||
|
||
\ **Note:** This flag is not available to GD users due to being too dangerous (i.e. wrong usage can result in visual glitches).
|
||
|
||
It's exposed in case GD users receive a buffer created with such flag from Godot.
|
||
|
||
.. _class_RenderingDevice_constant_UNIFORM_TYPE_STORAGE_BUFFER_DYNAMIC:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`UniformType<enum_RenderingDevice_UniformType>` **UNIFORM_TYPE_STORAGE_BUFFER_DYNAMIC** = ``11``
|
||
|
||
Same as UNIFORM_TYPE_STORAGE_BUFFER but for buffers created with BUFFER_CREATION_DYNAMIC_PERSISTENT_BIT.
|
||
|
||
\ **Note:** This flag is not available to GD users due to being too dangerous (i.e. wrong usage can result in visual glitches).
|
||
|
||
It's exposed in case GD users receive a buffer created with such flag from Godot.
|
||
|
||
.. _class_RenderingDevice_constant_UNIFORM_TYPE_MAX:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`UniformType<enum_RenderingDevice_UniformType>` **UNIFORM_TYPE_MAX** = ``12``
|
||
|
||
表示 :ref:`UniformType<enum_RenderingDevice_UniformType>` 列舉的大小。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_RenderPrimitive:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **RenderPrimitive**: :ref:`🔗<enum_RenderingDevice_RenderPrimitive>`
|
||
|
||
.. _class_RenderingDevice_constant_RENDER_PRIMITIVE_POINTS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`RenderPrimitive<enum_RenderingDevice_RenderPrimitive>` **RENDER_PRIMITIVE_POINTS** = ``0``
|
||
|
||
算繪點的圖元(大小為常數,和與相機之間的距離無關)。
|
||
|
||
.. _class_RenderingDevice_constant_RENDER_PRIMITIVE_LINES:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`RenderPrimitive<enum_RenderingDevice_RenderPrimitive>` **RENDER_PRIMITIVE_LINES** = ``1``
|
||
|
||
算繪線段列表的圖元。線段在繪製時是彼此獨立的。
|
||
|
||
.. _class_RenderingDevice_constant_RENDER_PRIMITIVE_LINES_WITH_ADJACENCY:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`RenderPrimitive<enum_RenderingDevice_RenderPrimitive>` **RENDER_PRIMITIVE_LINES_WITH_ADJACENCY** = ``2``
|
||
|
||
`算繪線段列表的圖元,提供鄰接資料。 <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#drawing-line-lists-with-adjacency>`__\
|
||
|
||
\ **注意:**\ 鄰接資料僅在幾何著色器中有用,但 Godot 並沒有暴露。
|
||
|
||
.. _class_RenderingDevice_constant_RENDER_PRIMITIVE_LINESTRIPS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`RenderPrimitive<enum_RenderingDevice_RenderPrimitive>` **RENDER_PRIMITIVE_LINESTRIPS** = ``3``
|
||
|
||
算繪線段條帶的圖元。繪製的線段與它的前一個頂點是相連的。
|
||
|
||
.. _class_RenderingDevice_constant_RENDER_PRIMITIVE_LINESTRIPS_WITH_ADJACENCY:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`RenderPrimitive<enum_RenderingDevice_RenderPrimitive>` **RENDER_PRIMITIVE_LINESTRIPS_WITH_ADJACENCY** = ``4``
|
||
|
||
`算繪線段條帶的圖元,提供鄰接資料。 <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#drawing-line-strips-with-adjacency>`__\
|
||
|
||
\ **注意:**\ 鄰接資料僅在幾何著色器中有用,但 Godot 並沒有暴露。
|
||
|
||
.. _class_RenderingDevice_constant_RENDER_PRIMITIVE_TRIANGLES:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`RenderPrimitive<enum_RenderingDevice_RenderPrimitive>` **RENDER_PRIMITIVE_TRIANGLES** = ``5``
|
||
|
||
算繪三角形列表的圖元。三角形在繪製時是彼此獨立的。
|
||
|
||
.. _class_RenderingDevice_constant_RENDER_PRIMITIVE_TRIANGLES_WITH_ADJACENCY:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`RenderPrimitive<enum_RenderingDevice_RenderPrimitive>` **RENDER_PRIMITIVE_TRIANGLES_WITH_ADJACENCY** = ``6``
|
||
|
||
`Triangle list rendering primitive with adjacency. <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#drawing-triangle-lists-with-adjacency>`__\
|
||
|
||
\ **Note:** Adjacency is only useful with geometry shaders, which Godot does not expose.
|
||
|
||
.. _class_RenderingDevice_constant_RENDER_PRIMITIVE_TRIANGLE_STRIPS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`RenderPrimitive<enum_RenderingDevice_RenderPrimitive>` **RENDER_PRIMITIVE_TRIANGLE_STRIPS** = ``7``
|
||
|
||
算繪三角形條帶的圖元。繪製的三角形與它的前一個三角形是相連的。
|
||
|
||
.. _class_RenderingDevice_constant_RENDER_PRIMITIVE_TRIANGLE_STRIPS_WITH_AJACENCY:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`RenderPrimitive<enum_RenderingDevice_RenderPrimitive>` **RENDER_PRIMITIVE_TRIANGLE_STRIPS_WITH_AJACENCY** = ``8``
|
||
|
||
`算繪三角形條帶的圖元,提供鄰接數據。 <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#drawing-triangle-strips-with-adjacency>`__\
|
||
|
||
\ **注意:**\ 鄰接資料僅在幾何著色器中有用,但 Godot 並沒有暴露。
|
||
|
||
.. _class_RenderingDevice_constant_RENDER_PRIMITIVE_TRIANGLE_STRIPS_WITH_RESTART_INDEX:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`RenderPrimitive<enum_RenderingDevice_RenderPrimitive>` **RENDER_PRIMITIVE_TRIANGLE_STRIPS_WITH_RESTART_INDEX** = ``9``
|
||
|
||
算繪三角形條帶的圖元,啟用\ *圖元重啟*\ 。繪製的三角形與它的前一個三角形是相連的,但是在繪製前可以指定圖元重啟索引,這樣在指定索引之後就會再建立一條三角形條帶。
|
||
|
||
\ **注意:**\ 僅相容索引繪圖。
|
||
|
||
.. _class_RenderingDevice_constant_RENDER_PRIMITIVE_TESSELATION_PATCH:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`RenderPrimitive<enum_RenderingDevice_RenderPrimitive>` **RENDER_PRIMITIVE_TESSELATION_PATCH** = ``10``
|
||
|
||
曲面細分面片算繪圖元。僅對曲面細分著色器有用,可以將面片變形。
|
||
|
||
.. _class_RenderingDevice_constant_RENDER_PRIMITIVE_MAX:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`RenderPrimitive<enum_RenderingDevice_RenderPrimitive>` **RENDER_PRIMITIVE_MAX** = ``11``
|
||
|
||
代表 :ref:`RenderPrimitive<enum_RenderingDevice_RenderPrimitive>` 列舉的大小。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_PolygonCullMode:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **PolygonCullMode**: :ref:`🔗<enum_RenderingDevice_PolygonCullMode>`
|
||
|
||
.. _class_RenderingDevice_constant_POLYGON_CULL_DISABLED:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`PolygonCullMode<enum_RenderingDevice_PolygonCullMode>` **POLYGON_CULL_DISABLED** = ``0``
|
||
|
||
不使用多邊形的正面和背面剔除。
|
||
|
||
.. _class_RenderingDevice_constant_POLYGON_CULL_FRONT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`PolygonCullMode<enum_RenderingDevice_PolygonCullMode>` **POLYGON_CULL_FRONT** = ``1``
|
||
|
||
使用多邊形的正面剔除(隱藏正對相機的面)。
|
||
|
||
.. _class_RenderingDevice_constant_POLYGON_CULL_BACK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`PolygonCullMode<enum_RenderingDevice_PolygonCullMode>` **POLYGON_CULL_BACK** = ``2``
|
||
|
||
使用多邊形的背面剔除(隱藏背對相機的面)。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_PolygonFrontFace:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **PolygonFrontFace**: :ref:`🔗<enum_RenderingDevice_PolygonFrontFace>`
|
||
|
||
.. _class_RenderingDevice_constant_POLYGON_FRONT_FACE_CLOCKWISE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`PolygonFrontFace<enum_RenderingDevice_PolygonFrontFace>` **POLYGON_FRONT_FACE_CLOCKWISE** = ``0``
|
||
|
||
決定多邊形面為是否為正面時,使用順時針纏繞順序。
|
||
|
||
.. _class_RenderingDevice_constant_POLYGON_FRONT_FACE_COUNTER_CLOCKWISE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`PolygonFrontFace<enum_RenderingDevice_PolygonFrontFace>` **POLYGON_FRONT_FACE_COUNTER_CLOCKWISE** = ``1``
|
||
|
||
決定多邊形面為是否為正面時,使用逆時針纏繞順序。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_StencilOperation:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **StencilOperation**: :ref:`🔗<enum_RenderingDevice_StencilOperation>`
|
||
|
||
.. _class_RenderingDevice_constant_STENCIL_OP_KEEP:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`StencilOperation<enum_RenderingDevice_StencilOperation>` **STENCIL_OP_KEEP** = ``0``
|
||
|
||
保留目前的範本值。
|
||
|
||
.. _class_RenderingDevice_constant_STENCIL_OP_ZERO:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`StencilOperation<enum_RenderingDevice_StencilOperation>` **STENCIL_OP_ZERO** = ``1``
|
||
|
||
將範本值設定為 ``0``\ 。
|
||
|
||
.. _class_RenderingDevice_constant_STENCIL_OP_REPLACE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`StencilOperation<enum_RenderingDevice_StencilOperation>` **STENCIL_OP_REPLACE** = ``2``
|
||
|
||
將現有的範本值替換為新值。
|
||
|
||
.. _class_RenderingDevice_constant_STENCIL_OP_INCREMENT_AND_CLAMP:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`StencilOperation<enum_RenderingDevice_StencilOperation>` **STENCIL_OP_INCREMENT_AND_CLAMP** = ``3``
|
||
|
||
將現有的範本值加一,到達能夠表示的最大無符號值之後就不會再增長。會將範本位元視作不帶正負號的整數。
|
||
|
||
.. _class_RenderingDevice_constant_STENCIL_OP_DECREMENT_AND_CLAMP:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`StencilOperation<enum_RenderingDevice_StencilOperation>` **STENCIL_OP_DECREMENT_AND_CLAMP** = ``4``
|
||
|
||
將現有的範本值減一,到達最小值之後就不會再降低。會將範本位元視作不帶正負號的整數。
|
||
|
||
.. _class_RenderingDevice_constant_STENCIL_OP_INVERT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`StencilOperation<enum_RenderingDevice_StencilOperation>` **STENCIL_OP_INVERT** = ``5``
|
||
|
||
將現有的範本值按位元取反。
|
||
|
||
.. _class_RenderingDevice_constant_STENCIL_OP_INCREMENT_AND_WRAP:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`StencilOperation<enum_RenderingDevice_StencilOperation>` **STENCIL_OP_INCREMENT_AND_WRAP** = ``6``
|
||
|
||
將現有的範本值加一,到達能夠表示的最大無符號值之後環繞至 ``0``\ 。會將範本位元視作不帶正負號的整數。
|
||
|
||
.. _class_RenderingDevice_constant_STENCIL_OP_DECREMENT_AND_WRAP:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`StencilOperation<enum_RenderingDevice_StencilOperation>` **STENCIL_OP_DECREMENT_AND_WRAP** = ``7``
|
||
|
||
將現有的範本值減一,到達最小值之後環繞至能夠表示的最大無符號值。會將範本位元視作不帶正負號的整數。
|
||
|
||
.. _class_RenderingDevice_constant_STENCIL_OP_MAX:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`StencilOperation<enum_RenderingDevice_StencilOperation>` **STENCIL_OP_MAX** = ``8``
|
||
|
||
代表 :ref:`StencilOperation<enum_RenderingDevice_StencilOperation>` 列舉的大小。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_CompareOperator:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **CompareOperator**: :ref:`🔗<enum_RenderingDevice_CompareOperator>`
|
||
|
||
.. _class_RenderingDevice_constant_COMPARE_OP_NEVER:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`CompareOperator<enum_RenderingDevice_CompareOperator>` **COMPARE_OP_NEVER** = ``0``
|
||
|
||
“永不”比較(與 :ref:`COMPARE_OP_ALWAYS<class_RenderingDevice_constant_COMPARE_OP_ALWAYS>` 相對)。
|
||
|
||
.. _class_RenderingDevice_constant_COMPARE_OP_LESS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`CompareOperator<enum_RenderingDevice_CompareOperator>` **COMPARE_OP_LESS** = ``1``
|
||
|
||
“小於”比較。
|
||
|
||
.. _class_RenderingDevice_constant_COMPARE_OP_EQUAL:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`CompareOperator<enum_RenderingDevice_CompareOperator>` **COMPARE_OP_EQUAL** = ``2``
|
||
|
||
“等於”比較。
|
||
|
||
.. _class_RenderingDevice_constant_COMPARE_OP_LESS_OR_EQUAL:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`CompareOperator<enum_RenderingDevice_CompareOperator>` **COMPARE_OP_LESS_OR_EQUAL** = ``3``
|
||
|
||
“小於等於”比較。
|
||
|
||
.. _class_RenderingDevice_constant_COMPARE_OP_GREATER:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`CompareOperator<enum_RenderingDevice_CompareOperator>` **COMPARE_OP_GREATER** = ``4``
|
||
|
||
“大於”比較。
|
||
|
||
.. _class_RenderingDevice_constant_COMPARE_OP_NOT_EQUAL:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`CompareOperator<enum_RenderingDevice_CompareOperator>` **COMPARE_OP_NOT_EQUAL** = ``5``
|
||
|
||
“不等於”比較。
|
||
|
||
.. _class_RenderingDevice_constant_COMPARE_OP_GREATER_OR_EQUAL:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`CompareOperator<enum_RenderingDevice_CompareOperator>` **COMPARE_OP_GREATER_OR_EQUAL** = ``6``
|
||
|
||
“大於等於”比較。
|
||
|
||
.. _class_RenderingDevice_constant_COMPARE_OP_ALWAYS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`CompareOperator<enum_RenderingDevice_CompareOperator>` **COMPARE_OP_ALWAYS** = ``7``
|
||
|
||
“始終”比較(與 :ref:`COMPARE_OP_NEVER<class_RenderingDevice_constant_COMPARE_OP_NEVER>` 相對)。
|
||
|
||
.. _class_RenderingDevice_constant_COMPARE_OP_MAX:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`CompareOperator<enum_RenderingDevice_CompareOperator>` **COMPARE_OP_MAX** = ``8``
|
||
|
||
代表 :ref:`CompareOperator<enum_RenderingDevice_CompareOperator>` 列舉的大小。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_LogicOperation:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **LogicOperation**: :ref:`🔗<enum_RenderingDevice_LogicOperation>`
|
||
|
||
.. _class_RenderingDevice_constant_LOGIC_OP_CLEAR:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`LogicOperation<enum_RenderingDevice_LogicOperation>` **LOGIC_OP_CLEAR** = ``0``
|
||
|
||
邏輯清除運算(結果始終為 ``0``\ )。另見 :ref:`LOGIC_OP_SET<class_RenderingDevice_constant_LOGIC_OP_SET>`\ 。
|
||
|
||
.. _class_RenderingDevice_constant_LOGIC_OP_AND:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`LogicOperation<enum_RenderingDevice_LogicOperation>` **LOGIC_OP_AND** = ``1``
|
||
|
||
邏輯與(AND)運算。
|
||
|
||
.. _class_RenderingDevice_constant_LOGIC_OP_AND_REVERSE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`LogicOperation<enum_RenderingDevice_LogicOperation>` **LOGIC_OP_AND_REVERSE** = ``2``
|
||
|
||
邏輯與(AND)運算,翻轉\ *目標*\ 運算元。另見 :ref:`LOGIC_OP_AND_INVERTED<class_RenderingDevice_constant_LOGIC_OP_AND_INVERTED>`\ 。
|
||
|
||
.. _class_RenderingDevice_constant_LOGIC_OP_COPY:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`LogicOperation<enum_RenderingDevice_LogicOperation>` **LOGIC_OP_COPY** = ``3``
|
||
|
||
邏輯複製運算(保留\ *來源*\ 的值)。另見 :ref:`LOGIC_OP_COPY_INVERTED<class_RenderingDevice_constant_LOGIC_OP_COPY_INVERTED>` 和 :ref:`LOGIC_OP_NO_OP<class_RenderingDevice_constant_LOGIC_OP_NO_OP>`\ 。
|
||
|
||
.. _class_RenderingDevice_constant_LOGIC_OP_AND_INVERTED:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`LogicOperation<enum_RenderingDevice_LogicOperation>` **LOGIC_OP_AND_INVERTED** = ``4``
|
||
|
||
邏輯與(AND)運算,翻轉\ *來源*\ 運算元。另見 :ref:`LOGIC_OP_AND_REVERSE<class_RenderingDevice_constant_LOGIC_OP_AND_REVERSE>`\ 。
|
||
|
||
.. _class_RenderingDevice_constant_LOGIC_OP_NO_OP:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`LogicOperation<enum_RenderingDevice_LogicOperation>` **LOGIC_OP_NO_OP** = ``5``
|
||
|
||
邏輯空運算(保留\ *目標*\ 值)。另見 :ref:`LOGIC_OP_COPY<class_RenderingDevice_constant_LOGIC_OP_COPY>`\ 。
|
||
|
||
.. _class_RenderingDevice_constant_LOGIC_OP_XOR:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`LogicOperation<enum_RenderingDevice_LogicOperation>` **LOGIC_OP_XOR** = ``6``
|
||
|
||
邏輯異或(XOR)運算。
|
||
|
||
.. _class_RenderingDevice_constant_LOGIC_OP_OR:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`LogicOperation<enum_RenderingDevice_LogicOperation>` **LOGIC_OP_OR** = ``7``
|
||
|
||
邏輯或(OR)運算。
|
||
|
||
.. _class_RenderingDevice_constant_LOGIC_OP_NOR:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`LogicOperation<enum_RenderingDevice_LogicOperation>` **LOGIC_OP_NOR** = ``8``
|
||
|
||
邏輯非或(NOR)運算。
|
||
|
||
.. _class_RenderingDevice_constant_LOGIC_OP_EQUIVALENT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`LogicOperation<enum_RenderingDevice_LogicOperation>` **LOGIC_OP_EQUIVALENT** = ``9``
|
||
|
||
邏輯非異或(XNOR)運算。
|
||
|
||
.. _class_RenderingDevice_constant_LOGIC_OP_INVERT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`LogicOperation<enum_RenderingDevice_LogicOperation>` **LOGIC_OP_INVERT** = ``10``
|
||
|
||
邏輯翻轉運算。
|
||
|
||
.. _class_RenderingDevice_constant_LOGIC_OP_OR_REVERSE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`LogicOperation<enum_RenderingDevice_LogicOperation>` **LOGIC_OP_OR_REVERSE** = ``11``
|
||
|
||
邏輯或(OR)運算,翻轉\ *目標*\ 運算元。另見 :ref:`LOGIC_OP_OR_REVERSE<class_RenderingDevice_constant_LOGIC_OP_OR_REVERSE>`\ 。
|
||
|
||
.. _class_RenderingDevice_constant_LOGIC_OP_COPY_INVERTED:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`LogicOperation<enum_RenderingDevice_LogicOperation>` **LOGIC_OP_COPY_INVERTED** = ``12``
|
||
|
||
邏輯非(NOT)運算(將值翻轉)。另見 :ref:`LOGIC_OP_COPY<class_RenderingDevice_constant_LOGIC_OP_COPY>`\ 。
|
||
|
||
.. _class_RenderingDevice_constant_LOGIC_OP_OR_INVERTED:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`LogicOperation<enum_RenderingDevice_LogicOperation>` **LOGIC_OP_OR_INVERTED** = ``13``
|
||
|
||
邏輯或(OR)運算,翻轉\ *來源*\ 運算元。另見 :ref:`LOGIC_OP_OR_REVERSE<class_RenderingDevice_constant_LOGIC_OP_OR_REVERSE>`\ 。
|
||
|
||
.. _class_RenderingDevice_constant_LOGIC_OP_NAND:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`LogicOperation<enum_RenderingDevice_LogicOperation>` **LOGIC_OP_NAND** = ``14``
|
||
|
||
邏輯非與(NAND)運算。
|
||
|
||
.. _class_RenderingDevice_constant_LOGIC_OP_SET:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`LogicOperation<enum_RenderingDevice_LogicOperation>` **LOGIC_OP_SET** = ``15``
|
||
|
||
邏輯設定運算(結果始終為 ``1``\ )。另見 :ref:`LOGIC_OP_CLEAR<class_RenderingDevice_constant_LOGIC_OP_CLEAR>`\ 。
|
||
|
||
.. _class_RenderingDevice_constant_LOGIC_OP_MAX:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`LogicOperation<enum_RenderingDevice_LogicOperation>` **LOGIC_OP_MAX** = ``16``
|
||
|
||
代表 :ref:`LogicOperation<enum_RenderingDevice_LogicOperation>` 列舉的大小。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_BlendFactor:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **BlendFactor**: :ref:`🔗<enum_RenderingDevice_BlendFactor>`
|
||
|
||
.. _class_RenderingDevice_constant_BLEND_FACTOR_ZERO:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BlendFactor<enum_RenderingDevice_BlendFactor>` **BLEND_FACTOR_ZERO** = ``0``
|
||
|
||
混合係數常數 ``0.0``\ 。
|
||
|
||
.. _class_RenderingDevice_constant_BLEND_FACTOR_ONE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BlendFactor<enum_RenderingDevice_BlendFactor>` **BLEND_FACTOR_ONE** = ``1``
|
||
|
||
混合係數常數 ``1.0``\ 。
|
||
|
||
.. _class_RenderingDevice_constant_BLEND_FACTOR_SRC_COLOR:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BlendFactor<enum_RenderingDevice_BlendFactor>` **BLEND_FACTOR_SRC_COLOR** = ``2``
|
||
|
||
顏色混合係數為 ``source color``\ 。Alpha 混合係數為 ``source alpha``\ 。
|
||
|
||
.. _class_RenderingDevice_constant_BLEND_FACTOR_ONE_MINUS_SRC_COLOR:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BlendFactor<enum_RenderingDevice_BlendFactor>` **BLEND_FACTOR_ONE_MINUS_SRC_COLOR** = ``3``
|
||
|
||
顏色混合係數為 ``1.0 - source color``\ 。Alpha 混合係數為 ``1.0 - source alpha``\ 。
|
||
|
||
.. _class_RenderingDevice_constant_BLEND_FACTOR_DST_COLOR:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BlendFactor<enum_RenderingDevice_BlendFactor>` **BLEND_FACTOR_DST_COLOR** = ``4``
|
||
|
||
顏色混合係數為 ``destination color``\ 。Alpha 混合係數為 ``destination alpha``\ 。
|
||
|
||
.. _class_RenderingDevice_constant_BLEND_FACTOR_ONE_MINUS_DST_COLOR:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BlendFactor<enum_RenderingDevice_BlendFactor>` **BLEND_FACTOR_ONE_MINUS_DST_COLOR** = ``5``
|
||
|
||
顏色混合係數為 ``1.0 - destination color``\ 。Alpha 混合係數為 ``1.0 - destination alpha``\ 。
|
||
|
||
.. _class_RenderingDevice_constant_BLEND_FACTOR_SRC_ALPHA:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BlendFactor<enum_RenderingDevice_BlendFactor>` **BLEND_FACTOR_SRC_ALPHA** = ``6``
|
||
|
||
顏色混合和 Alpha 混合係數為 ``source alpha``\ 。
|
||
|
||
.. _class_RenderingDevice_constant_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BlendFactor<enum_RenderingDevice_BlendFactor>` **BLEND_FACTOR_ONE_MINUS_SRC_ALPHA** = ``7``
|
||
|
||
顏色混合和 Alpha 混合係數為 ``1.0 - source alpha``\ 。
|
||
|
||
.. _class_RenderingDevice_constant_BLEND_FACTOR_DST_ALPHA:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BlendFactor<enum_RenderingDevice_BlendFactor>` **BLEND_FACTOR_DST_ALPHA** = ``8``
|
||
|
||
顏色混合和 Alpha 混合係數為 ``destination alpha``\ 。
|
||
|
||
.. _class_RenderingDevice_constant_BLEND_FACTOR_ONE_MINUS_DST_ALPHA:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BlendFactor<enum_RenderingDevice_BlendFactor>` **BLEND_FACTOR_ONE_MINUS_DST_ALPHA** = ``9``
|
||
|
||
顏色混合和 Alpha 混合係數為 ``1.0 - destination alpha``\ 。
|
||
|
||
.. _class_RenderingDevice_constant_BLEND_FACTOR_CONSTANT_COLOR:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BlendFactor<enum_RenderingDevice_BlendFactor>` **BLEND_FACTOR_CONSTANT_COLOR** = ``10``
|
||
|
||
顏色混合係數為 ``blend constant color``\ 。Alpha 混合係數為 ``blend constant alpha``\ (見 :ref:`draw_list_set_blend_constants()<class_RenderingDevice_method_draw_list_set_blend_constants>`\ )。
|
||
|
||
.. _class_RenderingDevice_constant_BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BlendFactor<enum_RenderingDevice_BlendFactor>` **BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR** = ``11``
|
||
|
||
顏色混合係數為 ``1.0 - blend constant color``\ 。Alpha 混合係數為 ``1.0 - blend constant alpha``\ (見 :ref:`draw_list_set_blend_constants()<class_RenderingDevice_method_draw_list_set_blend_constants>`\ )。
|
||
|
||
.. _class_RenderingDevice_constant_BLEND_FACTOR_CONSTANT_ALPHA:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BlendFactor<enum_RenderingDevice_BlendFactor>` **BLEND_FACTOR_CONSTANT_ALPHA** = ``12``
|
||
|
||
顏色混合和 Alpha 混合係數為 ``blend constant alpha``\ (見 :ref:`draw_list_set_blend_constants()<class_RenderingDevice_method_draw_list_set_blend_constants>`\ )。
|
||
|
||
.. _class_RenderingDevice_constant_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BlendFactor<enum_RenderingDevice_BlendFactor>` **BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA** = ``13``
|
||
|
||
顏色混合和 Alpha 混合係數為 ``1.0 - blend constant alpha``\ (見 :ref:`draw_list_set_blend_constants()<class_RenderingDevice_method_draw_list_set_blend_constants>`\ )。
|
||
|
||
.. _class_RenderingDevice_constant_BLEND_FACTOR_SRC_ALPHA_SATURATE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BlendFactor<enum_RenderingDevice_BlendFactor>` **BLEND_FACTOR_SRC_ALPHA_SATURATE** = ``14``
|
||
|
||
顏色混合係數為 ``min(source alpha, 1.0 - destination alpha)``\ 。Alpha 混合係數為 ``1.0``\ 。
|
||
|
||
.. _class_RenderingDevice_constant_BLEND_FACTOR_SRC1_COLOR:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BlendFactor<enum_RenderingDevice_BlendFactor>` **BLEND_FACTOR_SRC1_COLOR** = ``15``
|
||
|
||
顏色混合係數為 ``second source color``\ 。Alpha 混合係數為 ``second source alpha``\ 。僅適用於雙源混合。
|
||
|
||
.. _class_RenderingDevice_constant_BLEND_FACTOR_ONE_MINUS_SRC1_COLOR:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BlendFactor<enum_RenderingDevice_BlendFactor>` **BLEND_FACTOR_ONE_MINUS_SRC1_COLOR** = ``16``
|
||
|
||
顏色混合係數為 ``1.0 - second source color``\ 。Alpha 混合係數為 ``1.0 - second source alpha``\ 。僅適用於雙源混合。
|
||
|
||
.. _class_RenderingDevice_constant_BLEND_FACTOR_SRC1_ALPHA:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BlendFactor<enum_RenderingDevice_BlendFactor>` **BLEND_FACTOR_SRC1_ALPHA** = ``17``
|
||
|
||
顏色混合和 Alpha 混合係數為 ``second source alpha``\ 。僅適用於雙源混合。
|
||
|
||
.. _class_RenderingDevice_constant_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BlendFactor<enum_RenderingDevice_BlendFactor>` **BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA** = ``18``
|
||
|
||
顏色混合和 Alpha 混合係數為 ``1.0 - second source alpha``\ 。僅適用於雙源混合。
|
||
|
||
.. _class_RenderingDevice_constant_BLEND_FACTOR_MAX:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BlendFactor<enum_RenderingDevice_BlendFactor>` **BLEND_FACTOR_MAX** = ``19``
|
||
|
||
代表 :ref:`BlendFactor<enum_RenderingDevice_BlendFactor>` 列舉的大小。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_BlendOperation:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **BlendOperation**: :ref:`🔗<enum_RenderingDevice_BlendOperation>`
|
||
|
||
.. _class_RenderingDevice_constant_BLEND_OP_ADD:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BlendOperation<enum_RenderingDevice_BlendOperation>` **BLEND_OP_ADD** = ``0``
|
||
|
||
加法混合運算(\ ``source + destination``\ )。
|
||
|
||
.. _class_RenderingDevice_constant_BLEND_OP_SUBTRACT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BlendOperation<enum_RenderingDevice_BlendOperation>` **BLEND_OP_SUBTRACT** = ``1``
|
||
|
||
減法混合運算(\ ``source - destination``\ )。
|
||
|
||
.. _class_RenderingDevice_constant_BLEND_OP_REVERSE_SUBTRACT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BlendOperation<enum_RenderingDevice_BlendOperation>` **BLEND_OP_REVERSE_SUBTRACT** = ``2``
|
||
|
||
逆減法混合運算(\ ``destination - source``\ )。
|
||
|
||
.. _class_RenderingDevice_constant_BLEND_OP_MINIMUM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BlendOperation<enum_RenderingDevice_BlendOperation>` **BLEND_OP_MINIMUM** = ``3``
|
||
|
||
最小混合運算(保留兩者之間的較小值)。
|
||
|
||
.. _class_RenderingDevice_constant_BLEND_OP_MAXIMUM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BlendOperation<enum_RenderingDevice_BlendOperation>` **BLEND_OP_MAXIMUM** = ``4``
|
||
|
||
最大混合運算(保留兩者之間的較大值)。
|
||
|
||
.. _class_RenderingDevice_constant_BLEND_OP_MAX:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BlendOperation<enum_RenderingDevice_BlendOperation>` **BLEND_OP_MAX** = ``5``
|
||
|
||
代表 :ref:`BlendOperation<enum_RenderingDevice_BlendOperation>` 列舉的大小。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_PipelineDynamicStateFlags:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
flags **PipelineDynamicStateFlags**: :ref:`🔗<enum_RenderingDevice_PipelineDynamicStateFlags>`
|
||
|
||
.. _class_RenderingDevice_constant_DYNAMIC_STATE_LINE_WIDTH:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`PipelineDynamicStateFlags<enum_RenderingDevice_PipelineDynamicStateFlags>` **DYNAMIC_STATE_LINE_WIDTH** = ``1``
|
||
|
||
Allows dynamically changing the width of rendering lines.
|
||
|
||
.. _class_RenderingDevice_constant_DYNAMIC_STATE_DEPTH_BIAS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`PipelineDynamicStateFlags<enum_RenderingDevice_PipelineDynamicStateFlags>` **DYNAMIC_STATE_DEPTH_BIAS** = ``2``
|
||
|
||
Allows dynamically changing the depth bias.
|
||
|
||
.. _class_RenderingDevice_constant_DYNAMIC_STATE_BLEND_CONSTANTS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`PipelineDynamicStateFlags<enum_RenderingDevice_PipelineDynamicStateFlags>` **DYNAMIC_STATE_BLEND_CONSTANTS** = ``4``
|
||
|
||
.. container:: contribute
|
||
|
||
There is currently no description for this enum. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DYNAMIC_STATE_DEPTH_BOUNDS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`PipelineDynamicStateFlags<enum_RenderingDevice_PipelineDynamicStateFlags>` **DYNAMIC_STATE_DEPTH_BOUNDS** = ``8``
|
||
|
||
.. container:: contribute
|
||
|
||
There is currently no description for this enum. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DYNAMIC_STATE_STENCIL_COMPARE_MASK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`PipelineDynamicStateFlags<enum_RenderingDevice_PipelineDynamicStateFlags>` **DYNAMIC_STATE_STENCIL_COMPARE_MASK** = ``16``
|
||
|
||
.. container:: contribute
|
||
|
||
There is currently no description for this enum. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DYNAMIC_STATE_STENCIL_WRITE_MASK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`PipelineDynamicStateFlags<enum_RenderingDevice_PipelineDynamicStateFlags>` **DYNAMIC_STATE_STENCIL_WRITE_MASK** = ``32``
|
||
|
||
.. container:: contribute
|
||
|
||
There is currently no description for this enum. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_DYNAMIC_STATE_STENCIL_REFERENCE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`PipelineDynamicStateFlags<enum_RenderingDevice_PipelineDynamicStateFlags>` **DYNAMIC_STATE_STENCIL_REFERENCE** = ``64``
|
||
|
||
.. container:: contribute
|
||
|
||
There is currently no description for this enum. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!
|
||
|
||
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_InitialAction:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **InitialAction**: :ref:`🔗<enum_RenderingDevice_InitialAction>`
|
||
|
||
.. _class_RenderingDevice_constant_INITIAL_ACTION_LOAD:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`InitialAction<enum_RenderingDevice_InitialAction>` **INITIAL_ACTION_LOAD** = ``0``
|
||
|
||
**已棄用:** Initial actions are solved automatically by RenderingDevice.
|
||
|
||
Load the previous contents of the framebuffer.
|
||
|
||
.. _class_RenderingDevice_constant_INITIAL_ACTION_CLEAR:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`InitialAction<enum_RenderingDevice_InitialAction>` **INITIAL_ACTION_CLEAR** = ``1``
|
||
|
||
**已棄用:** Initial actions are solved automatically by RenderingDevice.
|
||
|
||
Clear the whole framebuffer or its specified region.
|
||
|
||
.. _class_RenderingDevice_constant_INITIAL_ACTION_DISCARD:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`InitialAction<enum_RenderingDevice_InitialAction>` **INITIAL_ACTION_DISCARD** = ``2``
|
||
|
||
**已棄用:** Initial actions are solved automatically by RenderingDevice.
|
||
|
||
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.
|
||
|
||
.. _class_RenderingDevice_constant_INITIAL_ACTION_MAX:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`InitialAction<enum_RenderingDevice_InitialAction>` **INITIAL_ACTION_MAX** = ``3``
|
||
|
||
**已棄用:** Initial actions are solved automatically by RenderingDevice.
|
||
|
||
代表 :ref:`InitialAction<enum_RenderingDevice_InitialAction>` 列舉的大小。
|
||
|
||
.. _class_RenderingDevice_constant_INITIAL_ACTION_CLEAR_REGION:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`InitialAction<enum_RenderingDevice_InitialAction>` **INITIAL_ACTION_CLEAR_REGION** = ``1``
|
||
|
||
**已棄用:** Initial actions are solved automatically by RenderingDevice.
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_INITIAL_ACTION_CLEAR_REGION_CONTINUE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`InitialAction<enum_RenderingDevice_InitialAction>` **INITIAL_ACTION_CLEAR_REGION_CONTINUE** = ``1``
|
||
|
||
**已棄用:** Initial actions are solved automatically by RenderingDevice.
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_INITIAL_ACTION_KEEP:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`InitialAction<enum_RenderingDevice_InitialAction>` **INITIAL_ACTION_KEEP** = ``0``
|
||
|
||
**已棄用:** Initial actions are solved automatically by RenderingDevice.
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_INITIAL_ACTION_DROP:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`InitialAction<enum_RenderingDevice_InitialAction>` **INITIAL_ACTION_DROP** = ``2``
|
||
|
||
**已棄用:** Initial actions are solved automatically by RenderingDevice.
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_INITIAL_ACTION_CONTINUE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`InitialAction<enum_RenderingDevice_InitialAction>` **INITIAL_ACTION_CONTINUE** = ``0``
|
||
|
||
**已棄用:** Initial actions are solved automatically by RenderingDevice.
|
||
|
||
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_FinalAction:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **FinalAction**: :ref:`🔗<enum_RenderingDevice_FinalAction>`
|
||
|
||
.. _class_RenderingDevice_constant_FINAL_ACTION_STORE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`FinalAction<enum_RenderingDevice_FinalAction>` **FINAL_ACTION_STORE** = ``0``
|
||
|
||
**已棄用:** Final actions are solved automatically by RenderingDevice.
|
||
|
||
Store the result of the draw list in the framebuffer. This is generally what you want to do.
|
||
|
||
.. _class_RenderingDevice_constant_FINAL_ACTION_DISCARD:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`FinalAction<enum_RenderingDevice_FinalAction>` **FINAL_ACTION_DISCARD** = ``1``
|
||
|
||
**已棄用:** Final actions are solved automatically by RenderingDevice.
|
||
|
||
Discard the contents of the framebuffer. This is the fastest option if you don't need to use the results of the draw list.
|
||
|
||
.. _class_RenderingDevice_constant_FINAL_ACTION_MAX:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`FinalAction<enum_RenderingDevice_FinalAction>` **FINAL_ACTION_MAX** = ``2``
|
||
|
||
**已棄用:** Final actions are solved automatically by RenderingDevice.
|
||
|
||
代表 :ref:`FinalAction<enum_RenderingDevice_FinalAction>` 列舉的大小。
|
||
|
||
.. _class_RenderingDevice_constant_FINAL_ACTION_READ:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`FinalAction<enum_RenderingDevice_FinalAction>` **FINAL_ACTION_READ** = ``0``
|
||
|
||
**已棄用:** Final actions are solved automatically by RenderingDevice.
|
||
|
||
|
||
|
||
.. _class_RenderingDevice_constant_FINAL_ACTION_CONTINUE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`FinalAction<enum_RenderingDevice_FinalAction>` **FINAL_ACTION_CONTINUE** = ``0``
|
||
|
||
**已棄用:** Final actions are solved automatically by RenderingDevice.
|
||
|
||
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_ShaderStage:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **ShaderStage**: :ref:`🔗<enum_RenderingDevice_ShaderStage>`
|
||
|
||
.. _class_RenderingDevice_constant_SHADER_STAGE_VERTEX:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`ShaderStage<enum_RenderingDevice_ShaderStage>` **SHADER_STAGE_VERTEX** = ``0``
|
||
|
||
頂點著色器階段。可用於在著色器中操作頂點(但無法新建頂點)。
|
||
|
||
.. _class_RenderingDevice_constant_SHADER_STAGE_FRAGMENT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`ShaderStage<enum_RenderingDevice_ShaderStage>` **SHADER_STAGE_FRAGMENT** = ``1``
|
||
|
||
片段著色器階段(Direct3D 中成為“圖元著色器”)。可用於在著色器中操作圖元。
|
||
|
||
.. _class_RenderingDevice_constant_SHADER_STAGE_TESSELATION_CONTROL:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`ShaderStage<enum_RenderingDevice_ShaderStage>` **SHADER_STAGE_TESSELATION_CONTROL** = ``2``
|
||
|
||
曲面細分控制著色器階段。可用於在著色器中建立額外的幾何體。
|
||
|
||
.. _class_RenderingDevice_constant_SHADER_STAGE_TESSELATION_EVALUATION:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`ShaderStage<enum_RenderingDevice_ShaderStage>` **SHADER_STAGE_TESSELATION_EVALUATION** = ``3``
|
||
|
||
曲面細分求值著色器階段。可用於在著色器中建立額外的幾何體。
|
||
|
||
.. _class_RenderingDevice_constant_SHADER_STAGE_COMPUTE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`ShaderStage<enum_RenderingDevice_ShaderStage>` **SHADER_STAGE_COMPUTE** = ``4``
|
||
|
||
計算著色器階段。可用於在著色器中執行任意計算工作,在 GPU 而不是 CPU 上進行計算。
|
||
|
||
.. _class_RenderingDevice_constant_SHADER_STAGE_MAX:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`ShaderStage<enum_RenderingDevice_ShaderStage>` **SHADER_STAGE_MAX** = ``5``
|
||
|
||
代表 :ref:`ShaderStage<enum_RenderingDevice_ShaderStage>` 列舉的大小。
|
||
|
||
.. _class_RenderingDevice_constant_SHADER_STAGE_VERTEX_BIT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`ShaderStage<enum_RenderingDevice_ShaderStage>` **SHADER_STAGE_VERTEX_BIT** = ``1``
|
||
|
||
頂點著色器階段位(另見 :ref:`SHADER_STAGE_VERTEX<class_RenderingDevice_constant_SHADER_STAGE_VERTEX>`\ )。
|
||
|
||
.. _class_RenderingDevice_constant_SHADER_STAGE_FRAGMENT_BIT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`ShaderStage<enum_RenderingDevice_ShaderStage>` **SHADER_STAGE_FRAGMENT_BIT** = ``2``
|
||
|
||
片段著色器階段位(另見 :ref:`SHADER_STAGE_FRAGMENT<class_RenderingDevice_constant_SHADER_STAGE_FRAGMENT>`\ )。
|
||
|
||
.. _class_RenderingDevice_constant_SHADER_STAGE_TESSELATION_CONTROL_BIT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`ShaderStage<enum_RenderingDevice_ShaderStage>` **SHADER_STAGE_TESSELATION_CONTROL_BIT** = ``4``
|
||
|
||
曲面細分控制著色器階段位(另見 :ref:`SHADER_STAGE_TESSELATION_CONTROL<class_RenderingDevice_constant_SHADER_STAGE_TESSELATION_CONTROL>`\ )。
|
||
|
||
.. _class_RenderingDevice_constant_SHADER_STAGE_TESSELATION_EVALUATION_BIT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`ShaderStage<enum_RenderingDevice_ShaderStage>` **SHADER_STAGE_TESSELATION_EVALUATION_BIT** = ``8``
|
||
|
||
曲面細分求值著色器階段位(另見 :ref:`SHADER_STAGE_TESSELATION_EVALUATION<class_RenderingDevice_constant_SHADER_STAGE_TESSELATION_EVALUATION>`\ )。
|
||
|
||
.. _class_RenderingDevice_constant_SHADER_STAGE_COMPUTE_BIT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`ShaderStage<enum_RenderingDevice_ShaderStage>` **SHADER_STAGE_COMPUTE_BIT** = ``16``
|
||
|
||
計算著色器階段位(另見 :ref:`SHADER_STAGE_COMPUTE<class_RenderingDevice_constant_SHADER_STAGE_COMPUTE>`\ )。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_ShaderLanguage:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **ShaderLanguage**: :ref:`🔗<enum_RenderingDevice_ShaderLanguage>`
|
||
|
||
.. _class_RenderingDevice_constant_SHADER_LANGUAGE_GLSL:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`ShaderLanguage<enum_RenderingDevice_ShaderLanguage>` **SHADER_LANGUAGE_GLSL** = ``0``
|
||
|
||
Khronos 的 GLSL 著色語言(OpenGL 和 Vulkan 原生使用)。這是核心 Godot 著色器所使用的語言。
|
||
|
||
.. _class_RenderingDevice_constant_SHADER_LANGUAGE_HLSL:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`ShaderLanguage<enum_RenderingDevice_ShaderLanguage>` **SHADER_LANGUAGE_HLSL** = ``1``
|
||
|
||
Microsoft 的高級著色器語言(Direct3D 原生使用,Vulkan 中也能使用)。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_PipelineSpecializationConstantType:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **PipelineSpecializationConstantType**: :ref:`🔗<enum_RenderingDevice_PipelineSpecializationConstantType>`
|
||
|
||
.. _class_RenderingDevice_constant_PIPELINE_SPECIALIZATION_CONSTANT_TYPE_BOOL:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`PipelineSpecializationConstantType<enum_RenderingDevice_PipelineSpecializationConstantType>` **PIPELINE_SPECIALIZATION_CONSTANT_TYPE_BOOL** = ``0``
|
||
|
||
布林型特化常數。
|
||
|
||
.. _class_RenderingDevice_constant_PIPELINE_SPECIALIZATION_CONSTANT_TYPE_INT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`PipelineSpecializationConstantType<enum_RenderingDevice_PipelineSpecializationConstantType>` **PIPELINE_SPECIALIZATION_CONSTANT_TYPE_INT** = ``1``
|
||
|
||
整型特化常數。
|
||
|
||
.. _class_RenderingDevice_constant_PIPELINE_SPECIALIZATION_CONSTANT_TYPE_FLOAT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`PipelineSpecializationConstantType<enum_RenderingDevice_PipelineSpecializationConstantType>` **PIPELINE_SPECIALIZATION_CONSTANT_TYPE_FLOAT** = ``2``
|
||
|
||
浮點型特化常數。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_Features:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **Features**: :ref:`🔗<enum_RenderingDevice_Features>`
|
||
|
||
.. _class_RenderingDevice_constant_SUPPORTS_METALFX_SPATIAL:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Features<enum_RenderingDevice_Features>` **SUPPORTS_METALFX_SPATIAL** = ``3``
|
||
|
||
Support for MetalFX spatial upscaling.
|
||
|
||
.. _class_RenderingDevice_constant_SUPPORTS_METALFX_TEMPORAL:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Features<enum_RenderingDevice_Features>` **SUPPORTS_METALFX_TEMPORAL** = ``4``
|
||
|
||
Support for MetalFX temporal upscaling.
|
||
|
||
.. _class_RenderingDevice_constant_SUPPORTS_BUFFER_DEVICE_ADDRESS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Features<enum_RenderingDevice_Features>` **SUPPORTS_BUFFER_DEVICE_ADDRESS** = ``6``
|
||
|
||
Features support for buffer device address extension.
|
||
|
||
.. _class_RenderingDevice_constant_SUPPORTS_IMAGE_ATOMIC_32_BIT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Features<enum_RenderingDevice_Features>` **SUPPORTS_IMAGE_ATOMIC_32_BIT** = ``7``
|
||
|
||
Support for 32-bit image atomic operations.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_Limit:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **Limit**: :ref:`🔗<enum_RenderingDevice_Limit>`
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_BOUND_UNIFORM_SETS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_BOUND_UNIFORM_SETS** = ``0``
|
||
|
||
能夠同時綁定的最大 uniform 集的數量。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_FRAMEBUFFER_COLOR_ATTACHMENTS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_FRAMEBUFFER_COLOR_ATTACHMENTS** = ``1``
|
||
|
||
能夠同時使用的最大顏色影格緩衝附件的數量。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_TEXTURES_PER_UNIFORM_SET:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_TEXTURES_PER_UNIFORM_SET** = ``2``
|
||
|
||
單個 uniform 集能夠使用的最大紋理數量。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_SAMPLERS_PER_UNIFORM_SET:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_SAMPLERS_PER_UNIFORM_SET** = ``3``
|
||
|
||
單個 uniform 集能夠使用的最大取樣器數量。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_STORAGE_BUFFERS_PER_UNIFORM_SET:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_STORAGE_BUFFERS_PER_UNIFORM_SET** = ``4``
|
||
|
||
單個 uniform 集的最大\ `儲存緩衝 <https://vkguide.dev/docs/chapter-4/storage_buffers/>`__\ 數量。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_STORAGE_IMAGES_PER_UNIFORM_SET:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_STORAGE_IMAGES_PER_UNIFORM_SET** = ``5``
|
||
|
||
單個 uniform 集的最大儲存圖像數量。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_UNIFORM_BUFFERS_PER_UNIFORM_SET:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_UNIFORM_BUFFERS_PER_UNIFORM_SET** = ``6``
|
||
|
||
單個 uniform 集的最大 uniform 緩衝數量。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_DRAW_INDEXED_INDEX:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_DRAW_INDEXED_INDEX** = ``7``
|
||
|
||
索引繪圖指令的最大索引。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_FRAMEBUFFER_HEIGHT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_FRAMEBUFFER_HEIGHT** = ``8``
|
||
|
||
影格緩衝的最大高度(單位為圖元)。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_FRAMEBUFFER_WIDTH:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_FRAMEBUFFER_WIDTH** = ``9``
|
||
|
||
影格緩衝的最大寬度(單位為圖元)。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_TEXTURE_ARRAY_LAYERS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_TEXTURE_ARRAY_LAYERS** = ``10``
|
||
|
||
紋理陣列的最大層數。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_TEXTURE_SIZE_1D:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_TEXTURE_SIZE_1D** = ``11``
|
||
|
||
支援的一維紋理的最大尺寸(單軸圖元數)。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_TEXTURE_SIZE_2D:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_TEXTURE_SIZE_2D** = ``12``
|
||
|
||
支援的二維紋理的最大尺寸(單軸圖元數)。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_TEXTURE_SIZE_3D:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_TEXTURE_SIZE_3D** = ``13``
|
||
|
||
支援的三維紋理的最大尺寸(單軸圖元數)。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_TEXTURE_SIZE_CUBE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_TEXTURE_SIZE_CUBE** = ``14``
|
||
|
||
支援的立方體貼圖紋理的最大尺寸(單軸圖元數)。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_TEXTURES_PER_SHADER_STAGE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_TEXTURES_PER_SHADER_STAGE** = ``15``
|
||
|
||
每個著色器階段的最大紋理數。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_SAMPLERS_PER_SHADER_STAGE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_SAMPLERS_PER_SHADER_STAGE** = ``16``
|
||
|
||
每個著色器階段的最大取樣器數。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_STORAGE_BUFFERS_PER_SHADER_STAGE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_STORAGE_BUFFERS_PER_SHADER_STAGE** = ``17``
|
||
|
||
每個著色器階段的最大\ `儲存緩衝 <https://vkguide.dev/docs/chapter-4/storage_buffers/>`__\ 數。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_STORAGE_IMAGES_PER_SHADER_STAGE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_STORAGE_IMAGES_PER_SHADER_STAGE** = ``18``
|
||
|
||
每個著色器階段的最大儲存圖像數。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_UNIFORM_BUFFERS_PER_SHADER_STAGE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_UNIFORM_BUFFERS_PER_SHADER_STAGE** = ``19``
|
||
|
||
單個 uniform 集的最大 uniform 緩衝數量。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_PUSH_CONSTANT_SIZE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_PUSH_CONSTANT_SIZE** = ``20``
|
||
|
||
推送常數的最大大小。許多裝置都有 128 位元組的限制,所以即便你的 GPU 彙報的值更大,也請嘗試避免讓推送常數超過 127 位元組,從而確保相容性。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_UNIFORM_BUFFER_SIZE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_UNIFORM_BUFFER_SIZE** = ``21``
|
||
|
||
Uniform 緩衝的最大大小。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_VERTEX_INPUT_ATTRIBUTE_OFFSET:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_VERTEX_INPUT_ATTRIBUTE_OFFSET** = ``22``
|
||
|
||
頂點輸入屬性的最大偏移。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_VERTEX_INPUT_ATTRIBUTES:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_VERTEX_INPUT_ATTRIBUTES** = ``23``
|
||
|
||
頂點輸入屬性的最大數量。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_VERTEX_INPUT_BINDINGS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_VERTEX_INPUT_BINDINGS** = ``24``
|
||
|
||
頂點輸入綁定的最大數量。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_VERTEX_INPUT_BINDING_STRIDE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_VERTEX_INPUT_BINDING_STRIDE** = ``25``
|
||
|
||
頂點輸入綁定的最大步幅。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MIN_UNIFORM_BUFFER_OFFSET_ALIGNMENT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MIN_UNIFORM_BUFFER_OFFSET_ALIGNMENT** = ``26``
|
||
|
||
Uniform 緩衝的最小偏移對齊。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_COMPUTE_SHARED_MEMORY_SIZE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_COMPUTE_SHARED_MEMORY_SIZE** = ``27``
|
||
|
||
計算著色器的最大共用記憶體大小。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_COMPUTE_WORKGROUP_COUNT_X:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_COMPUTE_WORKGROUP_COUNT_X** = ``28``
|
||
|
||
計算著色器在 X 軸上的最大工作組數量。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_COMPUTE_WORKGROUP_COUNT_Y:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_COMPUTE_WORKGROUP_COUNT_Y** = ``29``
|
||
|
||
計算著色器在 Y 軸上的最大工作組數量。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_COMPUTE_WORKGROUP_COUNT_Z:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_COMPUTE_WORKGROUP_COUNT_Z** = ``30``
|
||
|
||
計算著色器在 Z 軸上的最大工作組數量。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_COMPUTE_WORKGROUP_INVOCATIONS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_COMPUTE_WORKGROUP_INVOCATIONS** = ``31``
|
||
|
||
計算著色器的最大工作組呼叫數量。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_COMPUTE_WORKGROUP_SIZE_X:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_COMPUTE_WORKGROUP_SIZE_X** = ``32``
|
||
|
||
計算著色器在 X 軸上的最大工作組大小。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_COMPUTE_WORKGROUP_SIZE_Y:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_COMPUTE_WORKGROUP_SIZE_Y** = ``33``
|
||
|
||
計算著色器在 Y 軸上的最大工作組大小。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_COMPUTE_WORKGROUP_SIZE_Z:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_COMPUTE_WORKGROUP_SIZE_Z** = ``34``
|
||
|
||
計算著色器在 Z 軸上的最大工作組大小。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_VIEWPORT_DIMENSIONS_X:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_VIEWPORT_DIMENSIONS_X** = ``35``
|
||
|
||
視口的最大寬度(單位為圖元)。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_MAX_VIEWPORT_DIMENSIONS_Y:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_MAX_VIEWPORT_DIMENSIONS_Y** = ``36``
|
||
|
||
視口的最大高度(單位為圖元)。
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_METALFX_TEMPORAL_SCALER_MIN_SCALE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_METALFX_TEMPORAL_SCALER_MIN_SCALE** = ``46``
|
||
|
||
Returns the smallest value for :ref:`ProjectSettings.rendering/scaling_3d/scale<class_ProjectSettings_property_rendering/scaling_3d/scale>` when using the MetalFX temporal upscaler.
|
||
|
||
\ **Note:** The returned value is multiplied by a factor of ``1000000`` to preserve 6 digits of precision. It must be divided by ``1000000.0`` to convert the value to a floating point number.
|
||
|
||
.. _class_RenderingDevice_constant_LIMIT_METALFX_TEMPORAL_SCALER_MAX_SCALE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Limit<enum_RenderingDevice_Limit>` **LIMIT_METALFX_TEMPORAL_SCALER_MAX_SCALE** = ``47``
|
||
|
||
Returns the largest value for :ref:`ProjectSettings.rendering/scaling_3d/scale<class_ProjectSettings_property_rendering/scaling_3d/scale>` when using the MetalFX temporal upscaler.
|
||
|
||
\ **Note:** The returned value is multiplied by a factor of ``1000000`` to preserve 6 digits of precision. It must be divided by ``1000000.0`` to convert the value to a floating point number.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_MemoryType:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **MemoryType**: :ref:`🔗<enum_RenderingDevice_MemoryType>`
|
||
|
||
.. _class_RenderingDevice_constant_MEMORY_TEXTURES:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`MemoryType<enum_RenderingDevice_MemoryType>` **MEMORY_TEXTURES** = ``0``
|
||
|
||
紋理佔用的記憶體。
|
||
|
||
.. _class_RenderingDevice_constant_MEMORY_BUFFERS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`MemoryType<enum_RenderingDevice_MemoryType>` **MEMORY_BUFFERS** = ``1``
|
||
|
||
緩衝區佔用的記憶體。
|
||
|
||
.. _class_RenderingDevice_constant_MEMORY_TOTAL:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`MemoryType<enum_RenderingDevice_MemoryType>` **MEMORY_TOTAL** = ``2``
|
||
|
||
記憶體中佔用。比 :ref:`MEMORY_TEXTURES<class_RenderingDevice_constant_MEMORY_TEXTURES>` 和 :ref:`MEMORY_BUFFERS<class_RenderingDevice_constant_MEMORY_BUFFERS>` 的總和要大,因為還會包含其他雜項記憶體佔用。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_BreadcrumbMarker:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **BreadcrumbMarker**: :ref:`🔗<enum_RenderingDevice_BreadcrumbMarker>`
|
||
|
||
.. _class_RenderingDevice_constant_NONE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BreadcrumbMarker<enum_RenderingDevice_BreadcrumbMarker>` **NONE** = ``0``
|
||
|
||
No breadcrumb marker will be added.
|
||
|
||
.. _class_RenderingDevice_constant_REFLECTION_PROBES:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BreadcrumbMarker<enum_RenderingDevice_BreadcrumbMarker>` **REFLECTION_PROBES** = ``65536``
|
||
|
||
During a GPU crash in dev or debug mode, Godot's error message will include ``"REFLECTION_PROBES"`` for added context as to when the crash occurred.
|
||
|
||
.. _class_RenderingDevice_constant_SKY_PASS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BreadcrumbMarker<enum_RenderingDevice_BreadcrumbMarker>` **SKY_PASS** = ``131072``
|
||
|
||
During a GPU crash in dev or debug mode, Godot's error message will include ``"SKY_PASS"`` for added context as to when the crash occurred.
|
||
|
||
.. _class_RenderingDevice_constant_LIGHTMAPPER_PASS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BreadcrumbMarker<enum_RenderingDevice_BreadcrumbMarker>` **LIGHTMAPPER_PASS** = ``196608``
|
||
|
||
During a GPU crash in dev or debug mode, Godot's error message will include ``"LIGHTMAPPER_PASS"`` for added context as to when the crash occurred.
|
||
|
||
.. _class_RenderingDevice_constant_SHADOW_PASS_DIRECTIONAL:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BreadcrumbMarker<enum_RenderingDevice_BreadcrumbMarker>` **SHADOW_PASS_DIRECTIONAL** = ``262144``
|
||
|
||
During a GPU crash in dev or debug mode, Godot's error message will include ``"SHADOW_PASS_DIRECTIONAL"`` for added context as to when the crash occurred.
|
||
|
||
.. _class_RenderingDevice_constant_SHADOW_PASS_CUBE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BreadcrumbMarker<enum_RenderingDevice_BreadcrumbMarker>` **SHADOW_PASS_CUBE** = ``327680``
|
||
|
||
During a GPU crash in dev or debug mode, Godot's error message will include ``"SHADOW_PASS_CUBE"`` for added context as to when the crash occurred.
|
||
|
||
.. _class_RenderingDevice_constant_OPAQUE_PASS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BreadcrumbMarker<enum_RenderingDevice_BreadcrumbMarker>` **OPAQUE_PASS** = ``393216``
|
||
|
||
During a GPU crash in dev or debug mode, Godot's error message will include ``"OPAQUE_PASS"`` for added context as to when the crash occurred.
|
||
|
||
.. _class_RenderingDevice_constant_ALPHA_PASS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BreadcrumbMarker<enum_RenderingDevice_BreadcrumbMarker>` **ALPHA_PASS** = ``458752``
|
||
|
||
During a GPU crash in dev or debug mode, Godot's error message will include ``"ALPHA_PASS"`` for added context as to when the crash occurred.
|
||
|
||
.. _class_RenderingDevice_constant_TRANSPARENT_PASS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BreadcrumbMarker<enum_RenderingDevice_BreadcrumbMarker>` **TRANSPARENT_PASS** = ``524288``
|
||
|
||
During a GPU crash in dev or debug mode, Godot's error message will include ``"TRANSPARENT_PASS"`` for added context as to when the crash occurred.
|
||
|
||
.. _class_RenderingDevice_constant_POST_PROCESSING_PASS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BreadcrumbMarker<enum_RenderingDevice_BreadcrumbMarker>` **POST_PROCESSING_PASS** = ``589824``
|
||
|
||
During a GPU crash in dev or debug mode, Godot's error message will include ``"POST_PROCESSING_PASS"`` for added context as to when the crash occurred.
|
||
|
||
.. _class_RenderingDevice_constant_BLIT_PASS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BreadcrumbMarker<enum_RenderingDevice_BreadcrumbMarker>` **BLIT_PASS** = ``655360``
|
||
|
||
During a GPU crash in dev or debug mode, Godot's error message will include ``"BLIT_PASS"`` for added context as to when the crash occurred.
|
||
|
||
.. _class_RenderingDevice_constant_UI_PASS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BreadcrumbMarker<enum_RenderingDevice_BreadcrumbMarker>` **UI_PASS** = ``720896``
|
||
|
||
During a GPU crash in dev or debug mode, Godot's error message will include ``"UI_PASS"`` for added context as to when the crash occurred.
|
||
|
||
.. _class_RenderingDevice_constant_DEBUG_PASS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`BreadcrumbMarker<enum_RenderingDevice_BreadcrumbMarker>` **DEBUG_PASS** = ``786432``
|
||
|
||
During a GPU crash in dev or debug mode, Godot's error message will include ``"DEBUG_PASS"`` for added context as to when the crash occurred.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RenderingDevice_DrawFlags:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
flags **DrawFlags**: :ref:`🔗<enum_RenderingDevice_DrawFlags>`
|
||
|
||
.. _class_RenderingDevice_constant_DRAW_DEFAULT_ALL:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>` **DRAW_DEFAULT_ALL** = ``0``
|
||
|
||
Do not clear or ignore any attachments.
|
||
|
||
.. _class_RenderingDevice_constant_DRAW_CLEAR_COLOR_0:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>` **DRAW_CLEAR_COLOR_0** = ``1``
|
||
|
||
Clear the first color attachment.
|
||
|
||
.. _class_RenderingDevice_constant_DRAW_CLEAR_COLOR_1:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>` **DRAW_CLEAR_COLOR_1** = ``2``
|
||
|
||
Clear the second color attachment.
|
||
|
||
.. _class_RenderingDevice_constant_DRAW_CLEAR_COLOR_2:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>` **DRAW_CLEAR_COLOR_2** = ``4``
|
||
|
||
Clear the third color attachment.
|
||
|
||
.. _class_RenderingDevice_constant_DRAW_CLEAR_COLOR_3:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>` **DRAW_CLEAR_COLOR_3** = ``8``
|
||
|
||
Clear the fourth color attachment.
|
||
|
||
.. _class_RenderingDevice_constant_DRAW_CLEAR_COLOR_4:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>` **DRAW_CLEAR_COLOR_4** = ``16``
|
||
|
||
Clear the fifth color attachment.
|
||
|
||
.. _class_RenderingDevice_constant_DRAW_CLEAR_COLOR_5:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>` **DRAW_CLEAR_COLOR_5** = ``32``
|
||
|
||
Clear the sixth color attachment.
|
||
|
||
.. _class_RenderingDevice_constant_DRAW_CLEAR_COLOR_6:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>` **DRAW_CLEAR_COLOR_6** = ``64``
|
||
|
||
Clear the seventh color attachment.
|
||
|
||
.. _class_RenderingDevice_constant_DRAW_CLEAR_COLOR_7:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>` **DRAW_CLEAR_COLOR_7** = ``128``
|
||
|
||
Clear the eighth color attachment.
|
||
|
||
.. _class_RenderingDevice_constant_DRAW_CLEAR_COLOR_MASK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>` **DRAW_CLEAR_COLOR_MASK** = ``255``
|
||
|
||
Mask for clearing all color attachments.
|
||
|
||
.. _class_RenderingDevice_constant_DRAW_CLEAR_COLOR_ALL:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>` **DRAW_CLEAR_COLOR_ALL** = ``255``
|
||
|
||
Clear all color attachments.
|
||
|
||
.. _class_RenderingDevice_constant_DRAW_IGNORE_COLOR_0:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>` **DRAW_IGNORE_COLOR_0** = ``256``
|
||
|
||
Ignore the previous contents of the first color attachment.
|
||
|
||
.. _class_RenderingDevice_constant_DRAW_IGNORE_COLOR_1:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>` **DRAW_IGNORE_COLOR_1** = ``512``
|
||
|
||
Ignore the previous contents of the second color attachment.
|
||
|
||
.. _class_RenderingDevice_constant_DRAW_IGNORE_COLOR_2:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>` **DRAW_IGNORE_COLOR_2** = ``1024``
|
||
|
||
Ignore the previous contents of the third color attachment.
|
||
|
||
.. _class_RenderingDevice_constant_DRAW_IGNORE_COLOR_3:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>` **DRAW_IGNORE_COLOR_3** = ``2048``
|
||
|
||
Ignore the previous contents of the fourth color attachment.
|
||
|
||
.. _class_RenderingDevice_constant_DRAW_IGNORE_COLOR_4:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>` **DRAW_IGNORE_COLOR_4** = ``4096``
|
||
|
||
Ignore the previous contents of the fifth color attachment.
|
||
|
||
.. _class_RenderingDevice_constant_DRAW_IGNORE_COLOR_5:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>` **DRAW_IGNORE_COLOR_5** = ``8192``
|
||
|
||
Ignore the previous contents of the sixth color attachment.
|
||
|
||
.. _class_RenderingDevice_constant_DRAW_IGNORE_COLOR_6:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>` **DRAW_IGNORE_COLOR_6** = ``16384``
|
||
|
||
Ignore the previous contents of the seventh color attachment.
|
||
|
||
.. _class_RenderingDevice_constant_DRAW_IGNORE_COLOR_7:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>` **DRAW_IGNORE_COLOR_7** = ``32768``
|
||
|
||
Ignore the previous contents of the eighth color attachment.
|
||
|
||
.. _class_RenderingDevice_constant_DRAW_IGNORE_COLOR_MASK:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>` **DRAW_IGNORE_COLOR_MASK** = ``65280``
|
||
|
||
Mask for ignoring all the previous contents of the color attachments.
|
||
|
||
.. _class_RenderingDevice_constant_DRAW_IGNORE_COLOR_ALL:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>` **DRAW_IGNORE_COLOR_ALL** = ``65280``
|
||
|
||
Ignore the previous contents of all color attachments.
|
||
|
||
.. _class_RenderingDevice_constant_DRAW_CLEAR_DEPTH:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>` **DRAW_CLEAR_DEPTH** = ``65536``
|
||
|
||
Clear the depth attachment.
|
||
|
||
.. _class_RenderingDevice_constant_DRAW_IGNORE_DEPTH:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>` **DRAW_IGNORE_DEPTH** = ``131072``
|
||
|
||
Ignore the previous contents of the depth attachment.
|
||
|
||
.. _class_RenderingDevice_constant_DRAW_CLEAR_STENCIL:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>` **DRAW_CLEAR_STENCIL** = ``262144``
|
||
|
||
Clear the stencil attachment.
|
||
|
||
.. _class_RenderingDevice_constant_DRAW_IGNORE_STENCIL:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>` **DRAW_IGNORE_STENCIL** = ``524288``
|
||
|
||
Ignore the previous contents of the stencil attachment.
|
||
|
||
.. _class_RenderingDevice_constant_DRAW_CLEAR_ALL:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>` **DRAW_CLEAR_ALL** = ``327935``
|
||
|
||
Clear all attachments.
|
||
|
||
.. _class_RenderingDevice_constant_DRAW_IGNORE_ALL:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>` **DRAW_IGNORE_ALL** = ``720640``
|
||
|
||
Ignore the previous contents of all attachments.
|
||
|
||
.. rst-class:: classref-section-separator
|
||
|
||
----
|
||
|
||
.. rst-class:: classref-descriptions-group
|
||
|
||
常數
|
||
----
|
||
|
||
.. _class_RenderingDevice_constant_INVALID_ID:
|
||
|
||
.. rst-class:: classref-constant
|
||
|
||
**INVALID_ID** = ``-1`` :ref:`🔗<class_RenderingDevice_constant_INVALID_ID>`
|
||
|
||
返回 ID 的函式會在值無效時返回此值。
|
||
|
||
.. _class_RenderingDevice_constant_INVALID_FORMAT_ID:
|
||
|
||
.. rst-class:: classref-constant
|
||
|
||
**INVALID_FORMAT_ID** = ``-1`` :ref:`🔗<class_RenderingDevice_constant_INVALID_FORMAT_ID>`
|
||
|
||
返回格式 ID 的函式會在值無效時返回此值。
|
||
|
||
.. rst-class:: classref-section-separator
|
||
|
||
----
|
||
|
||
.. rst-class:: classref-descriptions-group
|
||
|
||
方法說明
|
||
--------
|
||
|
||
.. _class_RenderingDevice_method_barrier:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **barrier**\ (\ from\: |bitfield|\[:ref:`BarrierMask<enum_RenderingDevice_BarrierMask>`\] = 32767, to\: |bitfield|\[:ref:`BarrierMask<enum_RenderingDevice_BarrierMask>`\] = 32767\ ) :ref:`🔗<class_RenderingDevice_method_barrier>`
|
||
|
||
**已棄用:** Barriers are automatically inserted by RenderingDevice.
|
||
|
||
This method does nothing.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_buffer_clear:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`Error<enum_@GlobalScope_Error>` **buffer_clear**\ (\ buffer\: :ref:`RID<class_RID>`, offset\: :ref:`int<class_int>`, size_bytes\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RenderingDevice_method_buffer_clear>`
|
||
|
||
Clears the contents of the ``buffer``, clearing ``size_bytes`` bytes, starting at ``offset``.
|
||
|
||
Prints an error if:
|
||
|
||
- the size isn't a multiple of four
|
||
|
||
- the region specified by ``offset`` + ``size_bytes`` exceeds the buffer
|
||
|
||
- a draw list is currently active (created by :ref:`draw_list_begin()<class_RenderingDevice_method_draw_list_begin>`)
|
||
|
||
- a compute list is currently active (created by :ref:`compute_list_begin()<class_RenderingDevice_method_compute_list_begin>`)
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_buffer_copy:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`Error<enum_@GlobalScope_Error>` **buffer_copy**\ (\ src_buffer\: :ref:`RID<class_RID>`, dst_buffer\: :ref:`RID<class_RID>`, src_offset\: :ref:`int<class_int>`, dst_offset\: :ref:`int<class_int>`, size\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RenderingDevice_method_buffer_copy>`
|
||
|
||
Copies ``size`` bytes from the ``src_buffer`` at ``src_offset`` into ``dst_buffer`` at ``dst_offset``.
|
||
|
||
Prints an error if:
|
||
|
||
- ``size`` exceeds the size of either ``src_buffer`` or ``dst_buffer`` at their corresponding offsets
|
||
|
||
- a draw list is currently active (created by :ref:`draw_list_begin()<class_RenderingDevice_method_draw_list_begin>`)
|
||
|
||
- a compute list is currently active (created by :ref:`compute_list_begin()<class_RenderingDevice_method_compute_list_begin>`)
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_buffer_get_data:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`PackedByteArray<class_PackedByteArray>` **buffer_get_data**\ (\ buffer\: :ref:`RID<class_RID>`, offset_bytes\: :ref:`int<class_int>` = 0, size_bytes\: :ref:`int<class_int>` = 0\ ) :ref:`🔗<class_RenderingDevice_method_buffer_get_data>`
|
||
|
||
Returns a copy of the data of the specified ``buffer``, optionally ``offset_bytes`` and ``size_bytes`` can be set to copy only a portion of the buffer.
|
||
|
||
\ **Note:** This method will block the GPU from working until the data is retrieved. Refer to :ref:`buffer_get_data_async()<class_RenderingDevice_method_buffer_get_data_async>` for an alternative that returns the data in more performant way.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_buffer_get_data_async:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`Error<enum_@GlobalScope_Error>` **buffer_get_data_async**\ (\ buffer\: :ref:`RID<class_RID>`, callback\: :ref:`Callable<class_Callable>`, offset_bytes\: :ref:`int<class_int>` = 0, size_bytes\: :ref:`int<class_int>` = 0\ ) :ref:`🔗<class_RenderingDevice_method_buffer_get_data_async>`
|
||
|
||
Asynchronous version of :ref:`buffer_get_data()<class_RenderingDevice_method_buffer_get_data>`. RenderingDevice will call ``callback`` in a certain amount of frames with the data the buffer had at the time of the request.
|
||
|
||
\ **Note:** At the moment, the delay corresponds to the amount of frames specified by :ref:`ProjectSettings.rendering/rendering_device/vsync/frame_queue_size<class_ProjectSettings_property_rendering/rendering_device/vsync/frame_queue_size>`.
|
||
|
||
\ **Note:** 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 :ref:`ProjectSettings.rendering/rendering_device/staging_buffer/block_size_kb<class_ProjectSettings_property_rendering/rendering_device/staging_buffer/block_size_kb>` to improve the transfer speed at the cost of extra memory.
|
||
|
||
::
|
||
|
||
func _buffer_get_data_callback(array):
|
||
value = array.decode_u32(0)
|
||
|
||
...
|
||
|
||
rd.buffer_get_data_async(buffer, _buffer_get_data_callback)
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_buffer_get_device_address:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **buffer_get_device_address**\ (\ buffer\: :ref:`RID<class_RID>`\ ) :ref:`🔗<class_RenderingDevice_method_buffer_get_device_address>`
|
||
|
||
Returns the address of the given ``buffer`` which can be passed to shaders in any way to access underlying data. Buffer must have been created with this feature enabled.
|
||
|
||
\ **Note:** You must check that the GPU supports this functionality by calling :ref:`has_feature()<class_RenderingDevice_method_has_feature>` with :ref:`SUPPORTS_BUFFER_DEVICE_ADDRESS<class_RenderingDevice_constant_SUPPORTS_BUFFER_DEVICE_ADDRESS>` as a parameter.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_buffer_update:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`Error<enum_@GlobalScope_Error>` **buffer_update**\ (\ buffer\: :ref:`RID<class_RID>`, offset\: :ref:`int<class_int>`, size_bytes\: :ref:`int<class_int>`, data\: :ref:`PackedByteArray<class_PackedByteArray>`\ ) :ref:`🔗<class_RenderingDevice_method_buffer_update>`
|
||
|
||
Updates a region of ``size_bytes`` bytes, starting at ``offset``, in the buffer, with the specified ``data``.
|
||
|
||
Prints an error if:
|
||
|
||
- the region specified by ``offset`` + ``size_bytes`` exceeds the buffer
|
||
|
||
- a draw list is currently active (created by :ref:`draw_list_begin()<class_RenderingDevice_method_draw_list_begin>`)
|
||
|
||
- a compute list is currently active (created by :ref:`compute_list_begin()<class_RenderingDevice_method_compute_list_begin>`)
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_capture_timestamp:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **capture_timestamp**\ (\ name\: :ref:`String<class_String>`\ ) :ref:`🔗<class_RenderingDevice_method_capture_timestamp>`
|
||
|
||
使用指定的名稱 ``name`` 建立時間戳記標記。用於 :ref:`get_captured_timestamp_cpu_time()<class_RenderingDevice_method_get_captured_timestamp_cpu_time>`\ 、\ :ref:`get_captured_timestamp_gpu_time()<class_RenderingDevice_method_get_captured_timestamp_gpu_time>`\ 、\ :ref:`get_captured_timestamp_name()<class_RenderingDevice_method_get_captured_timestamp_name>` 等方法的性能彙報。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_compute_list_add_barrier:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **compute_list_add_barrier**\ (\ compute_list\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RenderingDevice_method_compute_list_add_barrier>`
|
||
|
||
Raises a Vulkan compute barrier in the specified ``compute_list``.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_compute_list_begin:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **compute_list_begin**\ (\ ) :ref:`🔗<class_RenderingDevice_method_compute_list_begin>`
|
||
|
||
Starts a list of compute commands created with the ``compute_*`` methods. The returned value should be passed to other ``compute_list_*`` functions.
|
||
|
||
Multiple compute lists cannot be created at the same time; you must finish the previous compute list first using :ref:`compute_list_end()<class_RenderingDevice_method_compute_list_end>`.
|
||
|
||
A simple compute operation might look like this (code is not a complete example):
|
||
|
||
::
|
||
|
||
var rd = RenderingDevice.new()
|
||
var compute_list = rd.compute_list_begin()
|
||
|
||
rd.compute_list_bind_compute_pipeline(compute_list, compute_shader_dilate_pipeline)
|
||
rd.compute_list_bind_uniform_set(compute_list, compute_base_uniform_set, 0)
|
||
rd.compute_list_bind_uniform_set(compute_list, dilate_uniform_set, 1)
|
||
|
||
for i in atlas_slices:
|
||
rd.compute_list_set_push_constant(compute_list, push_constant, push_constant.size())
|
||
rd.compute_list_dispatch(compute_list, group_size.x, group_size.y, group_size.z)
|
||
# No barrier, let them run all together.
|
||
|
||
rd.compute_list_end()
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_compute_list_bind_compute_pipeline:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **compute_list_bind_compute_pipeline**\ (\ compute_list\: :ref:`int<class_int>`, compute_pipeline\: :ref:`RID<class_RID>`\ ) :ref:`🔗<class_RenderingDevice_method_compute_list_bind_compute_pipeline>`
|
||
|
||
告訴 GPU 在處理計算列表時要使用什麼計算管道。如果自上次呼叫此函式以來著色器已更改,Godot 將取消綁定所有描述符集並重新綁定它們在\ :ref:`compute_list_dispatch()<class_RenderingDevice_method_compute_list_dispatch>`\ 中。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_compute_list_bind_uniform_set:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **compute_list_bind_uniform_set**\ (\ compute_list\: :ref:`int<class_int>`, uniform_set\: :ref:`RID<class_RID>`, set_index\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RenderingDevice_method_compute_list_bind_uniform_set>`
|
||
|
||
將 ``uniform_set`` 綁定到此 ``compute_list``\ 。Godot 確保均勻集中的所有紋理都具有正確的 Vulkan 存取掩碼。如果 Godot 必須更改紋理的存取掩碼,它將引發Vulkan 影像記憶體障礙。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_compute_list_dispatch:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **compute_list_dispatch**\ (\ compute_list\: :ref:`int<class_int>`, x_groups\: :ref:`int<class_int>`, y_groups\: :ref:`int<class_int>`, z_groups\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RenderingDevice_method_compute_list_dispatch>`
|
||
|
||
將計算列表提交給 GPU 處理。相當於是計算版本的 :ref:`draw_list_draw()<class_RenderingDevice_method_draw_list_draw>`\ 。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_compute_list_dispatch_indirect:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **compute_list_dispatch_indirect**\ (\ compute_list\: :ref:`int<class_int>`, buffer\: :ref:`RID<class_RID>`, offset\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RenderingDevice_method_compute_list_dispatch_indirect>`
|
||
|
||
Submits the compute list for processing on the GPU with the given group counts stored in the ``buffer`` at ``offset``. Buffer must have been created with :ref:`STORAGE_BUFFER_USAGE_DISPATCH_INDIRECT<class_RenderingDevice_constant_STORAGE_BUFFER_USAGE_DISPATCH_INDIRECT>` flag.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_compute_list_end:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **compute_list_end**\ (\ ) :ref:`🔗<class_RenderingDevice_method_compute_list_end>`
|
||
|
||
結束由 ``compute_*`` 方法建立的計算命令列表。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_compute_list_set_push_constant:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **compute_list_set_push_constant**\ (\ compute_list\: :ref:`int<class_int>`, buffer\: :ref:`PackedByteArray<class_PackedByteArray>`, size_bytes\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RenderingDevice_method_compute_list_set_push_constant>`
|
||
|
||
為指定的 ``compute_list`` 設定 ``buffer`` 的推送常數資料。如何使用這個二進位資料由著色器決定。另外還必須在 ``size_bytes`` 中指定緩衝的位元組大小(可以通過對 ``buffer`` 呼叫 :ref:`PackedByteArray.size()<class_PackedByteArray_method_size>` 獲取)。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_compute_pipeline_create:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`RID<class_RID>` **compute_pipeline_create**\ (\ shader\: :ref:`RID<class_RID>`, specialization_constants\: :ref:`Array<class_Array>`\[:ref:`RDPipelineSpecializationConstant<class_RDPipelineSpecializationConstant>`\] = []\ ) :ref:`🔗<class_RenderingDevice_method_compute_pipeline_create>`
|
||
|
||
Creates a new compute pipeline. It can be accessed with the RID that is returned.
|
||
|
||
Once finished with your RID, you will want to free the RID using the RenderingDevice's :ref:`free_rid()<class_RenderingDevice_method_free_rid>` method.
|
||
|
||
This will be freed automatically when the ``shader`` is freed.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_compute_pipeline_is_valid:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`bool<class_bool>` **compute_pipeline_is_valid**\ (\ compute_pipeline\: :ref:`RID<class_RID>`\ ) :ref:`🔗<class_RenderingDevice_method_compute_pipeline_is_valid>`
|
||
|
||
如果由 ``compute_pipeline`` RID 指定的計算管線有效,則返回 ``true``\ ,否則返回 ``false``\ 。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_create_local_device:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`RenderingDevice<class_RenderingDevice>` **create_local_device**\ (\ ) :ref:`🔗<class_RenderingDevice_method_create_local_device>`
|
||
|
||
新建局部 **RenderingDevice**\ 。主要用於在 GPU 上執行計算操作,獨立於引擎的其他部分。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_draw_command_begin_label:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **draw_command_begin_label**\ (\ name\: :ref:`String<class_String>`, color\: :ref:`Color<class_Color>`\ ) :ref:`🔗<class_RenderingDevice_method_draw_command_begin_label>`
|
||
|
||
Create a command buffer debug label region that can be displayed in third-party tools such as `RenderDoc <https://renderdoc.org/>`__. All regions must be ended with a :ref:`draw_command_end_label()<class_RenderingDevice_method_draw_command_end_label>` call. When viewed from the linear series of submissions to a single queue, calls to :ref:`draw_command_begin_label()<class_RenderingDevice_method_draw_command_begin_label>` and :ref:`draw_command_end_label()<class_RenderingDevice_method_draw_command_end_label>` must be matched and balanced.
|
||
|
||
The ``VK_EXT_DEBUG_UTILS_EXTENSION_NAME`` Vulkan extension must be available and enabled for command buffer debug label region to work. See also :ref:`draw_command_end_label()<class_RenderingDevice_method_draw_command_end_label>`.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_draw_command_end_label:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **draw_command_end_label**\ (\ ) :ref:`🔗<class_RenderingDevice_method_draw_command_end_label>`
|
||
|
||
結束命令緩衝除錯標籤區域,該區域由 :ref:`draw_command_begin_label()<class_RenderingDevice_method_draw_command_begin_label>` 呼叫開啟。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_draw_command_insert_label:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **draw_command_insert_label**\ (\ name\: :ref:`String<class_String>`, color\: :ref:`Color<class_Color>`\ ) :ref:`🔗<class_RenderingDevice_method_draw_command_insert_label>`
|
||
|
||
**已棄用:** Inserting labels no longer applies due to command reordering.
|
||
|
||
This method does nothing.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_draw_list_begin:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **draw_list_begin**\ (\ framebuffer\: :ref:`RID<class_RID>`, draw_flags\: |bitfield|\[:ref:`DrawFlags<enum_RenderingDevice_DrawFlags>`\] = 0, clear_color_values\: :ref:`PackedColorArray<class_PackedColorArray>` = PackedColorArray(), clear_depth_value\: :ref:`float<class_float>` = 1.0, clear_stencil_value\: :ref:`int<class_int>` = 0, region\: :ref:`Rect2<class_Rect2>` = Rect2(0, 0, 0, 0), breadcrumb\: :ref:`int<class_int>` = 0\ ) :ref:`🔗<class_RenderingDevice_method_draw_list_begin>`
|
||
|
||
Starts a list of raster drawing commands created with the ``draw_*`` methods. The returned value should be passed to other ``draw_list_*`` functions.
|
||
|
||
Multiple draw lists cannot be created at the same time; you must finish the previous draw list first using :ref:`draw_list_end()<class_RenderingDevice_method_draw_list_end>`.
|
||
|
||
A simple drawing operation might look like this (code is not a complete example):
|
||
|
||
::
|
||
|
||
var rd = RenderingDevice.new()
|
||
var clear_colors = PackedColorArray([Color(0, 0, 0, 0), Color(0, 0, 0, 0), Color(0, 0, 0, 0)])
|
||
var draw_list = rd.draw_list_begin(framebuffers[i], RenderingDevice.CLEAR_COLOR_ALL, clear_colors, true, 1.0f, true, 0, Rect2(), RenderingDevice.OPAQUE_PASS)
|
||
|
||
# Draw opaque.
|
||
rd.draw_list_bind_render_pipeline(draw_list, raster_pipeline)
|
||
rd.draw_list_bind_uniform_set(draw_list, raster_base_uniform, 0)
|
||
rd.draw_list_set_push_constant(draw_list, raster_push_constant, raster_push_constant.size())
|
||
rd.draw_list_draw(draw_list, false, 1, slice_triangle_count[i] * 3)
|
||
# Draw wire.
|
||
rd.draw_list_bind_render_pipeline(draw_list, raster_pipeline_wire)
|
||
rd.draw_list_bind_uniform_set(draw_list, raster_base_uniform, 0)
|
||
rd.draw_list_set_push_constant(draw_list, raster_push_constant, raster_push_constant.size())
|
||
rd.draw_list_draw(draw_list, false, 1, slice_triangle_count[i] * 3)
|
||
|
||
rd.draw_list_end()
|
||
|
||
The ``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 :ref:`RDTextureFormat<class_RDTextureFormat>` or :ref:`texture_set_discardable()<class_RenderingDevice_method_texture_set_discardable>`.
|
||
|
||
The ``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.
|
||
|
||
It does not affect rendering behavior and can be set to 0. It is recommended to use :ref:`BreadcrumbMarker<enum_RenderingDevice_BreadcrumbMarker>` enumerations for consistency but it's not required. It is also possible to use bitwise operations to add extra data. e.g.
|
||
|
||
::
|
||
|
||
rd.draw_list_begin(fb[i], RenderingDevice.CLEAR_COLOR_ALL, clear_colors, true, 1.0f, true, 0, Rect2(), RenderingDevice.OPAQUE_PASS | 5)
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_draw_list_begin_for_screen:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **draw_list_begin_for_screen**\ (\ screen\: :ref:`int<class_int>` = 0, clear_color\: :ref:`Color<class_Color>` = Color(0, 0, 0, 1)\ ) :ref:`🔗<class_RenderingDevice_method_draw_list_begin_for_screen>`
|
||
|
||
:ref:`draw_list_begin()<class_RenderingDevice_method_draw_list_begin>` 的高階變體,會針對繪製到 ``screen`` ID 指定的窗口上自動調整參數。
|
||
|
||
\ **注意:**\ 局部 RenderingDevice 沒有螢幕,所以無法使用。如果對局部 RenderingDevice 呼叫,\ :ref:`draw_list_begin_for_screen()<class_RenderingDevice_method_draw_list_begin_for_screen>` 會返回 :ref:`INVALID_ID<class_RenderingDevice_constant_INVALID_ID>`\ 。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_draw_list_begin_split:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`PackedInt64Array<class_PackedInt64Array>` **draw_list_begin_split**\ (\ framebuffer\: :ref:`RID<class_RID>`, splits\: :ref:`int<class_int>`, initial_color_action\: :ref:`InitialAction<enum_RenderingDevice_InitialAction>`, final_color_action\: :ref:`FinalAction<enum_RenderingDevice_FinalAction>`, initial_depth_action\: :ref:`InitialAction<enum_RenderingDevice_InitialAction>`, final_depth_action\: :ref:`FinalAction<enum_RenderingDevice_FinalAction>`, clear_color_values\: :ref:`PackedColorArray<class_PackedColorArray>` = PackedColorArray(), clear_depth\: :ref:`float<class_float>` = 1.0, clear_stencil\: :ref:`int<class_int>` = 0, region\: :ref:`Rect2<class_Rect2>` = Rect2(0, 0, 0, 0), storage_textures\: :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\] = []\ ) :ref:`🔗<class_RenderingDevice_method_draw_list_begin_split>`
|
||
|
||
**已棄用:** Split draw lists are used automatically by RenderingDevice.
|
||
|
||
This method does nothing and always returns an empty :ref:`PackedInt64Array<class_PackedInt64Array>`.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_draw_list_bind_index_array:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **draw_list_bind_index_array**\ (\ draw_list\: :ref:`int<class_int>`, index_array\: :ref:`RID<class_RID>`\ ) :ref:`🔗<class_RenderingDevice_method_draw_list_bind_index_array>`
|
||
|
||
將 ``index_array`` 綁定到指定的 ``draw_list``\ 。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_draw_list_bind_render_pipeline:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **draw_list_bind_render_pipeline**\ (\ draw_list\: :ref:`int<class_int>`, render_pipeline\: :ref:`RID<class_RID>`\ ) :ref:`🔗<class_RenderingDevice_method_draw_list_bind_render_pipeline>`
|
||
|
||
將 ``render_pipeline`` 綁定到指定的 ``draw_list``\ 。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_draw_list_bind_uniform_set:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **draw_list_bind_uniform_set**\ (\ draw_list\: :ref:`int<class_int>`, uniform_set\: :ref:`RID<class_RID>`, set_index\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RenderingDevice_method_draw_list_bind_uniform_set>`
|
||
|
||
將 ``uniform_set`` 綁定到指定的 ``draw_list``\ 。還必須指定 ``set_index``\ ,這是從 ``0`` 開始的識別字,必須與繪製列表中所需要的相匹配。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_draw_list_bind_vertex_array:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **draw_list_bind_vertex_array**\ (\ draw_list\: :ref:`int<class_int>`, vertex_array\: :ref:`RID<class_RID>`\ ) :ref:`🔗<class_RenderingDevice_method_draw_list_bind_vertex_array>`
|
||
|
||
將 ``vertex_array`` 綁定到指定的 ``draw_list``\ 。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_draw_list_bind_vertex_buffers_format:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **draw_list_bind_vertex_buffers_format**\ (\ draw_list\: :ref:`int<class_int>`, vertex_format\: :ref:`int<class_int>`, vertex_count\: :ref:`int<class_int>`, vertex_buffers\: :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\], offsets\: :ref:`PackedInt64Array<class_PackedInt64Array>` = PackedInt64Array()\ ) :ref:`🔗<class_RenderingDevice_method_draw_list_bind_vertex_buffers_format>`
|
||
|
||
Binds a set of ``vertex_buffers`` directly to the specified ``draw_list`` using ``vertex_format`` without creating a vertex array RID. Provide the number of vertices in ``vertex_count``; optional per-buffer byte ``offsets`` may also be supplied.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_draw_list_disable_scissor:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **draw_list_disable_scissor**\ (\ draw_list\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RenderingDevice_method_draw_list_disable_scissor>`
|
||
|
||
為指定的 ``draw_list`` 移除並禁用裁剪矩形。另見 :ref:`draw_list_enable_scissor()<class_RenderingDevice_method_draw_list_enable_scissor>`\ 。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_draw_list_draw:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **draw_list_draw**\ (\ draw_list\: :ref:`int<class_int>`, use_indices\: :ref:`bool<class_bool>`, instances\: :ref:`int<class_int>`, procedural_vertex_count\: :ref:`int<class_int>` = 0\ ) :ref:`🔗<class_RenderingDevice_method_draw_list_draw>`
|
||
|
||
將 ``draw_list`` 提交給 GPU 算繪。相當於是柵格版本的 :ref:`compute_list_dispatch()<class_RenderingDevice_method_compute_list_dispatch>`\ 。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_draw_list_draw_indirect:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **draw_list_draw_indirect**\ (\ draw_list\: :ref:`int<class_int>`, use_indices\: :ref:`bool<class_bool>`, buffer\: :ref:`RID<class_RID>`, offset\: :ref:`int<class_int>` = 0, draw_count\: :ref:`int<class_int>` = 1, stride\: :ref:`int<class_int>` = 0\ ) :ref:`🔗<class_RenderingDevice_method_draw_list_draw_indirect>`
|
||
|
||
Submits ``draw_list`` for rendering on the GPU with the given parameters stored in the ``buffer`` at ``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 :ref:`STORAGE_BUFFER_USAGE_DISPATCH_INDIRECT<class_RenderingDevice_constant_STORAGE_BUFFER_USAGE_DISPATCH_INDIRECT>` flag.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_draw_list_enable_scissor:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **draw_list_enable_scissor**\ (\ draw_list\: :ref:`int<class_int>`, rect\: :ref:`Rect2<class_Rect2>` = Rect2(0, 0, 0, 0)\ ) :ref:`🔗<class_RenderingDevice_method_draw_list_enable_scissor>`
|
||
|
||
建立裁剪矩形並為指定的 ``draw_list`` 啟用。裁剪矩形可以用來實作裁剪,會丟棄落在螢幕上指定矩形範圍之外的片段。另見 :ref:`draw_list_disable_scissor()<class_RenderingDevice_method_draw_list_disable_scissor>`\ 。
|
||
|
||
\ **注意:**\ 指定的 ``rect`` 會自動與螢幕尺寸求交集,也就是說裁剪矩形無法超出螢幕的範圍。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_draw_list_end:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **draw_list_end**\ (\ ) :ref:`🔗<class_RenderingDevice_method_draw_list_end>`
|
||
|
||
結束由 ``draw_*`` 方法建立的柵格繪圖命令列表。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_draw_list_set_blend_constants:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **draw_list_set_blend_constants**\ (\ draw_list\: :ref:`int<class_int>`, color\: :ref:`Color<class_Color>`\ ) :ref:`🔗<class_RenderingDevice_method_draw_list_set_blend_constants>`
|
||
|
||
將指定 ``draw_list`` 的混合常數設定為 ``color``\ 。建立圖形管線時設定了 :ref:`DYNAMIC_STATE_BLEND_CONSTANTS<class_RenderingDevice_constant_DYNAMIC_STATE_BLEND_CONSTANTS>` 旗標時才會使用混合常數。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_draw_list_set_push_constant:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **draw_list_set_push_constant**\ (\ draw_list\: :ref:`int<class_int>`, buffer\: :ref:`PackedByteArray<class_PackedByteArray>`, size_bytes\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RenderingDevice_method_draw_list_set_push_constant>`
|
||
|
||
為指定的 ``draw_list`` 設定 ``buffer`` 的推送常數資料。如何使用這個二進制資料由著色器決定。另外還必須在 ``size_bytes`` 中指定緩衝的位元組大小(可以通過對 ``buffer`` 呼叫 :ref:`PackedByteArray.size()<class_PackedByteArray_method_size>` 獲取)。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_draw_list_switch_to_next_pass:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **draw_list_switch_to_next_pass**\ (\ ) :ref:`🔗<class_RenderingDevice_method_draw_list_switch_to_next_pass>`
|
||
|
||
Switches to the next draw pass.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_draw_list_switch_to_next_pass_split:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`PackedInt64Array<class_PackedInt64Array>` **draw_list_switch_to_next_pass_split**\ (\ splits\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RenderingDevice_method_draw_list_switch_to_next_pass_split>`
|
||
|
||
**已棄用:** Split draw lists are used automatically by RenderingDevice.
|
||
|
||
This method does nothing and always returns an empty :ref:`PackedInt64Array<class_PackedInt64Array>`.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_framebuffer_create:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`RID<class_RID>` **framebuffer_create**\ (\ textures\: :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\], validate_with_format\: :ref:`int<class_int>` = -1, view_count\: :ref:`int<class_int>` = 1\ ) :ref:`🔗<class_RenderingDevice_method_framebuffer_create>`
|
||
|
||
Creates a new framebuffer. It can be accessed with the RID that is returned.
|
||
|
||
Once finished with your RID, you will want to free the RID using the RenderingDevice's :ref:`free_rid()<class_RenderingDevice_method_free_rid>` method.
|
||
|
||
This will be freed automatically when any of the ``textures`` is freed.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_framebuffer_create_empty:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`RID<class_RID>` **framebuffer_create_empty**\ (\ size\: :ref:`Vector2i<class_Vector2i>`, samples\: :ref:`TextureSamples<enum_RenderingDevice_TextureSamples>` = 0, validate_with_format\: :ref:`int<class_int>` = -1\ ) :ref:`🔗<class_RenderingDevice_method_framebuffer_create_empty>`
|
||
|
||
新建空的影格緩衝。可以通過返回的 RID 進行存取。
|
||
|
||
RID 使用結束後,應該使用 RenderingServer 的 :ref:`free_rid()<class_RenderingDevice_method_free_rid>` 方法進行釋放。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_framebuffer_create_multipass:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`RID<class_RID>` **framebuffer_create_multipass**\ (\ textures\: :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\], passes\: :ref:`Array<class_Array>`\[:ref:`RDFramebufferPass<class_RDFramebufferPass>`\], validate_with_format\: :ref:`int<class_int>` = -1, view_count\: :ref:`int<class_int>` = 1\ ) :ref:`🔗<class_RenderingDevice_method_framebuffer_create_multipass>`
|
||
|
||
Creates a new multipass framebuffer. It can be accessed with the RID that is returned.
|
||
|
||
Once finished with your RID, you will want to free the RID using the RenderingDevice's :ref:`free_rid()<class_RenderingDevice_method_free_rid>` method.
|
||
|
||
This will be freed automatically when any of the ``textures`` is freed.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_framebuffer_format_create:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **framebuffer_format_create**\ (\ attachments\: :ref:`Array<class_Array>`\[:ref:`RDAttachmentFormat<class_RDAttachmentFormat>`\], view_count\: :ref:`int<class_int>` = 1\ ) :ref:`🔗<class_RenderingDevice_method_framebuffer_format_create>`
|
||
|
||
新建影格緩衝格式,附件為 ``attachments``\ 、視圖數為 ``view_count``\ 。返回的是新影格緩衝的唯一影格緩衝格式 ID。
|
||
|
||
如果 ``view_count`` 大於等於 ``2``\ ,則會針對 VR 算繪啟用多視圖。要求支援 Vulkan 的多視圖擴充。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_framebuffer_format_create_empty:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **framebuffer_format_create_empty**\ (\ samples\: :ref:`TextureSamples<enum_RenderingDevice_TextureSamples>` = 0\ ) :ref:`🔗<class_RenderingDevice_method_framebuffer_format_create_empty>`
|
||
|
||
新建空的影格緩衝格式並返回其 ID,取樣數為 ``samples``\ 。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_framebuffer_format_create_multipass:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **framebuffer_format_create_multipass**\ (\ attachments\: :ref:`Array<class_Array>`\[:ref:`RDAttachmentFormat<class_RDAttachmentFormat>`\], passes\: :ref:`Array<class_Array>`\[:ref:`RDFramebufferPass<class_RDFramebufferPass>`\], view_count\: :ref:`int<class_int>` = 1\ ) :ref:`🔗<class_RenderingDevice_method_framebuffer_format_create_multipass>`
|
||
|
||
建立多階段影格緩衝格式並返回其 ID,附件為 ``attachments``\ 、階段數為 ``passes``\ 、視圖數為 ``view_count``\ 。如果 ``view_count`` 大於等於 ``2``\ ,則會針對 VR 算繪啟用多視圖。要求支援 Vulkan 的多視圖擴充。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_framebuffer_format_get_texture_samples:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`TextureSamples<enum_RenderingDevice_TextureSamples>` **framebuffer_format_get_texture_samples**\ (\ format\: :ref:`int<class_int>`, render_pass\: :ref:`int<class_int>` = 0\ ) :ref:`🔗<class_RenderingDevice_method_framebuffer_format_get_texture_samples>`
|
||
|
||
返回給定影格緩衝格式 ID ``format`` 所使用的紋理取樣數量(格式由 :ref:`framebuffer_get_format()<class_RenderingDevice_method_framebuffer_get_format>` 返回)。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_framebuffer_get_format:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **framebuffer_get_format**\ (\ framebuffer\: :ref:`RID<class_RID>`\ ) :ref:`🔗<class_RenderingDevice_method_framebuffer_get_format>`
|
||
|
||
返回由影格緩衝 RID ``framebuffer`` 指定的影格緩衝的格式 ID。相同格式下,這個 ID 一定是唯一的,不需要釋放。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_framebuffer_is_valid:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`bool<class_bool>` **framebuffer_is_valid**\ (\ framebuffer\: :ref:`RID<class_RID>`\ ) |const| :ref:`🔗<class_RenderingDevice_method_framebuffer_is_valid>`
|
||
|
||
返回由影格緩衝 RID ``framebuffer`` 指定的影格緩衝有效,則返回 ``true``\ ,否則返回 ``false``\ 。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_free_rid:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **free_rid**\ (\ rid\: :ref:`RID<class_RID>`\ ) :ref:`🔗<class_RenderingDevice_method_free_rid>`
|
||
|
||
嘗試釋放 RenderingDevice 中的某個物件。為了防止記憶體洩漏,物件使用完後就應該調用這個方法,因為直接使用 RenderingDevice 時並不會自動進行記憶體管理。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_full_barrier:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **full_barrier**\ (\ ) :ref:`🔗<class_RenderingDevice_method_full_barrier>`
|
||
|
||
**已棄用:** Barriers are automatically inserted by RenderingDevice.
|
||
|
||
This method does nothing.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_get_captured_timestamp_cpu_time:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_captured_timestamp_cpu_time**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_RenderingDevice_method_get_captured_timestamp_cpu_time>`
|
||
|
||
返回算繪步驟的 CPU 時間戳記(引擎啟動後經過的毫秒數),算繪步驟由 ``index`` 指定。另見 :ref:`get_captured_timestamp_gpu_time()<class_RenderingDevice_method_get_captured_timestamp_gpu_time>` 和 :ref:`capture_timestamp()<class_RenderingDevice_method_capture_timestamp>`\ 。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_get_captured_timestamp_gpu_time:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_captured_timestamp_gpu_time**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_RenderingDevice_method_get_captured_timestamp_gpu_time>`
|
||
|
||
返回算繪步驟的 GPU 時間戳記(引擎啟動後經過的毫秒數),算繪步驟由 ``index`` 指定。另見 :ref:`get_captured_timestamp_cpu_time()<class_RenderingDevice_method_get_captured_timestamp_cpu_time>` 和 :ref:`capture_timestamp()<class_RenderingDevice_method_capture_timestamp>`\ 。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_get_captured_timestamp_name:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`String<class_String>` **get_captured_timestamp_name**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_RenderingDevice_method_get_captured_timestamp_name>`
|
||
|
||
返回算繪步驟的時間戳記的名稱,算繪步驟由 ``index`` 指定。另見 :ref:`capture_timestamp()<class_RenderingDevice_method_capture_timestamp>`\ 。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_get_captured_timestamps_count:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_captured_timestamps_count**\ (\ ) |const| :ref:`🔗<class_RenderingDevice_method_get_captured_timestamps_count>`
|
||
|
||
返回能夠進行性能分析的時間戳記(算繪步驟)總數。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_get_captured_timestamps_frame:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_captured_timestamps_frame**\ (\ ) |const| :ref:`🔗<class_RenderingDevice_method_get_captured_timestamps_frame>`
|
||
|
||
返回能夠進行算繪時間戳記查詢的最後一個算繪影格的索引。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_get_device_allocation_count:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_device_allocation_count**\ (\ ) |const| :ref:`🔗<class_RenderingDevice_method_get_device_allocation_count>`
|
||
|
||
Returns how many allocations the GPU has performed for internal driver structures.
|
||
|
||
This is only used by Vulkan in debug builds and can return 0 when this information is not tracked or unknown.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_get_device_allocs_by_object_type:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_device_allocs_by_object_type**\ (\ type\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_RenderingDevice_method_get_device_allocs_by_object_type>`
|
||
|
||
Same as :ref:`get_device_allocation_count()<class_RenderingDevice_method_get_device_allocation_count>` but filtered for a given object type.
|
||
|
||
The type argument must be in range ``[0; get_tracked_object_type_count - 1]``. If :ref:`get_tracked_object_type_count()<class_RenderingDevice_method_get_tracked_object_type_count>` is 0, then type argument is ignored and always returns 0.
|
||
|
||
This is only used by Vulkan in debug builds and can return 0 when this information is not tracked or unknown.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_get_device_memory_by_object_type:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_device_memory_by_object_type**\ (\ type\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_RenderingDevice_method_get_device_memory_by_object_type>`
|
||
|
||
Same as :ref:`get_device_total_memory()<class_RenderingDevice_method_get_device_total_memory>` but filtered for a given object type.
|
||
|
||
The type argument must be in range ``[0; get_tracked_object_type_count - 1]``. If :ref:`get_tracked_object_type_count()<class_RenderingDevice_method_get_tracked_object_type_count>` is 0, then type argument is ignored and always returns 0.
|
||
|
||
This is only used by Vulkan in debug builds and can return 0 when this information is not tracked or unknown.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_get_device_name:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`String<class_String>` **get_device_name**\ (\ ) |const| :ref:`🔗<class_RenderingDevice_method_get_device_name>`
|
||
|
||
返回視訊卡的名稱(例如 "GeForce GTX 1080/PCIe/SSE2")。等價於 :ref:`RenderingServer.get_video_adapter_name()<class_RenderingServer_method_get_video_adapter_name>`\ 。另見 :ref:`get_device_vendor_name()<class_RenderingDevice_method_get_device_vendor_name>`\ 。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_get_device_pipeline_cache_uuid:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`String<class_String>` **get_device_pipeline_cache_uuid**\ (\ ) |const| :ref:`🔗<class_RenderingDevice_method_get_device_pipeline_cache_uuid>`
|
||
|
||
返回管線快取的通用唯一識別碼。用於將著色器檔快取到磁片,避免後續運作引擎時進行著色器的重新編譯。這個 UUID 會根據顯卡型號以及驅動版本的不同而不同。因此,更新圖形驅動會使著色器快取失效。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_get_device_total_memory:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_device_total_memory**\ (\ ) |const| :ref:`🔗<class_RenderingDevice_method_get_device_total_memory>`
|
||
|
||
Returns how much bytes the GPU is using.
|
||
|
||
This is only used by Vulkan in debug builds and can return 0 when this information is not tracked or unknown.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_get_device_vendor_name:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`String<class_String>` **get_device_vendor_name**\ (\ ) |const| :ref:`🔗<class_RenderingDevice_method_get_device_vendor_name>`
|
||
|
||
返回視訊卡的供應商(例如 "NVIDIA Corporation")。等價於 :ref:`RenderingServer.get_video_adapter_vendor()<class_RenderingServer_method_get_video_adapter_vendor>`\ 。另見 :ref:`get_device_name()<class_RenderingDevice_method_get_device_name>`\ 。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_get_driver_allocation_count:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_driver_allocation_count**\ (\ ) |const| :ref:`🔗<class_RenderingDevice_method_get_driver_allocation_count>`
|
||
|
||
Returns how many allocations the GPU driver has performed for internal driver structures.
|
||
|
||
This is only used by Vulkan in debug builds and can return 0 when this information is not tracked or unknown.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_get_driver_allocs_by_object_type:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_driver_allocs_by_object_type**\ (\ type\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_RenderingDevice_method_get_driver_allocs_by_object_type>`
|
||
|
||
Same as :ref:`get_driver_allocation_count()<class_RenderingDevice_method_get_driver_allocation_count>` but filtered for a given object type.
|
||
|
||
The type argument must be in range ``[0; get_tracked_object_type_count - 1]``. If :ref:`get_tracked_object_type_count()<class_RenderingDevice_method_get_tracked_object_type_count>` is 0, then type argument is ignored and always returns 0.
|
||
|
||
This is only used by Vulkan in debug builds and can return 0 when this information is not tracked or unknown.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_get_driver_and_device_memory_report:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`String<class_String>` **get_driver_and_device_memory_report**\ (\ ) |const| :ref:`🔗<class_RenderingDevice_method_get_driver_and_device_memory_report>`
|
||
|
||
Returns string report in CSV format using the following methods:
|
||
|
||
- :ref:`get_tracked_object_name()<class_RenderingDevice_method_get_tracked_object_name>`\
|
||
|
||
- :ref:`get_tracked_object_type_count()<class_RenderingDevice_method_get_tracked_object_type_count>`\
|
||
|
||
- :ref:`get_driver_total_memory()<class_RenderingDevice_method_get_driver_total_memory>`\
|
||
|
||
- :ref:`get_driver_allocation_count()<class_RenderingDevice_method_get_driver_allocation_count>`\
|
||
|
||
- :ref:`get_driver_memory_by_object_type()<class_RenderingDevice_method_get_driver_memory_by_object_type>`\
|
||
|
||
- :ref:`get_driver_allocs_by_object_type()<class_RenderingDevice_method_get_driver_allocs_by_object_type>`\
|
||
|
||
- :ref:`get_device_total_memory()<class_RenderingDevice_method_get_device_total_memory>`\
|
||
|
||
- :ref:`get_device_allocation_count()<class_RenderingDevice_method_get_device_allocation_count>`\
|
||
|
||
- :ref:`get_device_memory_by_object_type()<class_RenderingDevice_method_get_device_memory_by_object_type>`\
|
||
|
||
- :ref:`get_device_allocs_by_object_type()<class_RenderingDevice_method_get_device_allocs_by_object_type>`\
|
||
|
||
This is only used by Vulkan in debug builds. Godot must also be started with the ``--extra-gpu-memory-tracking`` :doc:`command line argument <../tutorials/editor/command_line_tutorial>`.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_get_driver_memory_by_object_type:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_driver_memory_by_object_type**\ (\ type\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_RenderingDevice_method_get_driver_memory_by_object_type>`
|
||
|
||
Same as :ref:`get_driver_total_memory()<class_RenderingDevice_method_get_driver_total_memory>` but filtered for a given object type.
|
||
|
||
The type argument must be in range ``[0; get_tracked_object_type_count - 1]``. If :ref:`get_tracked_object_type_count()<class_RenderingDevice_method_get_tracked_object_type_count>` is 0, then type argument is ignored and always returns 0.
|
||
|
||
This is only used by Vulkan in debug builds and can return 0 when this information is not tracked or unknown.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_get_driver_resource:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_driver_resource**\ (\ resource\: :ref:`DriverResource<enum_RenderingDevice_DriverResource>`, rid\: :ref:`RID<class_RID>`, index\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RenderingDevice_method_get_driver_resource>`
|
||
|
||
Returns the unique identifier of the driver ``resource`` for the specified ``rid``. Some driver resource types ignore the specified ``rid``. ``index`` is always ignored but must be specified anyway.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_get_driver_total_memory:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_driver_total_memory**\ (\ ) |const| :ref:`🔗<class_RenderingDevice_method_get_driver_total_memory>`
|
||
|
||
Returns how much bytes the GPU driver is using for internal driver structures.
|
||
|
||
This is only used by Vulkan in debug builds and can return 0 when this information is not tracked or unknown.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_get_frame_delay:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_frame_delay**\ (\ ) |const| :ref:`🔗<class_RenderingDevice_method_get_frame_delay>`
|
||
|
||
返回圖形 API 所記錄的影格數。值越高輸入延遲就越高,但輸送量也更一致。對於主 **RenderingDevice** 而言,影格會進行迴圈(啟用三緩衝垂直同步時通常為 3)。但是局部 **RenderingDevice** 只有 1 影格。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_get_memory_usage:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_memory_usage**\ (\ type\: :ref:`MemoryType<enum_RenderingDevice_MemoryType>`\ ) |const| :ref:`🔗<class_RenderingDevice_method_get_memory_usage>`
|
||
|
||
返回與型別 ``type`` 對應的記憶體用量,單位為位元組。使用 Vulkan 時,會通過 `Vulkan Memory Allocator <https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator>`__ 計算這些統計資訊。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_get_perf_report:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`String<class_String>` **get_perf_report**\ (\ ) |const| :ref:`🔗<class_RenderingDevice_method_get_perf_report>`
|
||
|
||
Returns a string with a performance report from the past frame. Updates every frame.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_get_tracked_object_name:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`String<class_String>` **get_tracked_object_name**\ (\ type_index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_RenderingDevice_method_get_tracked_object_name>`
|
||
|
||
Returns the name of the type of object for the given ``type_index``. This value must be in range ``[0; get_tracked_object_type_count - 1]``. If :ref:`get_tracked_object_type_count()<class_RenderingDevice_method_get_tracked_object_type_count>` is 0, then type argument is ignored and always returns the same string.
|
||
|
||
The return value is important because it gives meaning to the types passed to :ref:`get_driver_memory_by_object_type()<class_RenderingDevice_method_get_driver_memory_by_object_type>`, :ref:`get_driver_allocs_by_object_type()<class_RenderingDevice_method_get_driver_allocs_by_object_type>`, :ref:`get_device_memory_by_object_type()<class_RenderingDevice_method_get_device_memory_by_object_type>`, and :ref:`get_device_allocs_by_object_type()<class_RenderingDevice_method_get_device_allocs_by_object_type>`. Examples of strings it can return (not exhaustive):
|
||
|
||
- DEVICE_MEMORY
|
||
|
||
- PIPELINE_CACHE
|
||
|
||
- SWAPCHAIN_KHR
|
||
|
||
- COMMAND_POOL
|
||
|
||
Thus if e.g. ``get_tracked_object_name(5)`` returns "COMMAND_POOL", then ``get_device_memory_by_object_type(5)`` returns the bytes used by the GPU for command pools.
|
||
|
||
This is only used by Vulkan in debug builds. Godot must also be started with the ``--extra-gpu-memory-tracking`` :doc:`command line argument <../tutorials/editor/command_line_tutorial>`.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_get_tracked_object_type_count:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_tracked_object_type_count**\ (\ ) |const| :ref:`🔗<class_RenderingDevice_method_get_tracked_object_type_count>`
|
||
|
||
Returns how many types of trackable objects there are.
|
||
|
||
This is only used by Vulkan in debug builds. Godot must also be started with the ``--extra-gpu-memory-tracking`` :doc:`command line argument <../tutorials/editor/command_line_tutorial>`.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_has_feature:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`bool<class_bool>` **has_feature**\ (\ feature\: :ref:`Features<enum_RenderingDevice_Features>`\ ) |const| :ref:`🔗<class_RenderingDevice_method_has_feature>`
|
||
|
||
Returns ``true`` if the ``feature`` is supported by the GPU.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_index_array_create:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`RID<class_RID>` **index_array_create**\ (\ index_buffer\: :ref:`RID<class_RID>`, index_offset\: :ref:`int<class_int>`, index_count\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RenderingDevice_method_index_array_create>`
|
||
|
||
Creates a new index array. It can be accessed with the RID that is returned.
|
||
|
||
Once finished with your RID, you will want to free the RID using the RenderingDevice's :ref:`free_rid()<class_RenderingDevice_method_free_rid>` method.
|
||
|
||
This will be freed automatically when the ``index_buffer`` is freed.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_index_buffer_create:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`RID<class_RID>` **index_buffer_create**\ (\ size_indices\: :ref:`int<class_int>`, format\: :ref:`IndexBufferFormat<enum_RenderingDevice_IndexBufferFormat>`, data\: :ref:`PackedByteArray<class_PackedByteArray>` = PackedByteArray(), use_restart_indices\: :ref:`bool<class_bool>` = false, creation_bits\: |bitfield|\[:ref:`BufferCreationBits<enum_RenderingDevice_BufferCreationBits>`\] = 0\ ) :ref:`🔗<class_RenderingDevice_method_index_buffer_create>`
|
||
|
||
Creates a new index buffer. It can be accessed with the RID that is returned.
|
||
|
||
Once finished with your RID, you will want to free the RID using the RenderingDevice's :ref:`free_rid()<class_RenderingDevice_method_free_rid>` method.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_limit_get:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **limit_get**\ (\ limit\: :ref:`Limit<enum_RenderingDevice_Limit>`\ ) |const| :ref:`🔗<class_RenderingDevice_method_limit_get>`
|
||
|
||
返回指定 ``limit`` 的值。這個極限值取決於目前的圖形硬體(有時也和驅動版本有關)。如果超出了給定的極限,則會發生算繪錯誤。
|
||
|
||
各種圖形硬體的極限可以在 `Vulkan 硬體資料庫 <https://vulkan.gpuinfo.org/>`__\ 中找到。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_render_pipeline_create:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`RID<class_RID>` **render_pipeline_create**\ (\ shader\: :ref:`RID<class_RID>`, framebuffer_format\: :ref:`int<class_int>`, vertex_format\: :ref:`int<class_int>`, primitive\: :ref:`RenderPrimitive<enum_RenderingDevice_RenderPrimitive>`, rasterization_state\: :ref:`RDPipelineRasterizationState<class_RDPipelineRasterizationState>`, multisample_state\: :ref:`RDPipelineMultisampleState<class_RDPipelineMultisampleState>`, stencil_state\: :ref:`RDPipelineDepthStencilState<class_RDPipelineDepthStencilState>`, color_blend_state\: :ref:`RDPipelineColorBlendState<class_RDPipelineColorBlendState>`, dynamic_state_flags\: |bitfield|\[:ref:`PipelineDynamicStateFlags<enum_RenderingDevice_PipelineDynamicStateFlags>`\] = 0, for_render_pass\: :ref:`int<class_int>` = 0, specialization_constants\: :ref:`Array<class_Array>`\[:ref:`RDPipelineSpecializationConstant<class_RDPipelineSpecializationConstant>`\] = []\ ) :ref:`🔗<class_RenderingDevice_method_render_pipeline_create>`
|
||
|
||
Creates a new render pipeline. It can be accessed with the RID that is returned.
|
||
|
||
Once finished with your RID, you will want to free the RID using the RenderingDevice's :ref:`free_rid()<class_RenderingDevice_method_free_rid>` method.
|
||
|
||
This will be freed automatically when the ``shader`` is freed.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_render_pipeline_is_valid:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`bool<class_bool>` **render_pipeline_is_valid**\ (\ render_pipeline\: :ref:`RID<class_RID>`\ ) :ref:`🔗<class_RenderingDevice_method_render_pipeline_is_valid>`
|
||
|
||
如果由 ``render_pipeline`` RID 指定的算繪管線有效則返回 ``true``\ ,否則返回 ``false``\ 。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_sampler_create:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`RID<class_RID>` **sampler_create**\ (\ state\: :ref:`RDSamplerState<class_RDSamplerState>`\ ) :ref:`🔗<class_RenderingDevice_method_sampler_create>`
|
||
|
||
新建取樣器。可以通過返回的 RID 進行存取。
|
||
|
||
RID 使用結束後,應該使用 RenderingServer 的 :ref:`free_rid()<class_RenderingDevice_method_free_rid>` 方法進行釋放。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_sampler_is_format_supported_for_filter:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`bool<class_bool>` **sampler_is_format_supported_for_filter**\ (\ format\: :ref:`DataFormat<enum_RenderingDevice_DataFormat>`, sampler_filter\: :ref:`SamplerFilter<enum_RenderingDevice_SamplerFilter>`\ ) |const| :ref:`🔗<class_RenderingDevice_method_sampler_is_format_supported_for_filter>`
|
||
|
||
如果實作支援使用格式為 ``format`` 和 ``sampler_filter`` 取樣篩選的紋理,則返回 ``true``\ 。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_screen_get_framebuffer_format:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **screen_get_framebuffer_format**\ (\ screen\: :ref:`int<class_int>` = 0\ ) |const| :ref:`🔗<class_RenderingDevice_method_screen_get_framebuffer_format>`
|
||
|
||
Returns the framebuffer format of the given screen.
|
||
|
||
\ **Note:** Only the main **RenderingDevice** returned by :ref:`RenderingServer.get_rendering_device()<class_RenderingServer_method_get_rendering_device>` has a format. If called on a local **RenderingDevice**, this method prints an error and returns :ref:`INVALID_ID<class_RenderingDevice_constant_INVALID_ID>`.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_screen_get_height:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **screen_get_height**\ (\ screen\: :ref:`int<class_int>` = 0\ ) |const| :ref:`🔗<class_RenderingDevice_method_screen_get_height>`
|
||
|
||
返回與給定視窗 ID 圖形 API 本文相配對的視窗高度(單位為圖元)。雖然參數的名字叫 ``screen``\ ,但返回的是\ *視窗*\ 的大小。另見 :ref:`screen_get_width()<class_RenderingDevice_method_screen_get_width>`\ 。
|
||
|
||
\ **注意:**\ 只有 :ref:`RenderingServer.get_rendering_device()<class_RenderingServer_method_get_rendering_device>` 返回的主 **RenderingDevice** 有高度。如果對局部 **RenderingDevice** 呼叫,則會輸出錯誤並返回 :ref:`INVALID_ID<class_RenderingDevice_constant_INVALID_ID>`\ 。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_screen_get_width:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **screen_get_width**\ (\ screen\: :ref:`int<class_int>` = 0\ ) |const| :ref:`🔗<class_RenderingDevice_method_screen_get_width>`
|
||
|
||
返回與給定視窗 ID 圖形 API 本文相配對的視窗寬度(單位為圖元)。雖然參數的名字叫 ``screen``\ ,但返回的是\ *視窗*\ 的大小。另見 :ref:`screen_get_height()<class_RenderingDevice_method_screen_get_height>`\ 。
|
||
|
||
\ **注意:**\ 只有 :ref:`RenderingServer.get_rendering_device()<class_RenderingServer_method_get_rendering_device>` 返回的主 **RenderingDevice** 有寬度。如果對局部 **RenderingDevice** 呼叫,則會輸出錯誤並返回 :ref:`INVALID_ID<class_RenderingDevice_constant_INVALID_ID>`\ 。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_set_resource_name:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **set_resource_name**\ (\ id\: :ref:`RID<class_RID>`, name\: :ref:`String<class_String>`\ ) :ref:`🔗<class_RenderingDevice_method_set_resource_name>`
|
||
|
||
將 ID 為 ``id`` 的資源名稱設定為 ``name``\ 。用於使用 `RenderDoc <https://renderdoc.org/>`__ 等協力廠商工具進行除錯。
|
||
|
||
可以為以下型別的資源命名:紋理、取樣器、頂點緩衝、索引緩衝、uniform 緩衝、紋理緩衝、儲存緩衝、uniform 集緩衝、著色器、算繪管線、計算管線。無法為影格緩衝命名。嘗試為不相容的資源型別命名會輸出錯誤。
|
||
|
||
\ **注意:**\ 引擎以詳細模式運作時(\ :ref:`OS.is_stdout_verbose()<class_OS_method_is_stdout_verbose>` = ``true``\ ),或者使用 ``dev_mode=yes`` SCons 選項編譯引擎構建時,才會設定資源的名稱。圖形驅動也必須支援 Vulkan 擴充 ``VK_EXT_DEBUG_UTILS_EXTENSION_NAME`` 具名資源才能正常工作。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_shader_compile_binary_from_spirv:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`PackedByteArray<class_PackedByteArray>` **shader_compile_binary_from_spirv**\ (\ spirv_data\: :ref:`RDShaderSPIRV<class_RDShaderSPIRV>`, name\: :ref:`String<class_String>` = ""\ ) :ref:`🔗<class_RenderingDevice_method_shader_compile_binary_from_spirv>`
|
||
|
||
從 ``spirv_data`` 編譯二進位著色器,並將編譯得到的二進位資料以 :ref:`PackedByteArray<class_PackedByteArray>` 的形式返回。編譯後的著色器與所使用的 GPU 型號和驅動版本對應;無法在不同的 GPU 型號甚至不同的驅動版本上正常工作。另見 :ref:`shader_compile_spirv_from_source()<class_RenderingDevice_method_shader_compile_spirv_from_source>`\ 。
|
||
|
||
\ ``name`` 是可選的人類可讀名稱,會給予編譯後的著色器,方便組織。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_shader_compile_spirv_from_source:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`RDShaderSPIRV<class_RDShaderSPIRV>` **shader_compile_spirv_from_source**\ (\ shader_source\: :ref:`RDShaderSource<class_RDShaderSource>`, allow_cache\: :ref:`bool<class_bool>` = true\ ) :ref:`🔗<class_RenderingDevice_method_shader_compile_spirv_from_source>`
|
||
|
||
Compiles a SPIR-V from the shader source code in ``shader_source`` and returns the SPIR-V as an :ref:`RDShaderSPIRV<class_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 :ref:`shader_compile_binary_from_spirv()<class_RenderingDevice_method_shader_compile_binary_from_spirv>`.
|
||
|
||
If ``allow_cache`` is ``true``, 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 ``allow_cache`` is ``false``, Godot's shader cache is ignored and the shader will always be recompiled.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_shader_create_from_bytecode:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`RID<class_RID>` **shader_create_from_bytecode**\ (\ binary_data\: :ref:`PackedByteArray<class_PackedByteArray>`, placeholder_rid\: :ref:`RID<class_RID>` = RID()\ ) :ref:`🔗<class_RenderingDevice_method_shader_create_from_bytecode>`
|
||
|
||
根據二進位的已編譯著色器建立新的著色器實例。可以通過返回的 RID 進行存取。
|
||
|
||
RID 使用結束後,應該使用 RenderingDevice 的 :ref:`free_rid()<class_RenderingDevice_method_free_rid>` 方法進行釋放。另見 :ref:`shader_compile_binary_from_spirv()<class_RenderingDevice_method_shader_compile_binary_from_spirv>` 和 :ref:`shader_create_from_spirv()<class_RenderingDevice_method_shader_create_from_spirv>`\ 。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_shader_create_from_spirv:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`RID<class_RID>` **shader_create_from_spirv**\ (\ spirv_data\: :ref:`RDShaderSPIRV<class_RDShaderSPIRV>`, name\: :ref:`String<class_String>` = ""\ ) :ref:`🔗<class_RenderingDevice_method_shader_create_from_spirv>`
|
||
|
||
根據 SPIR-V 中間程式碼建立新的著色器實例。可以通過返回的 RID 進行存取。
|
||
|
||
RID 使用結束後,應該使用 RenderingDevice 的 :ref:`free_rid()<class_RenderingDevice_method_free_rid>` 方法進行釋放。另見 :ref:`shader_compile_spirv_from_source()<class_RenderingDevice_method_shader_compile_spirv_from_source>` 和 :ref:`shader_create_from_bytecode()<class_RenderingDevice_method_shader_create_from_bytecode>`\ 。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_shader_create_placeholder:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`RID<class_RID>` **shader_create_placeholder**\ (\ ) :ref:`🔗<class_RenderingDevice_method_shader_create_placeholder>`
|
||
|
||
透過指派RID 來建立佔位符RID,而不將其初始化以在\ :ref:`shader_create_from_bytecode()<class_RenderingDevice_method_shader_create_from_bytecode>` 中使用。這允許您為著色器建立RID 並將其傳遞,但延遲編譯著色器稍後。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_shader_get_vertex_input_attribute_mask:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **shader_get_vertex_input_attribute_mask**\ (\ shader\: :ref:`RID<class_RID>`\ ) :ref:`🔗<class_RenderingDevice_method_shader_get_vertex_input_attribute_mask>`
|
||
|
||
傳回內部頂點輸入遮罩。在內部,頂點輸入遮罩是由位置組成的無符號整數(透過GLSL 指定。\ ``layout(location = ...) ``\ )輸入變數(在 GLSL 中由 ``in`` 關鍵字指定)。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_storage_buffer_create:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`RID<class_RID>` **storage_buffer_create**\ (\ size_bytes\: :ref:`int<class_int>`, data\: :ref:`PackedByteArray<class_PackedByteArray>` = PackedByteArray(), usage\: |bitfield|\[:ref:`StorageBufferUsage<enum_RenderingDevice_StorageBufferUsage>`\] = 0, creation_bits\: |bitfield|\[:ref:`BufferCreationBits<enum_RenderingDevice_BufferCreationBits>`\] = 0\ ) :ref:`🔗<class_RenderingDevice_method_storage_buffer_create>`
|
||
|
||
建立帶有指定資料 ``data`` 用法為 ``usage`` 的\ `儲存緩衝 <https://vkguide.dev/docs/chapter-4/storage_buffers/>`__\ 。可以通過返回的 RID 進行訪問。
|
||
|
||
RID 使用結束後,應該使用 RenderingServer 的 :ref:`free_rid()<class_RenderingDevice_method_free_rid>` 方法進行釋放。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_submit:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **submit**\ (\ ) :ref:`🔗<class_RenderingDevice_method_submit>`
|
||
|
||
推送影格設定與繪圖命令緩衝,然後將局部裝置標記為目前正在處理(這樣就能夠呼叫 :ref:`sync()<class_RenderingDevice_method_sync>`\ )。
|
||
|
||
\ **注意:**\ 僅在局部 RenderingDevice 上可用。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_sync:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **sync**\ (\ ) :ref:`🔗<class_RenderingDevice_method_sync>`
|
||
|
||
讓 CPU 與 GPU 進行強制同步,部分場合可能需要進行這樣的操作。請只在需要時調用,因為 CPU 與 GPU 的同步存在性能開銷。
|
||
|
||
\ **注意:**\ 僅在局部 RenderingDevice 上可用。
|
||
|
||
\ **注意:**\ 只能在 :ref:`submit()<class_RenderingDevice_method_submit>` 後呼叫 :ref:`sync()<class_RenderingDevice_method_sync>`\ 。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_texture_buffer_create:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`RID<class_RID>` **texture_buffer_create**\ (\ size_bytes\: :ref:`int<class_int>`, format\: :ref:`DataFormat<enum_RenderingDevice_DataFormat>`, data\: :ref:`PackedByteArray<class_PackedByteArray>` = PackedByteArray()\ ) :ref:`🔗<class_RenderingDevice_method_texture_buffer_create>`
|
||
|
||
新建紋理緩衝。可以通過返回的 RID 進行存取。
|
||
|
||
RID 使用結束後,應該使用 RenderingServer 的 :ref:`free_rid()<class_RenderingDevice_method_free_rid>` 方法進行釋放。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_texture_clear:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`Error<enum_@GlobalScope_Error>` **texture_clear**\ (\ texture\: :ref:`RID<class_RID>`, color\: :ref:`Color<class_Color>`, base_mipmap\: :ref:`int<class_int>`, mipmap_count\: :ref:`int<class_int>`, base_layer\: :ref:`int<class_int>`, layer_count\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RenderingDevice_method_texture_clear>`
|
||
|
||
Clears the specified ``texture`` by replacing all of its pixels with the specified ``color``. ``base_mipmap`` and ``mipmap_count`` determine which mipmaps of the texture are affected by this clear operation, while ``base_layer`` and ``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), ``base_layer`` must be ``0`` and ``layer_count`` must be ``1``.
|
||
|
||
\ **Note:** ``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 :ref:`FINAL_ACTION_CONTINUE<class_RenderingDevice_constant_FINAL_ACTION_CONTINUE>`) to clear this texture.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_texture_copy:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`Error<enum_@GlobalScope_Error>` **texture_copy**\ (\ from_texture\: :ref:`RID<class_RID>`, to_texture\: :ref:`RID<class_RID>`, from_pos\: :ref:`Vector3<class_Vector3>`, to_pos\: :ref:`Vector3<class_Vector3>`, size\: :ref:`Vector3<class_Vector3>`, src_mipmap\: :ref:`int<class_int>`, dst_mipmap\: :ref:`int<class_int>`, src_layer\: :ref:`int<class_int>`, dst_layer\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RenderingDevice_method_texture_copy>`
|
||
|
||
將 ``from_texture`` 複製到 ``to_texture``\ ,使用指定的 ``from_pos``\ 、\ ``to_pos`` 和 ``size`` 座標。對於二維紋理,\ ``from_pos``\ 、\ ``to_pos`` 和 ``size`` 的 Z 軸必須為 ``0``\ 。來源和目標的 mipmap/圖層也必須指定,對於沒有 mipmap 或單層紋理的情況,這些參數應為 ``0``\ 。如果紋理複製成功,則返回 :ref:`@GlobalScope.OK<class_@GlobalScope_constant_OK>`\ ,否則返回 :ref:`@GlobalScope.ERR_INVALID_PARAMETER<class_@GlobalScope_constant_ERR_INVALID_PARAMETER>`\ 。
|
||
|
||
\ **注意:**\ 如果使用 ``from_texture`` 紋理的繪圖列表是建立的影格緩衝的一部分,則無法複製。請確保繪圖列表已經完成(並且使用它的顏色/深度紋理沒有設定為 :ref:`FINAL_ACTION_CONTINUE<class_RenderingDevice_constant_FINAL_ACTION_CONTINUE>`\ ),然後再複製紋理。
|
||
|
||
\ **注意:**\ ``from_texture`` 紋理需要獲取 :ref:`TEXTURE_USAGE_CAN_COPY_FROM_BIT<class_RenderingDevice_constant_TEXTURE_USAGE_CAN_COPY_FROM_BIT>`\ 。
|
||
|
||
\ **注意:**\ 如果使用 ``to_texture`` 紋理的繪圖列表是建立的影格緩衝的一部分,則無法複製。請確保繪圖列表已經完成(並且使用它的顏色/深度紋理沒有設定為 :ref:`FINAL_ACTION_CONTINUE<class_RenderingDevice_constant_FINAL_ACTION_CONTINUE>`\ ),然後再複製紋理。
|
||
|
||
\ **注意:**\ ``to_texture`` 紋理需要獲取 :ref:`TEXTURE_USAGE_CAN_COPY_TO_BIT<class_RenderingDevice_constant_TEXTURE_USAGE_CAN_COPY_TO_BIT>`\ 。
|
||
|
||
\ **注意:**\ ``from_texture`` 和 ``to_texture`` 的型別必須相同(顏色或深度)。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_texture_create:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`RID<class_RID>` **texture_create**\ (\ format\: :ref:`RDTextureFormat<class_RDTextureFormat>`, view\: :ref:`RDTextureView<class_RDTextureView>`, data\: :ref:`Array<class_Array>`\[:ref:`PackedByteArray<class_PackedByteArray>`\] = []\ ) :ref:`🔗<class_RenderingDevice_method_texture_create>`
|
||
|
||
Creates a new texture. It can be accessed with the RID that is returned.
|
||
|
||
Once finished with your RID, you will want to free the RID using the RenderingDevice's :ref:`free_rid()<class_RenderingDevice_method_free_rid>` method.
|
||
|
||
\ **Note:** ``data`` takes an :ref:`Array<class_Array>` of :ref:`PackedByteArray<class_PackedByteArray>`\ s. For :ref:`TEXTURE_TYPE_1D<class_RenderingDevice_constant_TEXTURE_TYPE_1D>`, :ref:`TEXTURE_TYPE_2D<class_RenderingDevice_constant_TEXTURE_TYPE_2D>`, and :ref:`TEXTURE_TYPE_3D<class_RenderingDevice_constant_TEXTURE_TYPE_3D>` types, this array should only have one element, a :ref:`PackedByteArray<class_PackedByteArray>` containing all the data for the texture. For ``_ARRAY`` and ``_CUBE`` types, the length should be the same as the number of :ref:`RDTextureFormat.array_layers<class_RDTextureFormat_property_array_layers>` in ``format``.
|
||
|
||
\ **Note:** Not to be confused with :ref:`RenderingServer.texture_2d_create()<class_RenderingServer_method_texture_2d_create>`, which creates the Godot-specific :ref:`Texture2D<class_Texture2D>` resource as opposed to the graphics API's own texture type.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_texture_create_from_extension:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`RID<class_RID>` **texture_create_from_extension**\ (\ type\: :ref:`TextureType<enum_RenderingDevice_TextureType>`, format\: :ref:`DataFormat<enum_RenderingDevice_DataFormat>`, samples\: :ref:`TextureSamples<enum_RenderingDevice_TextureSamples>`, usage_flags\: |bitfield|\[:ref:`TextureUsageBits<enum_RenderingDevice_TextureUsageBits>`\], image\: :ref:`int<class_int>`, width\: :ref:`int<class_int>`, height\: :ref:`int<class_int>`, depth\: :ref:`int<class_int>`, layers\: :ref:`int<class_int>`, mipmaps\: :ref:`int<class_int>` = 1\ ) :ref:`🔗<class_RenderingDevice_method_texture_create_from_extension>`
|
||
|
||
Returns an RID for an existing ``image`` (``VkImage``) with the given ``type``, ``format``, ``samples``, ``usage_flags``, ``width``, ``height``, ``depth``, ``layers``, and ``mipmaps``. This can be used to allow Godot to render onto foreign images.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_texture_create_shared:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`RID<class_RID>` **texture_create_shared**\ (\ view\: :ref:`RDTextureView<class_RDTextureView>`, with_texture\: :ref:`RID<class_RID>`\ ) :ref:`🔗<class_RenderingDevice_method_texture_create_shared>`
|
||
|
||
Creates a shared texture using the specified ``view`` and the texture information from ``with_texture``.
|
||
|
||
This will be freed automatically when the ``with_texture`` is freed.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_texture_create_shared_from_slice:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`RID<class_RID>` **texture_create_shared_from_slice**\ (\ view\: :ref:`RDTextureView<class_RDTextureView>`, with_texture\: :ref:`RID<class_RID>`, layer\: :ref:`int<class_int>`, mipmap\: :ref:`int<class_int>`, mipmaps\: :ref:`int<class_int>` = 1, slice_type\: :ref:`TextureSliceType<enum_RenderingDevice_TextureSliceType>` = 0\ ) :ref:`🔗<class_RenderingDevice_method_texture_create_shared_from_slice>`
|
||
|
||
Creates a shared texture using the specified ``view`` and the texture information from ``with_texture``'s ``layer`` and ``mipmap``. The number of included mipmaps from the original texture can be controlled using the ``mipmaps`` parameter. Only relevant for textures with multiple layers, such as 3D textures, texture arrays and cubemaps. For single-layer textures, use :ref:`texture_create_shared()<class_RenderingDevice_method_texture_create_shared>`.
|
||
|
||
For 2D textures (which only have one layer), ``layer`` must be ``0``.
|
||
|
||
\ **Note:** Layer slicing is only supported for 2D texture arrays, not 3D textures or cubemaps.
|
||
|
||
This will be freed automatically when the ``with_texture`` is freed.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_texture_get_data:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`PackedByteArray<class_PackedByteArray>` **texture_get_data**\ (\ texture\: :ref:`RID<class_RID>`, layer\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RenderingDevice_method_texture_get_data>`
|
||
|
||
Returns the ``texture`` data for the specified ``layer`` as raw binary data. For 2D textures (which only have one layer), ``layer`` must be ``0``.
|
||
|
||
\ **Note:** ``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 :ref:`FINAL_ACTION_CONTINUE<class_RenderingDevice_constant_FINAL_ACTION_CONTINUE>`) to retrieve this texture. Otherwise, an error is printed and an empty :ref:`PackedByteArray<class_PackedByteArray>` is returned.
|
||
|
||
\ **Note:** ``texture`` requires the :ref:`TEXTURE_USAGE_CAN_COPY_FROM_BIT<class_RenderingDevice_constant_TEXTURE_USAGE_CAN_COPY_FROM_BIT>` to be retrieved. Otherwise, an error is printed and an empty :ref:`PackedByteArray<class_PackedByteArray>` is returned.
|
||
|
||
\ **Note:** This method will block the GPU from working until the data is retrieved. Refer to :ref:`texture_get_data_async()<class_RenderingDevice_method_texture_get_data_async>` for an alternative that returns the data in more performant way.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_texture_get_data_async:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`Error<enum_@GlobalScope_Error>` **texture_get_data_async**\ (\ texture\: :ref:`RID<class_RID>`, layer\: :ref:`int<class_int>`, callback\: :ref:`Callable<class_Callable>`\ ) :ref:`🔗<class_RenderingDevice_method_texture_get_data_async>`
|
||
|
||
Asynchronous version of :ref:`texture_get_data()<class_RenderingDevice_method_texture_get_data>`. RenderingDevice will call ``callback`` in a certain amount of frames with the data the texture had at the time of the request.
|
||
|
||
\ **Note:** At the moment, the delay corresponds to the amount of frames specified by :ref:`ProjectSettings.rendering/rendering_device/vsync/frame_queue_size<class_ProjectSettings_property_rendering/rendering_device/vsync/frame_queue_size>`.
|
||
|
||
\ **Note:** 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 :ref:`ProjectSettings.rendering/rendering_device/staging_buffer/texture_download_region_size_px<class_ProjectSettings_property_rendering/rendering_device/staging_buffer/texture_download_region_size_px>` and :ref:`ProjectSettings.rendering/rendering_device/staging_buffer/block_size_kb<class_ProjectSettings_property_rendering/rendering_device/staging_buffer/block_size_kb>` to improve the transfer speed at the cost of extra memory.
|
||
|
||
::
|
||
|
||
func _texture_get_data_callback(array):
|
||
value = array.decode_u32(0)
|
||
|
||
...
|
||
|
||
rd.texture_get_data_async(texture, 0, _texture_get_data_callback)
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_texture_get_format:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`RDTextureFormat<class_RDTextureFormat>` **texture_get_format**\ (\ texture\: :ref:`RID<class_RID>`\ ) :ref:`🔗<class_RenderingDevice_method_texture_get_format>`
|
||
|
||
返回用於生成 MSDF 紋理的源字形大小。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_texture_get_native_handle:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **texture_get_native_handle**\ (\ texture\: :ref:`RID<class_RID>`\ ) :ref:`🔗<class_RenderingDevice_method_texture_get_native_handle>`
|
||
|
||
**已棄用:** Use :ref:`get_driver_resource()<class_RenderingDevice_method_get_driver_resource>` with :ref:`DRIVER_RESOURCE_TEXTURE<class_RenderingDevice_constant_DRIVER_RESOURCE_TEXTURE>` instead.
|
||
|
||
返回該紋理物件的內部圖形控制碼。主要用於 GDExtension 與協力廠商 API 通訊。
|
||
|
||
\ **注意:**\ 這個函式返回的是 ``uint64_t``\ ,內部對應到 ``GLuint``\ (OpenGL)或 ``VkImage``\ (Vulkan)。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_texture_is_discardable:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`bool<class_bool>` **texture_is_discardable**\ (\ texture\: :ref:`RID<class_RID>`\ ) :ref:`🔗<class_RenderingDevice_method_texture_is_discardable>`
|
||
|
||
Returns ``true`` if the ``texture`` is discardable, ``false`` otherwise. See :ref:`RDTextureFormat<class_RDTextureFormat>` or :ref:`texture_set_discardable()<class_RenderingDevice_method_texture_set_discardable>`.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_texture_is_format_supported_for_usage:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`bool<class_bool>` **texture_is_format_supported_for_usage**\ (\ format\: :ref:`DataFormat<enum_RenderingDevice_DataFormat>`, usage_flags\: |bitfield|\[:ref:`TextureUsageBits<enum_RenderingDevice_TextureUsageBits>`\]\ ) |const| :ref:`🔗<class_RenderingDevice_method_texture_is_format_supported_for_usage>`
|
||
|
||
如果指定的格式 ``format`` 支援給定的用途旗標 ``usage_flags``\ ,則返回 ``true``\ ,否則返回 ``false``\ 。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_texture_is_shared:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`bool<class_bool>` **texture_is_shared**\ (\ texture\: :ref:`RID<class_RID>`\ ) :ref:`🔗<class_RenderingDevice_method_texture_is_shared>`
|
||
|
||
如果 ``texture`` 是共用紋理,則返回 ``true``\ ,否則返回 ``false``\ 。見 :ref:`RDTextureView<class_RDTextureView>`\ 。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_texture_is_valid:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`bool<class_bool>` **texture_is_valid**\ (\ texture\: :ref:`RID<class_RID>`\ ) :ref:`🔗<class_RenderingDevice_method_texture_is_valid>`
|
||
|
||
如果 ``texture`` 有效,則返回 ``true``\ ,否則返回 ``false``\ 。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_texture_resolve_multisample:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`Error<enum_@GlobalScope_Error>` **texture_resolve_multisample**\ (\ from_texture\: :ref:`RID<class_RID>`, to_texture\: :ref:`RID<class_RID>`\ ) :ref:`🔗<class_RenderingDevice_method_texture_resolve_multisample>`
|
||
|
||
啟用多重取樣抗鋸齒,將 ``from_texture`` 紋理溶解至 ``to_texture``\ 。啟用後才能夠正常算繪 MSAA 影格緩衝。成功時返回 :ref:`@GlobalScope.OK<class_@GlobalScope_constant_OK>`\ ,否則返回 :ref:`@GlobalScope.ERR_INVALID_PARAMETER<class_@GlobalScope_constant_ERR_INVALID_PARAMETER>`\ 。
|
||
|
||
\ **注意:**\ ``from_texture`` 和 ``to_texture`` 的尺寸、格式、型別(顏色或深度)都必須相同。
|
||
|
||
\ **注意:**\ 如果使用 ``from_texture`` 紋理的繪圖列表是建立的影格緩衝的一部分,則無法複製。請確保繪圖列表已經完成(並且使用它的顏色/深度紋理沒有設定為 :ref:`FINAL_ACTION_CONTINUE<class_RenderingDevice_constant_FINAL_ACTION_CONTINUE>`\ ),然後再複製紋理。
|
||
|
||
\ **注意:**\ ``from_texture`` 紋理需要獲取 :ref:`TEXTURE_USAGE_CAN_COPY_FROM_BIT<class_RenderingDevice_constant_TEXTURE_USAGE_CAN_COPY_FROM_BIT>`\ 。
|
||
|
||
\ **注意:**\ ``from_texture`` 紋理必須為多重取樣,並且必須為 2D 紋理(或者是 3D/立方體貼圖紋理的切片)。
|
||
|
||
\ **注意:**\ 如果使用 ``to_texture`` 紋理的繪圖列表是建立的影格緩衝的一部分,則無法複製。請確保繪圖列表已經完成(並且使用它的顏色/深度紋理沒有設定為 :ref:`FINAL_ACTION_CONTINUE<class_RenderingDevice_constant_FINAL_ACTION_CONTINUE>`\ ),然後再溶解紋理。
|
||
|
||
\ **注意:**\ ``to_texture`` 紋理需要獲取 :ref:`TEXTURE_USAGE_CAN_COPY_TO_BIT<class_RenderingDevice_constant_TEXTURE_USAGE_CAN_COPY_TO_BIT>`\ 。
|
||
|
||
\ **注意:**\ ``from_texture`` 紋理必須\ **不能**\ 是多重取樣,並且必須為 2D 紋理(或者是 3D/立方體貼圖紋理的切片)。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_texture_set_discardable:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **texture_set_discardable**\ (\ texture\: :ref:`RID<class_RID>`, discardable\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_RenderingDevice_method_texture_set_discardable>`
|
||
|
||
Updates the discardable property of ``texture``.
|
||
|
||
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.
|
||
|
||
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.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_texture_update:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`Error<enum_@GlobalScope_Error>` **texture_update**\ (\ texture\: :ref:`RID<class_RID>`, layer\: :ref:`int<class_int>`, data\: :ref:`PackedByteArray<class_PackedByteArray>`\ ) :ref:`🔗<class_RenderingDevice_method_texture_update>`
|
||
|
||
使用新的資料更新紋理資料,會原地替換之前的資料。更新後的紋理資料必須和原有尺寸、格式一致。2D 紋理(只有一層)的 ``layer`` 必須為 ``0``\ 。如果更新成功則返回 :ref:`@GlobalScope.OK<class_@GlobalScope_constant_OK>`\ ,否則返回 :ref:`@GlobalScope.ERR_INVALID_PARAMETER<class_@GlobalScope_constant_ERR_INVALID_PARAMETER>`\ 。
|
||
|
||
\ **注意:**\ 精緻在建立繪圖列表或計算列表時更新紋理。
|
||
|
||
\ **注意:**\ 如果使用 ``texture`` 紋理的繪圖列表是建立的影格緩衝的一部分,則無法更新。請確保繪圖列表已經完成(並且使用它的顏色/深度紋理沒有設定為 :ref:`FINAL_ACTION_CONTINUE<class_RenderingDevice_constant_FINAL_ACTION_CONTINUE>`\ ),然後再更新紋理。
|
||
|
||
\ **注意:**\ ``texture`` 紋理需要獲取 :ref:`TEXTURE_USAGE_CAN_UPDATE_BIT<class_RenderingDevice_constant_TEXTURE_USAGE_CAN_UPDATE_BIT>`\ 。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_uniform_buffer_create:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`RID<class_RID>` **uniform_buffer_create**\ (\ size_bytes\: :ref:`int<class_int>`, data\: :ref:`PackedByteArray<class_PackedByteArray>` = PackedByteArray(), creation_bits\: |bitfield|\[:ref:`BufferCreationBits<enum_RenderingDevice_BufferCreationBits>`\] = 0\ ) :ref:`🔗<class_RenderingDevice_method_uniform_buffer_create>`
|
||
|
||
Creates a new uniform buffer. It can be accessed with the RID that is returned.
|
||
|
||
Once finished with your RID, you will want to free the RID using the RenderingDevice's :ref:`free_rid()<class_RenderingDevice_method_free_rid>` method.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_uniform_set_create:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`RID<class_RID>` **uniform_set_create**\ (\ uniforms\: :ref:`Array<class_Array>`\[:ref:`RDUniform<class_RDUniform>`\], shader\: :ref:`RID<class_RID>`, shader_set\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RenderingDevice_method_uniform_set_create>`
|
||
|
||
Creates a new uniform set. It can be accessed with the RID that is returned.
|
||
|
||
Once finished with your RID, you will want to free the RID using the RenderingDevice's :ref:`free_rid()<class_RenderingDevice_method_free_rid>` method.
|
||
|
||
This will be freed automatically when the ``shader`` or any of the RIDs in the ``uniforms`` is freed.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_uniform_set_is_valid:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`bool<class_bool>` **uniform_set_is_valid**\ (\ uniform_set\: :ref:`RID<class_RID>`\ ) :ref:`🔗<class_RenderingDevice_method_uniform_set_is_valid>`
|
||
|
||
檢查 ``uniform_set`` 是否有效,即是否擁有。
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_vertex_array_create:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`RID<class_RID>` **vertex_array_create**\ (\ vertex_count\: :ref:`int<class_int>`, vertex_format\: :ref:`int<class_int>`, src_buffers\: :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\], offsets\: :ref:`PackedInt64Array<class_PackedInt64Array>` = PackedInt64Array()\ ) :ref:`🔗<class_RenderingDevice_method_vertex_array_create>`
|
||
|
||
Creates a vertex array based on the specified buffers. Optionally, ``offsets`` (in bytes) may be defined for each buffer.
|
||
|
||
Once finished with your RID, you will want to free the RID using the RenderingDevice's :ref:`free_rid()<class_RenderingDevice_method_free_rid>` method.
|
||
|
||
This will be freed automatically when any of the ``src_buffers`` is freed.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_vertex_buffer_create:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`RID<class_RID>` **vertex_buffer_create**\ (\ size_bytes\: :ref:`int<class_int>`, data\: :ref:`PackedByteArray<class_PackedByteArray>` = PackedByteArray(), creation_bits\: |bitfield|\[:ref:`BufferCreationBits<enum_RenderingDevice_BufferCreationBits>`\] = 0\ ) :ref:`🔗<class_RenderingDevice_method_vertex_buffer_create>`
|
||
|
||
Creates a new vertex buffer. It can be accessed with the RID that is returned.
|
||
|
||
Once finished with your RID, you will want to free the RID using the RenderingDevice's :ref:`free_rid()<class_RenderingDevice_method_free_rid>` method.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RenderingDevice_method_vertex_format_create:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **vertex_format_create**\ (\ vertex_descriptions\: :ref:`Array<class_Array>`\[:ref:`RDVertexAttribute<class_RDVertexAttribute>`\]\ ) :ref:`🔗<class_RenderingDevice_method_vertex_format_create>`
|
||
|
||
新建頂點描述為 ``vertex_descriptions`` 的頂點格式。返回與新建頂點格式對應的唯一格式 ID。
|
||
|
||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要使用者覆寫才能生效。)`
|
||
.. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
|
||
.. |const| replace:: :abbr:`const (本方法沒有副作用。不會修改該實例的任何成員變數。)`
|
||
.. |vararg| replace:: :abbr:`vararg (本方法除了這裡描述的參數外,還可以接受任意數量的參數。)`
|
||
.. |constructor| replace:: :abbr:`constructor (本方法用於建構一個型別。)`
|
||
.. |static| replace:: :abbr:`static (本方法無需實例即可呼叫,因此可以直接使用類別名稱呼叫。)`
|
||
.. |operator| replace:: :abbr:`operator (本方法描述將本型別作為左運算元時可用的有效運算子。)`
|
||
.. |bitfield| replace:: :abbr:`BitField (此值是由下列旗標組成的位元遮罩整數。)`
|
||
.. |void| replace:: :abbr:`void (無回傳值。)`
|