renderTargetCreationOptions.ts 933 B

1234567891011121314151617181920212223242526
  1. /**
  2. * Define options used to create a render target texture
  3. */
  4. export class RenderTargetCreationOptions {
  5. /**
  6. * Specifies if mipmaps must be created. If undefined, the value from generateMipMaps is taken instead
  7. */
  8. createMipMaps?: boolean;
  9. /**
  10. * Specifies if mipmaps must be generated
  11. */
  12. generateMipMaps?: boolean;
  13. /** Specifies whether or not a depth should be allocated in the texture (true by default) */
  14. generateDepthBuffer?: boolean;
  15. /** Specifies whether or not a stencil should be allocated in the texture (false by default)*/
  16. generateStencilBuffer?: boolean;
  17. /** Defines texture type (int by default) */
  18. type?: number;
  19. /** Defines sampling mode (trilinear by default) */
  20. samplingMode?: number;
  21. /** Defines format (RGBA by default) */
  22. format?: number;
  23. /** Defines sample count (1 by default) */
  24. samples?: number;
  25. }