Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
RDPipelineShader
实验性: This class may be changed or removed in future versions.
继承: RefCounted < Object
管线着色器(由 RenderingDevice 使用)。
描述
封装一个着色器资源,并允许在管线创建时应用特化常量。
该对象由 RenderingDevice.raytracing_pipeline_create() 用于光线生成、未命中及命中着色器。管线会自动选择所需的着色器阶段。
属性
|
||
|
属性说明
着色器资源。管线会自动选择所需的着色器阶段。
Array[RDPipelineSpecializationConstant] specialization_constants = [] 🔗
void set_specialization_constants(value: Array[RDPipelineSpecializationConstant])
Array[RDPipelineSpecializationConstant] get_specialization_constants()
在管线创建时,应用于所选着色器阶段的特化常量。