Skip to content

RDPipelineShader

Inherits: RefCounted < Object

Pipeline shader (used by RenderingDevice).

Wraps a shader resource and allows specialization constants to be applied at pipeline creation time.

Used by RenderingDevice.raytracing_pipeline_create() for ray generation, miss, and hit shaders. The pipeline selects the required shader stage automatically.

Type Name Default
RID shader RID()
Array[RDPipelineSpecializationConstant] specialization_constants []

shader

RID shader = RID()

Shader resource. The required stage is selected by the pipeline.

specialization_constants

Array[RDPipelineSpecializationConstant] specialization_constants = []

Specialization constants applied to the selected shader stage at pipeline creation time.