Skeleton GPU files.
This commit is contained in:
@@ -8,8 +8,29 @@
|
||||
*/
|
||||
|
||||
#include <xenia/gpu/gpu.h>
|
||||
#include <xenia/gpu/gpu-private.h>
|
||||
|
||||
#if XE_PLATFORM(WIN32)
|
||||
#include <xenia/gpu/d3d11/d3d11.h>
|
||||
#endif // WIN32
|
||||
#include <xenia/gpu/nop/nop.h>
|
||||
|
||||
|
||||
void do_gpu_stuff() {
|
||||
XELOGGPU("gpu");
|
||||
using namespace xe;
|
||||
using namespace xe::gpu;
|
||||
|
||||
|
||||
// DEFINE_ flags here.
|
||||
|
||||
|
||||
GraphicsSystem* xe::gpu::Create(const CreationParams* params) {
|
||||
// TODO(benvanik): use flags to determine system, check support, etc.
|
||||
return xe::gpu::nop::Create(params);
|
||||
// #if XE_PLATFORM(WIN32)
|
||||
// return xe::gpu::d3d11::Create(params);
|
||||
// #endif // WIN32
|
||||
}
|
||||
|
||||
GraphicsSystem* xe::gpu::CreateNop(const CreationParams* params) {
|
||||
return xe::gpu::nop::Create(params);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user