diff options
author | Hans-Kristian Arntzen <post@arntzen-software.no> | 2021-05-21 18:43:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-21 18:43:08 +0200 |
commit | ff61890722a91e97c44940494be5b6eed0d5ff5b (patch) | |
tree | 8b1c92cb509d3b4c52acbb689039c208d932357f | |
parent | faec1a8643d260b0fe1df4c106e6abce97532c7f (diff) | |
parent | 38c6ef1d56b5542ae1484951fc12e59ac54d43b6 (diff) | |
download | SPIRV-Cross-ff61890722a91e97c44940494be5b6eed0d5ff5b.tar.gz SPIRV-Cross-ff61890722a91e97c44940494be5b6eed0d5ff5b.tar.bz2 SPIRV-Cross-ff61890722a91e97c44940494be5b6eed0d5ff5b.zip |
Merge pull request #1679 from okuoku/fix-c-sample-codeupstream/2021.4.22
Fix C sample code in README.md
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. |