/glslang

Khronos-reference front end for GLSL/ESSL, partial front end for HLSL, and a SPIR-V generator.

Primary LanguageC++MIT LicenseMIT

Glslang

This is a set of tools to compile SPIR-V binary from GLSL and HLSL. Supports Swift Package Manager. For more details see also KhronosGroup/glslang.

Installation

dependencies: [
// ...
    .package(url: "https://github.com/AdaEngine/glslang", from: "main")
// ...
]

Also set -enable-experimental-cxx-interop to your executable target in swiftSettings like so:

.target(
    name: "MyApp",
    swiftSettings: [
        .unsafeFlags(["-enable-experimental-cxx-interop"])
    ]
)

In the end of the package set the cxxLanguageStandard to .cxx20.