Class TGLMemoryInfo

Unit

Declaration

type TGLMemoryInfo = class(TObject)

Description

OpenGL memory information.

Hierarchy

  • TObject
  • TGLMemoryInfo

Overview

Fields

Public Total: TGLint;
Public Current: TGLint;
Public CurrentVbo: TGLint;
Public CurrentTexture: TGLint;
Public CurrentRenderbuffer: TGLint;

Methods

Public constructor Create;
Public procedure Refresh;
Public function LessTextureMemoryThan(const RequiredMemoryKb: Integer): Boolean;

Description

Fields

Public Total: TGLint;

Total and current memory available, in Kb. May be zero if unknown (only some NVidia GPUs support this).

Public Current: TGLint;

Total and current memory available, in Kb. May be zero if unknown (only some NVidia GPUs support this).

Public CurrentVbo: TGLint;

Current memory free for a particular feature, in Kb. May be zero if unknown (only some AMD GPUs support this).

Public CurrentTexture: TGLint;

Current memory free for a particular feature, in Kb. May be zero if unknown (only some AMD GPUs support this).

Public CurrentRenderbuffer: TGLint;

Current memory free for a particular feature, in Kb. May be zero if unknown (only some AMD GPUs support this).

Methods

Public constructor Create;
 
Public procedure Refresh;
 
Public function LessTextureMemoryThan(const RequiredMemoryKb: Integer): Boolean;

Detect GPUs with low texture memory. Looks at Current or CurrentTexture, whichever is available.

This is useful to detect at runtime when to use e.g. compressed textures (S3TC and such) or downscaled textures (using GLTextureScale or TextureLoadingScale).


Generated by PasDoc 0.16.0.