Changed the OpenGL part and the GLSL shaders to use UBO and
authorEleni Maria Stea <estea@igalia.com>
Thu, 15 Mar 2018 01:52:43 +0000 (03:52 +0200)
committerEleni Maria Stea <estea@igalia.com>
Thu, 15 Mar 2018 01:52:43 +0000 (03:52 +0200)
commit05d269a194496bcef85da78652b947f5bf1c9bcf
treef3cb0dac3f92c136fcf361a893cd1325ea48bc21
parent6cecb8f16f1863496884ca86790375dbb27138ba
Changed the OpenGL part and the GLSL shaders to use UBO and
locations inside the shaders. Introduced new abstraction on top
of UBO functions so that both OpenGL and Vulkan can use them
from the renderer
30 files changed:
gl_shaders/default.f.glsl
gl_shaders/default.v.glsl
gl_shaders/morphing.f.glsl
gl_shaders/morphing.v.glsl
gl_shaders/sky.f.glsl
gl_shaders/sky.v.glsl
src/camera.cc
src/camera.h
src/gfxapi.cc
src/gfxapi.h
src/morph_renderer.cc
src/morph_renderer.h
src/opengl/shader-gl.cc
src/opengl/shader-gl.h
src/opengl/uniforms-gl.cc [new file with mode: 0644]
src/opengl/uniforms-gl.h [new file with mode: 0644]
src/renderer.cc
src/renderer.h
src/shader.cc
src/shader.h
src/state_manager.cc [deleted file]
src/state_manager.h [deleted file]
src/uniforms.cc [new file with mode: 0644]
src/uniforms.h [new file with mode: 0644]
src/vulkan/allocator.cc
src/vulkan/mesh-vk.cc
src/vulkan/shader-vk.cc
src/vulkan/shader-vk.h
src/vulkan/uniforms-vk.cc [new file with mode: 0644]
src/vulkan/uniforms-vk.h [new file with mode: 0644]