Skip to content

Cannot optimize with target vulkan1.1 #475

@danielmaciel

Description

@danielmaciel

Attempting to optimize using --target-env=vulkan1.1 -O fails with this message:
shaderc: internal error: compilation succeeded but failed to optimize: Invalid SPIR-V binary version 1.3 for target environment SPIR-V 1.0 (under Vulkan 1.0 semantics).

I have attached a patch. It gives you an idea of what needs to be done. It is not super great but gets the job done.

vulkan11opt.patch.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions