Add spvfc CLI tool and GLSLCompiler public C++ API header#2
Draft
Add spvfc CLI tool and GLSLCompiler public C++ API header#2
Conversation
Co-authored-by: hyzboy <1788285+hyzboy@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update library for cross-platform support including Linux and macOS
Add Linux/macOS cross-platform support
Feb 25, 2026
…ption Co-authored-by: hyzboy <1788285+hyzboy@users.noreply.github.com>
Copilot
AI
changed the title
Add Linux/macOS cross-platform support
Cross-platform build: add Linux/macOS support and flexible dependency discovery
Feb 25, 2026
Co-authored-by: hyzboy <1788285+hyzboy@users.noreply.github.com>
Copilot
AI
changed the title
Cross-platform build: add Linux/macOS support and flexible dependency discovery
Add flat binary serialization for SPVParseData with zero-dependency loader
Feb 25, 2026
…l reflection Co-authored-by: hyzboy <1788285+hyzboy@users.noreply.github.com>
Copilot
AI
changed the title
Add flat binary serialization for SPVParseData with zero-dependency loader
Cross-platform build + unified shader flat-file format (SPIRV + reflection, zero-dep loader)
Feb 25, 2026
Co-authored-by: hyzboy <1788285+hyzboy@users.noreply.github.com>
Copilot
AI
changed the title
Cross-platform build + unified shader flat-file format (SPIRV + reflection, zero-dep loader)
Cross-platform build, flexible dependency discovery, unified shader flat-file format, and technical documentation
Feb 25, 2026
Co-authored-by: hyzboy <1788285+hyzboy@users.noreply.github.com>
Copilot
AI
changed the title
Cross-platform build, flexible dependency discovery, unified shader flat-file format, and technical documentation
Add spvfc CLI tool and GLSLCompiler public C++ API header
Feb 25, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a command-line compiler (
spvfc) that compiles GLSL/HLSL shaders directly to.spvffiles and prints a human-readable reflection summary. Also extracts a proper public C++ API header from the previously header-less library.GLSLCompiler.h(new)ShaderLanguageTypeandCompileInfoout ofglsl2spv.cppinto a public headerSPVData/SPVParseDataexposed as opaque handles; layouts remain privateSPVParseFlat.h— one include gives both the compiler API and the zero-dep flat-file loadervulkan_version/spv_versioninCompileInfochanged fromconstmembers to plainuint32_t(assignable)glsl2spv.cppchangesextern "C"field accessors for the opaqueSPVDatahandle:SPVDataGetResult,SPVDataGetLog,SPVDataGetDebugLog— also wired intoGLSLCompilerInterfacefor dynamic-load callers#include "GLSLCompiler.h"replaces the old#include "SPVParseFlat.h"spvfc.cpp(new)Links against
GLSLCompilerStatic. Per-file pipeline: extension → stage detection →CompileFromPath→ParseSPV→CreateShaderFlat→ShaderFlatLoad(for reflection printing) → write.spvf.Sample reflection output:
CMakeLists.txtGLSLCompiler.hadded to both library source listsadd_executable(spvfc spvfc.cpp)linked againstGLSLCompilerStatic ${VULKAN_SPIRV_LIBS}💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.