Skip to content

Add diagnostic for invalid linking compile option #462

@Sergio0694

Description

@Sergio0694

Description

There currently is no diagnostic if a shader is compiling with linking support where that's definitely not supported.

Rationale

Flagging this can reduce the size of the compiling shader, as the option is not needed anyway. This should only apply to when the option is used manually on a single shader, and not when it's inherited by a global configuration.

Example

[D2DInputCount(1)]
[D2DInputComplex(0)]
[D2DRequiresScenePosition]
[D2DShaderProfile(D2D1ShaderProfile.PixelShader40)]
[D2DCompileOptions(D2D1CompileOptions.EnableLinking)]
public partial struct MyShader : ID2D1PixelShader
{
    // ...
}

Should generate a diagnostic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement ✨An improvement to existing APIs

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions