Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.
This repository was archived by the owner on Oct 31, 2025. It is now read-only.

PushConstant not being OpTypeStruct is invalid on Vulkan hosts #362

Description

@hrydgard

Quoth Baldur (hope he doesn't mind I post it here):

BTW I also noticed some invalid SPIR-V in your shader which may also affect this, you have a PushConstant storage class variable defined that is not an OpTypeStruct. All uniforms and push constant variables must be struct pointers with explicitly laid out structs.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: push constantIssues related to push constants.a: vulkanIssues specifically about Vulkan.c: rustc_codegen_spirvIssues specific to the rustc_codegen_spirv crate.t: bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions