Files
godot-docs-l10n/classes/zh_Hant/class_compressedtexture3d.rst

95 lines
3.8 KiB
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

:github_url: hide
.. _class_CompressedTexture3D:
CompressedTexture3D
===================
**繼承:** :ref:`Texture3D<class_Texture3D>` **<** :ref:`Texture<class_Texture>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
三維紋理,可選擇壓縮。
.. rst-class:: classref-introduction-group
說明
----
**CompressedTexture3D**:ref:`ImageTexture3D<class_ImageTexture3D>` 的 VRAM 壓縮對應物。\ **CompressedTexture3D** 檔案的檔案副檔名為 ``.ctex3d``\ 。這種檔案格式是 Godot 內部使用的;它是通過匯入系統匯入其他圖像格式建立的。
\ **CompressedTexture3D** 使用 VRAM 壓縮,這可以在算繪紋理時減少 GPU 的記憶體使用量。這也縮短了載入時間因為與使用無失真壓縮的紋理相比VRAM 壓縮的紋理載入速度更快。VRAM 壓縮會表現出明顯的偽影,並且它旨在用於 3D 算繪,而不是 2D。
有關 3D 紋理的一般描述,請參閱 :ref:`Texture3D<class_Texture3D>`\ 。
.. rst-class:: classref-reftable-group
屬性
----
.. table::
:widths: auto
+-----------------------------+----------------------------------------------------------------+--------+
| :ref:`String<class_String>` | :ref:`load_path<class_CompressedTexture3D_property_load_path>` | ``""`` |
+-----------------------------+----------------------------------------------------------------+--------+
.. rst-class:: classref-reftable-group
方法
----
.. table::
:widths: auto
+---------------------------------------+----------------------------------------------------------------------------------------------+
| :ref:`Error<enum_@GlobalScope_Error>` | :ref:`load<class_CompressedTexture3D_method_load>`\ (\ path\: :ref:`String<class_String>`\ ) |
+---------------------------------------+----------------------------------------------------------------------------------------------+
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
屬性說明
--------
.. _class_CompressedTexture3D_property_load_path:
.. rst-class:: classref-property
:ref:`String<class_String>` **load_path** = ``""`` :ref:`🔗<class_CompressedTexture3D_property_load_path>`
.. rst-class:: classref-property-setget
- :ref:`Error<enum_@GlobalScope_Error>` **load**\ (\ path\: :ref:`String<class_String>`\ )
- :ref:`String<class_String>` **get_load_path**\ (\ )
該 **CompressedTexture3D** 的檔路徑,指向 ``.ctex3d`` 檔案。
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
方法說明
--------
.. _class_CompressedTexture3D_method_load:
.. rst-class:: classref-method
:ref:`Error<enum_@GlobalScope_Error>` **load**\ (\ path\: :ref:`String<class_String>`\ ) :ref:`🔗<class_CompressedTexture3D_method_load>`
從指定的路徑 ``path`` 載入紋理。
.. |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 (無回傳值。)`