Match for Float4 return for D2D entry point

このコミットが含まれているのは:
Sergio Pedri committed 2022-08-10 15:25:07 +02:00
1 親 ccc97b706a
コミット dc5260ea42
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;