Skip to content

Commit

Permalink
fix example.cpp (KhronosGroup#2540)
Browse files Browse the repository at this point in the history
  • Loading branch information
clouds56 authored and s-perron committed Apr 26, 2019
1 parent 2de3e3c commit dca3ea5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/cpp-interface/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

int main() {
const std::string source =
" OpCapability Linkage "
" OpCapability Shader "
" OpMemoryModel Logical GLSL450 "
" OpSource GLSL 450 "
Expand All @@ -36,8 +37,8 @@ int main() {
" %spec = OpSpecConstant %int 0 "
"%const = OpConstant %int 42";

spvtools::SpirvTools core(SPV_ENV_VULKAN_1_0);
spvtools::Optimizer opt(SPV_ENV_VULKAN_1_0);
spvtools::SpirvTools core(SPV_ENV_UNIVERSAL_1_3);
spvtools::Optimizer opt(SPV_ENV_UNIVERSAL_1_3);

auto print_msg_to_stderr = [](spv_message_level_t, const char*,
const spv_position_t&, const char* m) {
Expand Down

0 comments on commit dca3ea5

Please sign in to comment.