Class TGLMemoryInfo
Unit
Declaration
type TGLMemoryInfo = class(TObject)
Description
OpenGL memory information.
Hierarchy
- TObject
- TGLMemoryInfo
Overview
Fields
Total: TGLint; |
|
Current: TGLint; |
|
CurrentVbo: TGLint; |
|
CurrentTexture: TGLint; |
|
CurrentRenderbuffer: TGLint; |
Methods
constructor Create; |
|
procedure Refresh; |
|
function LessTextureMemoryThan(const RequiredMemoryKb: Integer): Boolean; |
Description
Fields
Total: TGLint; |
|
Total and current memory available, in Kb. May be zero if unknown (only some NVidia GPUs support this). |
Current: TGLint; |
|
Total and current memory available, in Kb. May be zero if unknown (only some NVidia GPUs support this). |
CurrentVbo: TGLint; |
|
Current memory free for a particular feature, in Kb. May be zero if unknown (only some AMD GPUs support this). |
CurrentTexture: TGLint; |
|
Current memory free for a particular feature, in Kb. May be zero if unknown (only some AMD GPUs support this). |
CurrentRenderbuffer: TGLint; |
|
Current memory free for a particular feature, in Kb. May be zero if unknown (only some AMD GPUs support this). |
Methods
constructor Create; |
|
This item has no description. |
procedure Refresh; |
|
This item has no description. |
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-snapshot.