rawTexture3D.d.ts 1.7 KB

123456789101112131415161718192021222324252627282930313233
  1. import type { Scene } from "../../scene";
  2. import { Texture } from "./texture";
  3. import "../../Engines/Extensions/engine.rawTexture";
  4. import type { Nullable } from "../../types";
  5. /**
  6. * Class used to store 3D textures containing user data
  7. */
  8. export declare class RawTexture3D extends Texture {
  9. /** Gets or sets the texture format to use */
  10. format: number;
  11. /**
  12. * Create a new RawTexture3D
  13. * @param data defines the data of the texture
  14. * @param width defines the width of the texture
  15. * @param height defines the height of the texture
  16. * @param depth defines the depth of the texture
  17. * @param format defines the texture format to use
  18. * @param scene defines the hosting scene
  19. * @param generateMipMaps defines a boolean indicating if mip levels should be generated (true by default)
  20. * @param invertY defines if texture must be stored with Y axis inverted
  21. * @param samplingMode defines the sampling mode to use (Texture.TRILINEAR_SAMPLINGMODE by default)
  22. * @param textureType defines the texture Type (Engine.TEXTURETYPE_UNSIGNED_INT, Engine.TEXTURETYPE_FLOAT...)
  23. * @param creationFlags specific flags to use when creating the texture (Constants.TEXTURE_CREATIONFLAG_STORAGE for storage textures, for eg)
  24. */
  25. constructor(data: Nullable<ArrayBufferView>, width: number, height: number, depth: number,
  26. /** Gets or sets the texture format to use */
  27. format: number, scene: Scene, generateMipMaps?: boolean, invertY?: boolean, samplingMode?: number, textureType?: number, creationFlags?: number);
  28. /**
  29. * Update the texture with new data
  30. * @param data defines the data to store in the texture
  31. */
  32. update(data: ArrayBufferView): void;
  33. }