This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "glimp.h" | |
| #if defined _WIN32 | |
| #include <Windows.h> | |
| #pragma clang diagnostic push | |
| #pragma clang diagnostic ignored "-Wmissing-variable-declarations" | |
| #define COMMAND(name) __declspec(dllexport) PROC __imp_##name; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find_program(SPIRV_COMPILER NAMES glslangValidator glslc) | |
| get_filename_component(spirv_compiler_id ${SPIRV_COMPILER} NAME_WE) | |
| if(spirv_compiler_id STREQUAL glslc) | |
| set(SPIRV_FLAGS -c -mfmt=num CACHE STRING "") | |
| set(SPIRV_FLAGS_VULKAN --target-env=vulkan CACHE STRING "") | |
| set(SPIRV_FLAGS_OPENGL --target-env=opengl CACHE STRING "") | |
| elseif(spirv_compiler_id STREQUAL glslangValidator ) | |
| set(SPIRV_FLAGS -x CACHE STRING "") | |
| set(SPIRV_FLAGS_VULKAN -V CACHE STRING "") |