Skeleton GPU files.

This commit is contained in:
Ben Vanik
2013-05-27 21:45:55 -07:00
parent 16baef3591
commit 2cecc02787
19 changed files with 501 additions and 8 deletions

View File

@@ -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);
}