Texture3D.xml 1.7 KB

1234567891011121314151617181920212223242526272829303132
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="Texture3D" inherits="TextureLayered" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
  3. <brief_description>
  4. Texture with 3 dimensions.
  5. </brief_description>
  6. <description>
  7. Texture3D is a 3-dimensional [Texture] that has a width, height, and depth. See also [TextureArray].
  8. [b]Note:[/b] [Texture3D]s can only be sampled in shaders in the GLES3 backend. In GLES2, their data can be accessed via scripting, but there is no way to render them in a hardware-accelerated manner.
  9. </description>
  10. <tutorials>
  11. </tutorials>
  12. <methods>
  13. <method name="create">
  14. <return type="void" />
  15. <argument index="0" name="width" type="int" />
  16. <argument index="1" name="height" type="int" />
  17. <argument index="2" name="depth" type="int" />
  18. <argument index="3" name="format" type="int" enum="Image.Format" />
  19. <argument index="4" name="flags" type="int" default="4" />
  20. <description>
  21. Creates the Texture3D with specified [code]width[/code], [code]height[/code], and [code]depth[/code]. See [enum Image.Format] for [code]format[/code] options. See [enum TextureLayered.Flags] enumerator for [code]flags[/code] options.
  22. </description>
  23. </method>
  24. </methods>
  25. <members>
  26. <member name="data" type="Dictionary" setter="_set_data" getter="_get_data" overrides="TextureLayered" default="{&quot;depth&quot;: 0,&quot;flags&quot;: 4,&quot;format&quot;: 37,&quot;height&quot;: 0,&quot;layers&quot;: [ ],&quot;width&quot;: 0}" />
  27. <member name="flags" type="int" setter="set_flags" getter="get_flags" overrides="TextureLayered" default="4" />
  28. </members>
  29. <constants>
  30. </constants>
  31. </class>