Skip to content

[SPIR-V] Fatal error in compilation when using nointerpolation modifier #5326

Closed

Description

@Mr-Wiseguy

The following code fails to compile when emitting SPIR-V, but compiles fine when emitting DXIL:

void PSMain(nointerpolation in float4 flatColor : COLOR0, out float4 resultColor : SV_TARGET)
{
    resultColor = flatColor;
}

The error is as follows:

fatal error: generated SPIR-V is invalid: OpStore Pointer <id> '3[%out_var_SV_TARGET]'s type does not match Object <id> '14[%14]'s type.
  OpStore %out_var_SV_TARGET %14

Activity

  1. added
    bug
    spirv
    on Jun 27, 2023
  2. s-perron commented on Jun 27, 2023

    @s-perron
    Collaborator

    Duplicate of #5270.

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

    bugspirv

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions