fix example.cpp (#2540)
This commit is contained in:
Родитель
2de3e3c02f
Коммит
dca3ea5e17
|
@ -28,6 +28,7 @@
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
const std::string source =
|
const std::string source =
|
||||||
|
" OpCapability Linkage "
|
||||||
" OpCapability Shader "
|
" OpCapability Shader "
|
||||||
" OpMemoryModel Logical GLSL450 "
|
" OpMemoryModel Logical GLSL450 "
|
||||||
" OpSource GLSL 450 "
|
" OpSource GLSL 450 "
|
||||||
|
@ -36,8 +37,8 @@ int main() {
|
||||||
" %spec = OpSpecConstant %int 0 "
|
" %spec = OpSpecConstant %int 0 "
|
||||||
"%const = OpConstant %int 42";
|
"%const = OpConstant %int 42";
|
||||||
|
|
||||||
spvtools::SpirvTools core(SPV_ENV_VULKAN_1_0);
|
spvtools::SpirvTools core(SPV_ENV_UNIVERSAL_1_3);
|
||||||
spvtools::Optimizer opt(SPV_ENV_VULKAN_1_0);
|
spvtools::Optimizer opt(SPV_ENV_UNIVERSAL_1_3);
|
||||||
|
|
||||||
auto print_msg_to_stderr = [](spv_message_level_t, const char*,
|
auto print_msg_to_stderr = [](spv_message_level_t, const char*,
|
||||||
const spv_position_t&, const char* m) {
|
const spv_position_t&, const char* m) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче