Explorar el Código

Fix documentation for 2D array textures

Alex Gordon hace 5 años
padre
commit
101d334a5d
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      src/Engines/Extensions/engine.rawTexture.ts
  2. 1 1
      src/Engines/thinEngine.ts

+ 1 - 1
src/Engines/Extensions/engine.rawTexture.ts

@@ -184,7 +184,7 @@ declare module "../../Engines/engine" {
          * @param samplingMode defines the required sampling mode (like Texture.NEAREST_SAMPLINGMODE)
          * @param compression defines the compressed used (can be null)
          * @param textureType defines the compressed used (can be null)
-         * @returns a new raw 3D texture (stored in an InternalTexture)
+         * @returns a new raw 2D array texture (stored in an InternalTexture)
          */
         createRawTexture2DArray(data: Nullable<ArrayBufferView>, width: number, height: number, depth: number, format: number, generateMipMaps: boolean, invertY: boolean, samplingMode: number, compression: Nullable<string>, textureType: number): InternalTexture;
 

+ 1 - 1
src/Engines/thinEngine.ts

@@ -2878,7 +2878,7 @@ export class ThinEngine {
      * @param samplingMode defines the required sampling mode (like Texture.NEAREST_SAMPLINGMODE)
      * @param compression defines the compressed used (can be null)
      * @param textureType defines the compressed used (can be null)
-     * @returns a new raw 3D texture (stored in an InternalTexture)
+     * @returns a new raw 2D array texture (stored in an InternalTexture)
      */
     public createRawTexture2DArray(data: Nullable<ArrayBufferView>, width: number, height: number, depth: number, format: number, generateMipMaps: boolean, invertY: boolean, samplingMode: number, compression: Nullable<string> = null, textureType = Constants.TEXTURETYPE_UNSIGNED_INT): InternalTexture {
         throw _DevTools.WarnImport("Engine.RawTexture");