yuzu/src
wwylele 0f35755572 pica/command_processor: build geometry pipeline and run geometry shader
The geometry pipeline manages data transfer between VS, GS and primitive assembler. It has known four modes:
 - no GS mode: sends VS output directly to the primitive assembler (what citra currently does)
 - GS mode 0: sends VS output to GS input registers, and sends GS output to primitive assembler
 - GS mode 1: sends VS output to GS uniform registers, and sends GS output to primitive assembler. It also takes an index from the index buffer at the beginning of each primitive for determine the primitive size.
 - GS mode 2: similar to mode 1, but doesn't take the index and uses a fixed primitive size.
hwtest shows that immediate mode also supports GS (at least for mode 0), so the geometry pipeline gets refactored into its own class for supporting both drawing mode.
In the immediate mode, some games don't set the pipeline registers to a valid value until the first attribute input, so a geometry pipeline reset flag is set in `pipeline.vs_default_attributes_setup.index` trigger, and the actual pipeline reconfigure is triggered in the first attribute input.
In the normal drawing mode with index buffer, the vertex cache is a little bit modified to support the geometry pipeline. Instead of OutputVertex, it now holds AttributeBuffer, which is the input to the geometry pipeline. The AttributeBuffer->OutputVertex conversion is done inside the pipeline vertex handler. The actual hardware vertex cache is believed to be implemented in a similar way (because this is the only way that makes sense).
Both geometry pipeline and GS unit rely on states preservation across drawing call, so they are put into the global state. In the future, the other three vertex shader units should be also placed in the global state, and a scheduler should be implemented on top of the four units. Note that the current gs_unit already allows running VS on it in the future.
2017-08-19 10:13:20 +03:00
..
audio_core CMake: Add SoundTouch include path to target property 2017-05-27 22:09:28 -07:00
citra Network: Init Network in SDL and QT 2017-07-16 21:29:19 +02:00
citra_qt Quickfix typo in OpenGL 3.3 error message 2017-08-04 23:11:27 -04:00
common Merge pull request #2822 from wwylele/sw_lighting-2 2017-08-09 18:54:29 +03:00
core Merge pull request #2862 from j-selby/update-cryptopp 2017-08-09 16:18:43 -04:00
input_common CMake: Define an interface target for SDL2 definitions 2017-05-27 21:38:49 -07:00
network Network: Moved NintendoOUI initalization to RoomMember constructor 2017-07-26 21:06:40 +02:00
tests tests: Add tests for vadd 2017-07-23 12:29:51 +01:00
video_core pica/command_processor: build geometry pipeline and run geometry shader 2017-08-19 10:13:20 +03:00
web_service web_backend: Specify api-version on JSON post. 2017-07-11 18:34:30 -04:00
.clang-format Remove special rules for Windows.h and library includes 2016-09-21 00:16:33 -07:00
CMakeLists.txt web_service: Add CMake flag to enable. 2017-07-11 18:33:41 -04:00