Class TTextureMemoryProfiler

Unit

Declaration

type TTextureMemoryProfiler = class(TObject)

Description

OpenGL texture memory profiler. See TextureMemoryProfiler for usage documentation.

Source: src/base_rendering/castleglimages_texturememoryprofiler.inc (line 25).

Hierarchy

  • TObject
  • TTextureMemoryProfiler

Overview

Methods

Public constructor Create;
Public destructor Destroy; override;
Public procedure Allocate(const TextureId: TGLTextureId; const Url, ImageFormat: string; const Size: Int64; const Mipmaps: boolean; const Width, Height, Depth: Integer);
Public procedure Deallocate(const TextureId: TGLTextureId);
Public function Summary: string;
Public class function MipmapsSize(const Image: TEncodedImage): Int64;

Properties

Public property Enabled: boolean read FEnabled write FEnabled;

Description

Methods

Public constructor Create;

This item has no description.

Source: src/base_rendering/castleglimages_texturememoryprofiler.inc (line 45).

Public destructor Destroy; override;

This item has no description.

Source: src/base_rendering/castleglimages_texturememoryprofiler.inc (line 46).

Public procedure Allocate(const TextureId: TGLTextureId; const Url, ImageFormat: string; const Size: Int64; const Mipmaps: boolean; const Width, Height, Depth: Integer);

Notify about texture memory allocation. This should be used only by code doing direct OpenGL operations.

Source: src/base_rendering/castleglimages_texturememoryprofiler.inc (line 51).

Public procedure Deallocate(const TextureId: TGLTextureId);

Notify about texture memory deallocation. This should be used only by code doing direct OpenGL operations.

Source: src/base_rendering/castleglimages_texturememoryprofiler.inc (line 57).

Public function Summary: string;

This item has no description.

Source: src/base_rendering/castleglimages_texturememoryprofiler.inc (line 59).

Public class function MipmapsSize(const Image: TEncodedImage): Int64;

Helper function to calculate memory needed by all mipmaps of given Image. Assumes that all mipmaps are generated, as by GenerateMipmap call.

Source: src/base_rendering/castleglimages_texturememoryprofiler.inc (line 63).

Properties

Public property Enabled: boolean read FEnabled write FEnabled;

This item has no description.

Source: src/base_rendering/castleglimages_texturememoryprofiler.inc (line 47).


Generated by PasDoc 0.17.0.snapshot.