From 2ebc92a8dcf00a2a32b26b23bf4eebecaca374d0 Mon Sep 17 00:00:00 2001 From: Axel Isouard Date: Wed, 25 Jul 2012 12:46:37 +0200 Subject: [PATCH] writing a GLSL caching feature, will create a file for each compiled shader, and automatically remove no longer existing cached shaders --- gl_cache.c | 5 +++++ gl_cache.h | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 gl_cache.c create mode 100644 gl_cache.h diff --git a/gl_cache.c b/gl_cache.c new file mode 100644 index 00000000..0574fd75 --- /dev/null +++ b/gl_cache.c @@ -0,0 +1,5 @@ +#include "gl_cache.h" + +void GL_Cache_Init(void) +{ +} diff --git a/gl_cache.h b/gl_cache.h new file mode 100644 index 00000000..dde21425 --- /dev/null +++ b/gl_cache.h @@ -0,0 +1,10 @@ +#define GL_CACHE_VERSION 1 + +typedefstruct gl_cache_header_s +{ + int version; + int crc; + int length; +} gl_cache_header_t; + +void GL_Cache_Init(void); -- 2.39.2