xenia-project / xenia

Xbox 360 Emulator Research Project
https://xenia.jp
Other
8.15k stars 1.12k forks source link

Quads in line fill mode draw triangle lines. #174

Open benvanik opened 9 years ago

benvanik commented 9 years ago

May need some magic geometry shader work here, or switch to line lists. Demonstrated in Conveni box borders.

Triang3l commented 1 year ago

This issue is back in the current rendering backend apparently, the shader generating the line wireframe was lost at some point in time. Though now it will require not only the GS, but since we aim to support devices without geometry shader support too, additional paths in the PrimitiveProcessor that would build line loops (not supported in Vulkan or Direct3D) on the CPU, both for index-buffered (duplicating indices on the CPU) and auto-indexed (a special static 01,12,23,30… index buffer, or maybe 01230cut45674, but I think any rendering differences between line lists and line strips, such as at corners and ends, may occur only with wide lines, not with wireframe which is probably always 1px-Bresenham-rasterized) scenarios.