Class TGLMemoryInfo
Unit
Declaration
type TGLMemoryInfo = class(TObject)
Description
OpenGL memory information.
Information comes from either
NVX_gpu_memory_info for NVidia GPUs
ATI_meminfo for AMD GPUs
See the respective extension documentation for more information.
As the two extensions (NVidia and AMD) expose somewhat different information, we do not try to present "uniform" API that hides their differences (because it seems we cannot). Simply be prepared that some sets of fields below will be always zero.
Source: base_rendering/castleglutils_features.inc (line 54).
Hierarchy
- TObject
- TGLMemoryInfo
Overview
Fields
| Public | DedicatedVideoMemory: TGLint; |
| Public | TotalAvailableMemory: TGLint; |
| Public | CurrentAvailableVideoMemory: TGLint; |
| Public | VboFreeMemory: TGLint; |
| Public | TextureFreeMemory: TGLint; |
| Public | RenderbufferFreeMemory: TGLint; |
Methods
| Public | constructor Create; |
| Public | procedure Refresh; |
| Public | function LessTextureMemoryThan(const RequiredMemoryKb: Integer): Boolean; |
Description
Fields
| Public | DedicatedVideoMemory: TGLint; |
|
Dedicated video memory, total size (in kb) of the GPU memory. Zero if unknown. Available only on (some) NVidia GPUs. Source: base_rendering/castleglutils_features.inc (line 61). | |
| Public | TotalAvailableMemory: TGLint; |
|
Total available memory, total size (in Kb) of the memory available for allocations. Zero if unknown. Available only on (some) NVidia GPUs. Source: base_rendering/castleglutils_features.inc (line 67). | |
| Public | CurrentAvailableVideoMemory: TGLint; |
|
Currently available dedicated video memory (in kb), currently unused GPU memory. Zero if unknown. Available only on (some) NVidia GPUs. Source: base_rendering/castleglutils_features.inc (line 73). | |
| Public | VboFreeMemory: TGLint; |
|
Current memory free for a particular feature, in Kb. Zero if unknown. Available only on (some) AMD GPUs. Source: base_rendering/castleglutils_features.inc (line 78). | |
| Public | TextureFreeMemory: TGLint; |
|
Current memory free for a particular feature, in Kb. Zero if unknown. Available only on (some) AMD GPUs. Source: base_rendering/castleglutils_features.inc (line 78). | |
| Public | RenderbufferFreeMemory: TGLint; |
|
Current memory free for a particular feature, in Kb. Zero if unknown. Available only on (some) AMD GPUs. Source: base_rendering/castleglutils_features.inc (line 78). | |
Methods
| Public | constructor Create; |
|
This item has no description. Source: base_rendering/castleglutils_features.inc (line 80). | |
| Public | procedure Refresh; |
|
This item has no description. Source: base_rendering/castleglutils_features.inc (line 81). | |
| Public | function LessTextureMemoryThan(const RequiredMemoryKb: Integer): Boolean; |
|
Detect GPUs with low texture memory. Looks at CurrentAvailableVideoMemory or TextureFreeMemory, 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). Source: base_rendering/castleglutils_features.inc (line 90). | |
Generated by PasDoc 0.17.0.snapshot.