Przeglądaj źródła

docs: Add updateRanges property and methods for texture updates (#31477)

Andrea Gargaro 8 miesięcy temu
rodzic
commit
e870e86754
1 zmienionych plików z 16 dodań i 0 usunięć
  1. 16 0
      docs/api/en/textures/Texture.html

+ 16 - 0
docs/api/en/textures/Texture.html

@@ -292,6 +292,12 @@
 			transformations.
 		</p>
 
+		<h3>[property:Array updateRanges]</h3>
+		<p>
+			This can be used to only update a subregion or specific rows of the texture (for example, just 
+			the first 3 rows). Use the [page:Texture.addUpdateRange .addUpdateRange] function to add ranges to this array.
+		</p>
+
 		<h2>Methods</h2>
 
 		<p>
@@ -332,6 +338,16 @@
 			[page:Texture.wrapT .wrapT] and [page:Texture.flipY .flipY] properties.
 		</p>
 
+		<h3>[method:undefined addUpdateRange]( [param:number start], [param:number count] )</h3>
+		<p>
+			Adds a range of data in the data texture to be updated on the GPU.
+		</p>
+
+		<h3>[method:undefined clearUpdateRanges]()</h3>
+		<p>
+			Clears the update ranges.
+		</p>
+
 		<h2>Source</h2>
 
 		<p>

粤ICP备19079148号