소스 검색

Merge pull request #2702 from Chaosus/do_while

Added "do while" to flow control shader description
Yuri Roubinsky 6 년 전
부모
커밋
23bade0434
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      tutorials/shading/shading_reference/shading_language.rst

+ 4 - 0
tutorials/shading/shading_reference/shading_language.rst

@@ -341,6 +341,10 @@ Godot Shading language supports the most common types of flow control:
 
 
     }
     }
 
 
+	// do while
+	do {
+
+	} while(true);
 
 
 Keep in mind that, in modern GPUs, an infinite loop can exist and can freeze your application (including editor).
 Keep in mind that, in modern GPUs, an infinite loop can exist and can freeze your application (including editor).
 Godot can't protect you from this, so be careful not to make this mistake!
 Godot can't protect you from this, so be careful not to make this mistake!