Merge pull request #96599 from jsjtxietian/compute-hint

Mention user should remove compute shader hint when use `set_stage_source`
This commit is contained in:
Rémi Verschelde 2024-09-08 23:22:01 +02:00
commit 81f99eac00
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -23,6 +23,7 @@
<param index="1" name="source" type="String" />
<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].
[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>
</method>
</methods>