浏览代码

Core: Fix JSDoc. (#33569)

Michael Herzog 2 月之前
父节点
当前提交
bac44f15a0
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/nodes/accessors/TextureNode.js
  2. 1 1
      src/nodes/display/PassNode.js

+ 1 - 1
src/nodes/accessors/TextureNode.js

@@ -813,7 +813,7 @@ class TextureNode extends UniformNode {
 	/**
 	 * Gathers four texels from the texture.
 	 *
-	 * @param {[Node<int>]} gatherNode - The index of the channel to read. This must be in range [0, 3] and a compile-time constant.
+	 * @param {Node<int>} gatherNode - The index of the channel to read. This must be in range [0, 3] and a compile-time constant.
 	 * @return {TextureNode} A texture node representing the texture sample.
 	 */
 	gather( gatherNode = 0 ) {

+ 1 - 1
src/nodes/display/PassNode.js

@@ -318,7 +318,7 @@ class PassNode extends TempNode {
 		 * A dictionary holding the internal result textures.
 		 *
 		 * @private
-		 * @type {{ output: Texture, depth?: DepthTexture }}
+		 * @type {{ output: Texture, depth: ?DepthTexture }}
 		 */
 		this._textures = {
 			output: renderTarget.texture

粤ICP备19079148号