0.2.0-dev Download ZIP
20 lines ·1.1 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="RDPipelineShader" inherits="RefCounted" api_type="core" experimental="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | Pipeline shader (used by [RenderingDevice]). |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | Wraps a shader resource and allows specialization constants to be applied at pipeline creation time. |
| 8 | Used by [method RenderingDevice.raytracing_pipeline_create] for ray generation, miss, and hit shaders. The pipeline selects the required shader stage automatically. |
| 9 | </description> |
| 10 | <tutorials> |
| 11 | </tutorials> |
| 12 | <members> |
| 13 | <member name="shader" type="RID" setter="set_shader" getter="get_shader" default="RID()"> |
| 14 | Shader resource. The required stage is selected by the pipeline. |
| 15 | </member> |
| 16 | <member name="specialization_constants" type="RDPipelineSpecializationConstant[]" setter="set_specialization_constants" getter="get_specialization_constants" default="[]"> |
| 17 | Specialization constants applied to the selected shader stage at pipeline creation time. |
| 18 | </member> |
| 19 | </members> |
| 20 | </class> |