Explorar o código

Update loop unroll docs

Garrett Johnson %!s(int64=4) %!d(string=hai) anos
pai
achega
36420d45dc
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      docs/api/en/materials/ShaderMaterial.html

+ 6 - 0
docs/api/en/materials/ShaderMaterial.html

@@ -54,6 +54,12 @@
 					<li>
 						The loop variable has to be *i*.
 					</li>
+					<li>
+						Array accesses within the loop must include spaces around the index: <b>array[ i ]</b>.
+					</li>
+					<li>
+						The value *UNROLL_LOOP_INDEX* will be replaced with the explicity value of *i* for the given iteration and can be used in preprocessor statements.
+					</li>
 				</ul>
 				<code>
 		#pragma unroll_loop_start