소스 검색

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: