Skip to content

Tutorial 14 crashes on MacOS/Vulkan #230

@TheMostDiligent

Description

@TheMostDiligent

This is Vulkan SDK regression that started in version 1.3.296
KhronosGroup/MoltenVK#2380

[mvk-error] VK_ERROR_INITIALIZATION_FAILED: Shader library compile failed (Error code 3):
program_source:96:53: error: must use 'struct' tag to refer to type 'g_Particles' in this scope
    const device auto& g_Particles = *(const device g_Particles* )((const device char* )spvDescriptorSet0.g_Particles + spvDynamicOffsets[1]);
                                                    ^
                                                    struct 
program_source:96:24: note: struct 'g_Particles' is hidden by a non-type declaration of 'g_Particles' here
    const device auto& g_Particles = *(const device g_Particles* )((const device char* )spvDescriptorSet0.g_Particles + spvDynamicOffsets[1]);
                       ^
.
Diligent Engine: ERROR: Vulkan debug message (validation): mvk-error
                 VK_ERROR_INITIALIZATION_FAILED: Shader library compile failed (Error code 3):
program_source:96:53: error: must use 'struct' tag to refer to type 'g_Particles' in this scope
    const device auto& g_Particles = *(const device g_Particles* )((const device char* )spvDescriptorSet0.g_Particles + spvDynamicOffsets[1]);
                                                    ^
                                                    struct 
program_source:96:24: note: struct 'g_Particles' is hidden by a non-type declaration of 'g_Particles' here
    const device auto& g_Particles = *(const device g_Particles* )((const device char* )spvDescriptorSet0.g_Particles + spvDynamicOffsets[1]);
                       ^
.
                 Object[0] (shader module): Handle 0x10f912310, Name: 'Particle VS'

[mvk-error] VK_ERROR_INVALID_SHADER_NV: Vertex shader function could not be compiled into pipeline. See previous logged error.
Diligent Engine: ERROR: Vulkan debug message (validation): mvk-error
                 VK_ERROR_INVALID_SHADER_NV: Vertex shader function could not be compiled into pipeline. See previous logged error.
                 Object[0] (pipeline): Handle 0x11ea15a00

Diligent Engine: ERROR in CreateGraphicsPipeline() (VulkanLogicalDevice.cpp, 297): Failed to create graphics pipeline 'Render particles PSO'
VK Error Code: ERROR_INVALID_SHADER_NV

Diligent Engine: ERROR in CreateDeviceObject() (RenderDeviceBase.hpp, 467): Failed to create Pipeline State 'Render particles PSO'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions