Merge pull request #343 from Sergio0694/dev/fix-d2d-entry-point-check

Match for Float4 return for D2D entry point
このコミットが含まれているのは:
Sergio Pedri authored and GitHub committed 2022-08-10 22:14:55 +02:00
コミット 00cbf9352d
1ファイル変更
+1 -1
@@ -272,7 +272,7 @@ partial class ID2D1ShaderGenerator
IMethodSymbol methodDeclarationSymbol = semanticModel.For(methodDeclaration).GetDeclaredSymbol(methodDeclaration)!;
bool isShaderEntryPoint =
methodDeclarationSymbol.Name == nameof(ID2D1PixelShader.Execute) &&
methodDeclarationSymbol.ReturnType is not null && // TODO: match for pixel type
methodDeclarationSymbol.ReturnType.HasFullyQualifiedName("ComputeSharp.Float4") &&
methodDeclarationSymbol.TypeParameters.Length == 0 &&
methodDeclarationSymbol.Parameters.Length == 0;