GLSL shaders translating (modulo texture fetches).

This commit is contained in:
Ben Vanik
2014-12-27 16:30:54 -08:00
parent 58cff84550
commit 5b2672a1b8
7 changed files with 173 additions and 258 deletions

View File

@@ -27,8 +27,7 @@ class GL4Shader : public Shader {
GLuint program() const { return program_; }
bool PrepareVertexShader(const xenos::xe_gpu_program_cntl_t& program_cntl);
bool PreparePixelShader(const xenos::xe_gpu_program_cntl_t& program_cntl,
GL4Shader* vertex_shader);
bool PreparePixelShader(const xenos::xe_gpu_program_cntl_t& program_cntl);
protected:
bool CompileProgram(std::string source);