From 332b1292210d86b7d3ca8c6ca664e262383798d4 Mon Sep 17 00:00:00 2001 From: jsjtxietian Date: Thu, 5 Sep 2024 17:16:58 +0800 Subject: [PATCH] Mention user should remove compute shader hint when use `set_stage_source` --- doc/classes/RDShaderSource.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/RDShaderSource.xml b/doc/classes/RDShaderSource.xml index 062c22f11f7..a7b897d56e6 100644 --- a/doc/classes/RDShaderSource.xml +++ b/doc/classes/RDShaderSource.xml @@ -23,6 +23,7 @@ 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].