gpu shader - system hang
Posted: Sat Aug 10, 2019 2:32 am
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/b ... cle.g.pica
https://github.com/elhobbs/spectre3ds/b ... cle.v.pica
code reference
https://github.com/elhobbs/spectre3ds/b ... .cpp#L1279
If I disable drawing the particles then there is no issue (specifically just commenting out the draw call - C3D_DrawElements).
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/b ... cle.g.pica
https://github.com/elhobbs/spectre3ds/b ... cle.v.pica
code reference
https://github.com/elhobbs/spectre3ds/b ... .cpp#L1279
If I disable drawing the particles then there is no issue (specifically just commenting out the draw call - C3D_DrawElements).