Merge pull request #1679 from okuoku/fix-c-sample-code

Fix C sample code in README.md
This commit is contained in:
Hans-Kristian Arntzen 2021-05-21 18:43:08 +02:00 committed by GitHub
commit ff61890722
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -161,12 +161,12 @@ for (i = 0; i < count; i++)
}
// Modify options.
spvc_compiler_create_compiler_options(context, &options);
spvc_compiler_create_compiler_options(compiler_glsl, &options);
spvc_compiler_options_set_uint(options, SPVC_COMPILER_OPTION_GLSL_VERSION, 330);
spvc_compiler_options_set_bool(options, SPVC_COMPILER_OPTION_GLSL_ES, SPVC_FALSE);
spvc_compiler_install_compiler_options(compiler_glsl, options);
spvc_compiler_compile(compiler, &result);
spvc_compiler_compile(compiler_glsl, &result);
printf("Cross-compiled source: %s\n", result);
// Frees all memory we allocated so far.