Mention user should remove compute shader hint when use set_stage_source

This commit is contained in:
jsjtxietian 2024-09-05 17:16:58 +08:00
parent 7c383767a2
commit 332b129221

View File

@ -23,6 +23,7 @@
<param index="1" name="source" type="String" /> <param index="1" name="source" type="String" />
<description> <description>
Sets [param source] code for the specified shader [param stage]. Equivalent to setting one of [member source_compute], [member source_fragment], [member source_tesselation_control], [member source_tesselation_evaluation] or [member source_vertex]. Sets [param source] code for the specified shader [param stage]. Equivalent to setting one of [member source_compute], [member source_fragment], [member source_tesselation_control], [member source_tesselation_evaluation] or [member source_vertex].
[b]Note:[/b] If you set the compute shader source code using this method directly, remember to remove the Godot-specific hint [code]#[compute][/code].
</description> </description>
</method> </method>
</methods> </methods>