0.2.0-dev Download ZIP
22 lines ·1.0 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="UniformSetCacheRD" inherits="Object" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | Uniform set cache manager for Rendering Device based renderers. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | Uniform set cache manager for [RenderingDevice]-based renderers. Provides a way to create a uniform set and reuse it in subsequent calls for as long as the uniform set exists. Uniform set will automatically be cleaned up when dependent objects are freed. |
| 8 | </description> |
| 9 | <tutorials> |
| 10 | </tutorials> |
| 11 | <methods> |
| 12 | <method name="get_cache" qualifiers="static"> |
| 13 | <return type="RID" /> |
| 14 | <param index="0" name="shader" type="RID" /> |
| 15 | <param index="1" name="set" type="int" /> |
| 16 | <param index="2" name="uniforms" type="RDUniform[]" /> |
| 17 | <description> |
| 18 | Creates/returns a cached uniform set based on the provided uniforms for a given shader. |
| 19 | </description> |
| 20 | </method> |
| 21 | </methods> |
| 22 | </class> |