Homebrew gpu shader - system hang

elhobbs

Well-Known Member
OP
Member
Joined
Jul 28, 2008
Messages
1,033
Trophies
1
XP
2,529
Country
United States
I am trying to implement a particle gpu shader. It seems to be mostly working correctly - except that it will occasionally deadlock the system and I cannot figure out the issue. It only happens on hardware - citra does not see any issues as far as I can tell.

Any assistance or ideas would be appreciated.

All of the code is on git. Here are the pertinent pieces of code:

gpu and vertex shaders
https://github.com/elhobbs/spectre3ds/blob/citro3d/3d/particle.g.pica
https://github.com/elhobbs/spectre3ds/blob/citro3d/3d/particle.v.pica

code reference
https://github.com/elhobbs/spectre3ds/blob/citro3d/source/ViewState.cpp#L1279

If I disable drawing the particles then there is no issue (specifically just commenting out the draw call - C3D_DrawElements).
 
General chit-chat
Help Users
  • No one is chatting at the moment.
    K3N1 @ K3N1: Ew burger king