Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Some Vulkan examples failing shader compilation on macOS with MoltenVk due to spvSwizzleConstants being undefined #67

Open
lilly-lizard opened this issue May 17, 2021 · 1 comment
Assignees

Comments

@lilly-lizard
Copy link
Contributor

Some of the Vulkan SDK examples are failing shader compilation on macos (catalina 10.15.7) with lunarg sdk 1.2.176.1 due to spvSwizzleConstants being undeclared. This is presumably a SPIRV-Cross bug, but further investigation is needed before we submit an issue there.

Affected examples: IntroducingPVRUtils, DeferredShading, GnomeHorde, MultiSampling, Navigation3D, PipelineCache

Error message for IntroducingPVRUtils:

[mvk-error] VK_ERROR_INITIALIZATION_FAILED: Shader library compile failed (Error code 3):
Compilation failed: 

program_source:82:35: error: use of undeclared identifier 'spvSwizzleConstants'
    constant uint& sTextureSwzl = spvSwizzleConstants[0];
                                  ^
.
[mvk-error] VK_ERROR_INVALID_SHADER_NV: Fragment shader function could not be compiled into pipeline. See previous logged error.

The other affected examples have the same use of undeclared identifier 'spvSwizzleConstants' error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
@omarzohdi @lilly-lizard and others