summaryrefslogtreecommitdiffstats
path: root/examples/example-base/example-base.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-06-30 14:59:18 -0700
committerGitHub <noreply@github.com>2021-06-30 14:59:18 -0700
commita03d21a5f54cba913c3f52e2822a433de8f39fdd (patch)
tree84d24d4355cc4b3e941da9eab57147cd9d297ee4 /examples/example-base/example-base.h
parent5395ef82535c283109b1ea6b89b737c5a39bf147 (diff)
[gfx] Add inline ray tracing support. (#1899)
Diffstat (limited to 'examples/example-base/example-base.h')
-rw-r--r--examples/example-base/example-base.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/example-base/example-base.h b/examples/example-base/example-base.h
index a1c46aa53..b898f7417 100644
--- a/examples/example-base/example-base.h
+++ b/examples/example-base/example-base.h
@@ -26,7 +26,11 @@ protected:
Slang::ComPtr<gfx::IRenderPassLayout> gRenderPass;
Slang::ComPtr<gfx::ICommandQueue> gQueue;
- Slang::Result initializeBase(const char* titile, int width, int height);
+ Slang::Result initializeBase(
+ const char* titile,
+ int width,
+ int height,
+ gfx::DeviceType deviceType = gfx::DeviceType::Default);
void createSwapchainFramebuffers();
void mainLoop();