class_shaderincludedb.rst 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/ShaderIncludeDB.xml.
  6. .. _class_ShaderIncludeDB:
  7. ShaderIncludeDB
  8. ===============
  9. **Inherits:** :ref:`Object<class_Object>`
  10. Internal database of built in shader include files.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. This object contains shader fragments from Godot's internal shaders. These can be used when access to internal uniform buffers and/or internal functions is required for instance when composing compositor effects or compute shaders. Only fragments for the current rendering device are loaded.
  15. .. rst-class:: classref-reftable-group
  16. Methods
  17. -------
  18. .. table::
  19. :widths: auto
  20. +---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  21. | :ref:`String<class_String>` | :ref:`get_built_in_include_file<class_ShaderIncludeDB_method_get_built_in_include_file>`\ (\ filename\: :ref:`String<class_String>`\ ) |static| |
  22. +---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`bool<class_bool>` | :ref:`has_built_in_include_file<class_ShaderIncludeDB_method_has_built_in_include_file>`\ (\ filename\: :ref:`String<class_String>`\ ) |static| |
  24. +---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  25. | :ref:`PackedStringArray<class_PackedStringArray>` | :ref:`list_built_in_include_files<class_ShaderIncludeDB_method_list_built_in_include_files>`\ (\ ) |static| |
  26. +---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  27. .. rst-class:: classref-section-separator
  28. ----
  29. .. rst-class:: classref-descriptions-group
  30. Method Descriptions
  31. -------------------
  32. .. _class_ShaderIncludeDB_method_get_built_in_include_file:
  33. .. rst-class:: classref-method
  34. :ref:`String<class_String>` **get_built_in_include_file**\ (\ filename\: :ref:`String<class_String>`\ ) |static| :ref:`🔗<class_ShaderIncludeDB_method_get_built_in_include_file>`
  35. Returns the code for the built-in shader fragment. You can also access this in your shader code through ``#include "filename"``.
  36. .. rst-class:: classref-item-separator
  37. ----
  38. .. _class_ShaderIncludeDB_method_has_built_in_include_file:
  39. .. rst-class:: classref-method
  40. :ref:`bool<class_bool>` **has_built_in_include_file**\ (\ filename\: :ref:`String<class_String>`\ ) |static| :ref:`🔗<class_ShaderIncludeDB_method_has_built_in_include_file>`
  41. Returns ``true`` if an include file with this name exists.
  42. .. rst-class:: classref-item-separator
  43. ----
  44. .. _class_ShaderIncludeDB_method_list_built_in_include_files:
  45. .. rst-class:: classref-method
  46. :ref:`PackedStringArray<class_PackedStringArray>` **list_built_in_include_files**\ (\ ) |static| :ref:`🔗<class_ShaderIncludeDB_method_list_built_in_include_files>`
  47. Returns a list of built-in include files that are currently registered.
  48. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  49. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  50. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  51. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  52. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  53. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  54. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  55. .. |void| replace:: :abbr:`void (No return value.)`