Files
libretroadmin fa91ec4b61 GS/OpenGL: shader sources, the program cache and GLProgram without std::string
A GSString (Common/GSString.h, a C89 growable string kept
NUL-terminated, with its own unit test) is what the OpenGL device
assembles a shader's header, macros and code into, in two kept
buffers; the convert vertex shader's source is one too. The program
cache takes sources as pointer and length, hands the program back
through an out parameter, and keeps its filenames on the stack; the
compute program path, which nothing used, and the pre-link callback,
which nothing passed, go. GLProgram's info logs are malloc'd and
logged; the pcsx2_bad_shader_N.txt file a failed compile wrote into
the working directory is not written any more. The GL debug callback
logs from the message in place.
2026-11-03 16:04:47 +01:00
..