#include "main/glheader.h"
#include "main/mtypes.h"
#include "main/imports.h"
#include "shader/prog_cache.h"
#include "shader/program.h"
Data Structures | |
struct | cache_item |
struct | gl_program_cache |
Functions | |
static GLuint | hash_key (const void *key, GLuint key_size) |
Compute hash index from state key. | |
static void | rehash (struct gl_program_cache *cache) |
Rebuild/expand the hash table to accomodate more entries. | |
static void | clear_cache (GLcontext *ctx, struct gl_program_cache *cache) |
struct gl_program_cache * | _mesa_new_program_cache (void) |
void | _mesa_delete_program_cache (GLcontext *ctx, struct gl_program_cache *cache) |
struct gl_program * | _mesa_search_program_cache (struct gl_program_cache *cache, const void *key, GLuint keysize) |
void | _mesa_program_cache_insert (GLcontext *ctx, struct gl_program_cache *cache, const void *key, GLuint keysize, struct gl_program *program) |
void _mesa_delete_program_cache | ( | GLcontext * | ctx, | |
struct gl_program_cache * | cache | |||
) |
struct gl_program_cache* _mesa_new_program_cache | ( | void | ) | [read] |
void _mesa_program_cache_insert | ( | GLcontext * | ctx, | |
struct gl_program_cache * | cache, | |||
const void * | key, | |||
GLuint | keysize, | |||
struct gl_program * | program | |||
) |
struct gl_program* _mesa_search_program_cache | ( | struct gl_program_cache * | cache, | |
const void * | key, | |||
GLuint | keysize | |||
) | [read] |
static void clear_cache | ( | GLcontext * | ctx, | |
struct gl_program_cache * | cache | |||
) | [static] |
static GLuint hash_key | ( | const void * | key, | |
GLuint | key_size | |||
) | [static] |
Compute hash index from state key.
static void rehash | ( | struct gl_program_cache * | cache | ) | [static] |
Rebuild/expand the hash table to accomodate more entries.