From a03d21a5f54cba913c3f52e2822a433de8f39fdd Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 30 Jun 2021 14:59:18 -0700 Subject: [gfx] Add inline ray tracing support. (#1899) --- examples/example-base/example-base.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'examples/example-base/example-base.cpp') 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; -- cgit v1.2.3