Homebrew gpu shader - system hang

  • Thread starter Thread starter elhobbs
  • Start date Start date
  • Views Views 1,029
  • Replies Replies 0

elhobbs

Well-Known Member
Member
Joined
Jul 28, 2008
Messages
1,071
Reaction score
600
Trophies
1
XP
3,718
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).
 

Site & Scene News

Popular threads in this forum