diff options
Diffstat (limited to 'examples/example-base/example-base.cpp')
| -rw-r--r-- | examples/example-base/example-base.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/example-base/example-base.cpp b/examples/example-base/example-base.cpp index 04f938697..c45e3cc27 100644 --- a/examples/example-base/example-base.cpp +++ b/examples/example-base/example-base.cpp @@ -9,7 +9,11 @@ using namespace Slang; using namespace gfx; -Slang::Result WindowedAppBase::initializeBase(const char* title, int width, int height) +Slang::Result WindowedAppBase::initializeBase( + const char* title, + int width, + int height, + DeviceType deviceType) { // Create a window for our application to render into. // @@ -30,7 +34,7 @@ Slang::Result WindowedAppBase::initializeBase(const char* title, int width, int gfxEnableDebugLayer(); #endif IDevice::Desc deviceDesc = {}; - // deviceDesc.slang.targetFlags = SLANG_TARGET_FLAG_DUMP_IR; + deviceDesc.deviceType = deviceType; gfx::Result res = gfxCreateDevice(&deviceDesc, gDevice.writeRef()); if (SLANG_FAILED(res)) return res; |
