-
-
Notifications
You must be signed in to change notification settings - Fork 146
Closed
Labels
enhancement ✨An improvement to existing APIsAn improvement to existing APIs
Description
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
Labels
enhancement ✨An improvement to existing APIsAn improvement to existing APIs