Matt Barr

Members
  • Content count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Matt Barr

  • Rank
    Newbie

Personal Information

Social

  • Twitter
    @barrcodes
  • Github
    barrcodes
  1. Hey all. I've been working with compute shaders lately, and was hoping to build out some libraries to reuse code. As a prerequisite for my current project, I needed to sort a big array of data in my compute shader, so I was going to implement quicksort as a library function. My implementation was going to use an inout array to apply the changes to the referenced array. I spent half the day yesterday debugging in visual studio before I realized that the solution, while it worked INSIDE the function, reverted to the original state after returning from the function. My hack fix was just to inline the code, but this is not a great solution for the future. Any ideas? I've considered just returning an array of ints that represents the sorted indices.