X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=resource_pool.h;h=35b3b3b5b025d4e8c00fbcbdbe814c7548d101bb;hp=f919536ec0cbdacd3a652f6ebed8f21756fab8e1;hb=0a1ab3ca0727595965a26cbbd20965d775088320;hpb=2d8043bb837b45c9ae509450b3e1b1eb545e44b9 diff --git a/resource_pool.h b/resource_pool.h index f919536..35b3b3b 100644 --- a/resource_pool.h +++ b/resource_pool.h @@ -141,6 +141,16 @@ private: // Same, for VAOs. void shrink_vao_freelist(void *context, size_t max_length); + // Increment the refcount, or take it off the freelist if it's zero. + void increment_program_refcount(GLuint program_num); + + // If debugging is on, output shader to a temporary file, for easier debugging. + void output_debug_shader(const std::string &shader_src, const std::string &suffix); + + // For a new program that's not a clone of anything, insert it into the right + // structures: Give it a refcount, and set up the program_masters / program_instances lists. + void add_master_program(GLuint program_num); + // Link the given vertex and fragment shaders into a full GLSL program. // See compile_glsl_program() for explanation of . static GLuint link_program(GLuint vs_obj,