Can we use static DeviceResources member instead of using SharedResourcePool class

Nov 13, 2014 at 7:12 AM
Edited Nov 13, 2014 at 7:44 AM
I find that you use SharedResourcePool to avoid creating duplicate device resources. I wonder if we can just use static DeivceResources member. And add a std::mutex in the DeviceResources struct to make sure thread safety.
Nov 13, 2014 at 7:07 PM
DirectXTK's 'collection of mostly independent tools' model currently makes it difficult since we don't have a library-level "Initialize" or "Terminate" where we could handle shared resources on a global level like that. That may have to change at some point, but that's why we designed it the way we did for now...