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.

Support Flat decoration on shader Input/Outputs #314

@fu5ha

Description

@fu5ha

Ideally, we want to be able to do something like

fn main_vs(
    #[spirv(flat) mut some_output: Output<Blah>
)

fn main_fs(
    #[spirv(flat) some_input: Input<Blah>
)

which would apply the Flat decoration and therefore disable interpolation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: rustc_codegen_spirvIssues specific to the rustc_codegen_spirv crate.t: enhancementA new feature or improvement to an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions