浏览代码

Merge pull request #6600 from ctwobosius/compute-shader-renderer-note

Add note that Compute Shaders only work with a Vulkan renderer
Max Hilbrunner 2 年之前
父节点
当前提交
93b6e0977b
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      tutorials/shaders/compute_shaders.rst

+ 3 - 1
tutorials/shaders/compute_shaders.rst

@@ -30,7 +30,9 @@ So now lets work with a compute shader to see how it really works.
 Creating a ComputeShader
 ------------------------
 
-To begin using compute shaders, create a new text file called "compute_example.glsl". When you write compute shaders in Godot, you write them in GLSL directly. The Godot shader language is based off of GLSL so if you are familiar with normal shaders in Godot the syntax below will look somewhat familiar.
+To begin using compute shaders, ensure you are using a Vulkan based renderer (the Forward+ or Mobile options), as compute shaders are currently only supported on Vulkan.
+
+Create a new text file called "compute_example.glsl". When you write compute shaders in Godot, you write them in GLSL directly. The Godot shader language is based off of GLSL so if you are familiar with normal shaders in Godot the syntax below will look somewhat familiar.
 
 Let's take a look at this compute shader code: