Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2018-09-04 | gl_shader_cache: Use an u32 for the binding point cache. | Markus Wick | 1 | -0/+8 | |
The std::string generation with its malloc and free requirement was a noticeable overhead. Also switch to an ordered_map to avoid the std::hash call. As those maps usually have a size of two elements, the lookup time shall not matter. | |||||
2018-08-28 | renderer_opengl: Implement a new shader cache. | bunnei | 1 | -71/+4 | |
2018-08-22 | gl_shader_gen: Make ShaderSetup's constructor explicit | Lioncash | 1 | -1/+1 | |
Prevents implicit conversions. | |||||
2018-08-22 | gl_shader_gen: Use a std::vector to represent program code instead of std::array | Lioncash | 1 | -10/+15 | |
While convenient as a std::array, it's also quite a large set of data as well (32KB). It being an array also means data cannot be std::moved. Any situation where the code is being set or relocated means that a full copy of that 32KB data must be done. If we use a std::vector we do need to allocate on the heap, however, it does allow us to std::move the data we have within the std::vector into another std::vector instance, eliminating the need to always copy the program data (as std::move in this case would just transfer the pointers and bare necessities over to the new vector instance). | |||||
2018-08-22 | renderer_opengl: Namespace OpenGL code | Lioncash | 1 | -6/+6 | |
Namespaces all OpenGL code under the OpenGL namespace. Prevents polluting the global namespace and allows clear distinction between other renderers' code in the future. | |||||
2018-08-22 | Revert "Shader: Use the right sampler type in the TEX, TEXS and TLDS instructions." | bunnei | 1 | -44/+6 | |
- This reverts commit 3ef4b3d4b445960576f10d1ba6521580d03e3da8. - This commit had broken a lot of games. We really should do a full implementation of this in one change. | |||||
2018-08-19 | Shader: Use the right sampler type in the TEX, TEXS and TLDS instructions. | Subv | 1 | -6/+44 | |
Different sampler types have their parameters in different registers. | |||||
2018-07-13 | gl_shader_gen: Implement dual vertex shader mode. | bunnei | 1 | -3/+30 | |
- When VertexA shader stage is enabled, we combine with VertexB program to make a single Vertex Shader stage. | |||||
2018-06-07 | gl_shader_gen: Add uniform handling for indirect const buffer access. | bunnei | 1 | -3/+15 | |
2018-06-06 | GPU: Implement sampling multiple textures in the generated glsl shaders. | Subv | 1 | -0/+40 | |
All tested games that use a single texture show no regression. Only Texture2D textures are supported right now, each shader gets its own "tex_fs/vs/gs" sampler array to maintain independent textures between shader stages, the textures themselves are reused if possible. | |||||
2018-04-15 | GPU: Use the same buffer names in the generated GLSL and the buffer uploading code. | Subv | 1 | -1/+13 | |
2018-04-15 | shaders: Expose hints about used const buffers. | bunnei | 1 | -2/+36 | |
2018-04-14 | gl_shader_gen: Add hashable setup/config structs. | bunnei | 1 | -27/+48 | |
2018-03-20 | renderer_gl: Port over gl_shader_gen module from Citra. | bunnei | 1 | -0/+66 | |
2018-01-13 | Remove references to PICA and rasterizers in video_core | James Rowe | 1 | -162/+0 | |
2017-06-15 | gl_rasterizer/lighting: implement geometric factor | wwylele | 1 | -0/+2 | |
2017-05-30 | gl_rasterizer: sync spot light status | wwylele | 1 | -1/+2 | |
2017-05-20 | gl_rasterizer: implement procedural texture | wwylele | 1 | -0/+13 | |
2017-05-03 | pica: use correct coordinates for texture 2 | wwylele | 1 | -0/+1 | |
2017-04-17 | OpenGL: Pass Pica regs via parameter | Yuri Kunde Schlesner | 1 | -3/+3 | |
2017-04-17 | OpenGL: Move PicaShaderConfig to gl_shader_gen.h | Yuri Kunde Schlesner | 1 | -2/+109 | |
Also move the implementation of CurrentConfig to the cpp file. | |||||
2017-04-17 | OpenGL: Move Attributes enum to a more appropriate file | Yuri Kunde Schlesner | 1 | -0/+11 | |
2016-05-03 | Pica: Use a union for PicaShaderConfig | Jannik Vogel | 1 | -1/+1 | |
2016-04-30 | VideoCore: Run include-what-you-use and fix most includes. | Emmanuel Gil Peyrot | 1 | -1/+1 | |
2015-10-22 | gl_rasterizer: Use MMH3 hash for shader cache hey. | bunnei | 1 | -1/+1 | |
- Includes a check to confirm no hash collisions. | |||||
2015-10-22 | gl_shader_gen: Add additional function documentation. | bunnei | 1 | -0/+10 | |
2015-10-22 | renderer_opengl: Refactor shader generation/caching to be more organized + various cleanups. | bunnei | 1 | -0/+17 | |