summaryrefslogtreecommitdiffstats
path: root/examples/hello-world
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hello-world')
-rw-r--r--examples/hello-world/main.cpp3
-rw-r--r--examples/hello-world/vulkan-api.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/examples/hello-world/main.cpp b/examples/hello-world/main.cpp
index db243749b..95c3daa72 100644
--- a/examples/hello-world/main.cpp
+++ b/examples/hello-world/main.cpp
@@ -115,7 +115,8 @@ int HelloWorldExample::createComputePipelineFromShader()
slang::TargetDesc targetDesc = {};
targetDesc.format = SLANG_SPIRV;
targetDesc.profile = slangGlobalSession->findProfile("glsl440");
-
+ targetDesc.flags = SLANG_TARGET_FLAG_GENERATE_SPIRV_DIRECTLY;
+
sessionDesc.targets = &targetDesc;
sessionDesc.targetCount = 1;
diff --git a/examples/hello-world/vulkan-api.cpp b/examples/hello-world/vulkan-api.cpp
index d2d8aefa6..cc52956ce 100644
--- a/examples/hello-world/vulkan-api.cpp
+++ b/examples/hello-world/vulkan-api.cpp
@@ -74,7 +74,7 @@ int initializeVulkanDevice(VulkanAPI& api)
VkApplicationInfo applicationInfo = {VK_STRUCTURE_TYPE_APPLICATION_INFO};
applicationInfo.pApplicationName = "slang-hello-world";
applicationInfo.pEngineName = "slang-hello-world";
- applicationInfo.apiVersion = VK_API_VERSION_1_0;
+ applicationInfo.apiVersion = VK_API_VERSION_1_2;
applicationInfo.engineVersion = 1;
applicationInfo.applicationVersion = 1;
const char* instanceExtensions[] = {