mightymandel v16

GPU-based Mandelbrot set explorer

vram.c File Reference

(v16)

#include <GL/glew.h>
#include <stdio.h>
#include "utility.h"
#include "logging.h"
+ Include dependency graph for vram.c:

Go to the source code of this file.

Functions

int vram_nvidia ()
 Determine available video memory on NVIDIA systems.
int vram_ati ()
 Determine available video memory on AMD/ATi systems.
int vram_available ()
 Determine available video memory.

Function Documentation

int vram_ati ( )

Determine available video memory on AMD/ATi systems.

https://www.opengl.org/registry/specs/ATI/meminfo.txt

Returns
Available video memory in kB.

Definition at line 39 of file vram.c.

References log_message, and LOG_WARN.

Referenced by vram_available().

+ Here is the caller graph for this function:

int vram_available ( )

Determine available video memory.

Returns
Available video memory in kB.

Definition at line 53 of file vram.c.

References max(), vram_ati(), and vram_nvidia().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vram_nvidia ( )

Determine available video memory on NVIDIA systems.

https://www.opengl.org/registry/specs/NVX/gpu_memory_info.txt

Returns
Available video memory in kB.

Definition at line 18 of file vram.c.

References log_message, and LOG_WARN.

Referenced by vram_available().

+ Here is the caller graph for this function: