New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vertex loader cleanup #11
Conversation
|
In which way do we want to fix the videosw issue? |
|
In PPSSPP I created a "VertexReader" that reads OpenGL formatted vertex data (of any format). This lets me share the entire vertex loader with no issues except possibly slightly slowing down the software renderer. I'd do the same thing if I were back working on Dolphin. |
|
hrydgard: yeah, I'm also thinking about forking our videosw based on the hardware api. So it likely will be a) |
|
+1 for making our sw backend closer to the hw implementations when it can On Thu, Jan 30, 2014 at 3:14 PM, Markus Wick notifications@github.comwrote:
Pierre "delroth" Bourdon delroth@gmail.com |
|
+1 for the same reason @delroth stated. |
|
Apart from that, looks fine to me. Will merge once the coding style issues and the lookup table are fixed. Will comment on the "merge or not merge?" issue later. |
|
I'm fine with hard coding position, but only in videocommon. For consistensy, the backends should handle it like all other attributes. |
…for every vertex and use this for position atm, position attribute is hardcoded both in VertexLoader and in backends. v2: fix coding style + cleanup lookup table
|
Sorry, line based comments seem to be removed silencely on updates (push -f), but I've fixed the coding style + the lookup table. The other patches haven't changed. |
|
Not solved comment from neobrain: "Generally: Why do we not want to hardcode the position? Seems unnatural not to have a position in a vertex format." |
|
I'd still prefer to have the if (format->enable) check removed for the position, possibly even with a comment that it's not possible to disable position (unless I'm completely mistaken here and this is actually possible on Flipper). As it stands right now, when looking over the code, people unfamiliar with will ask themselves "huh, you can actually disable the position? what sense does this make?" and then have to look up that format->enable is always true anyway. |
|
https://github.com/dolphin-emu/dolphin/blob/master/Source/Core/VideoCommon/CPMemory.h#L77 But I don't know what happens when this is set to 0 (not present). imo unfamiliar people will ask we do we handle the position attribute in an other way than all others. I just don't want to hardcode it at different places. |
|
Yeah ok, looks like theoretically it should be possible to disable position, nevermind then. |
…make Fix Windows compilation using CMake
This branch was designed to move all vertex attributes information into VideoCommon. So now they are defined by the VertexLoader and the backends are supposed to just pass them through.
But as VideoSW also uses the VertexLoader in a very hacky way, we aren' t allowed to use any new feature now. So in the end, it's a cleanup and a feature preparation.