Remove IComputeShader file links from DX12 generator
このコミットが含まれているのは:
1 親
c5a79fd1e1
コミット
8536bcb16a
2ファイル変更
+3
-5
検索条件に一致するファイルはありません
@@ -60,7 +60,7 @@ partial class ComputeShaderDescriptorGenerator
|
||||
Dictionary<IFieldSymbol, string> constantDefinitions = new(SymbolEqualityComparer.Default);
|
||||
|
||||
// Setup the semantic model and basic properties
|
||||
INamedTypeSymbol? pixelShaderSymbol = structDeclarationSymbol.AllInterfaces.FirstOrDefault(static interfaceSymbol => interfaceSymbol is { IsGenericType: true, Name: nameof(IComputeShader<byte>) });
|
||||
INamedTypeSymbol? pixelShaderSymbol = structDeclarationSymbol.AllInterfaces.FirstOrDefault(static interfaceSymbol => interfaceSymbol is { IsGenericType: true, Name: "IComputeShader" });
|
||||
bool isComputeShader = pixelShaderSymbol is null;
|
||||
string? implicitTextureType = isComputeShader ? null : HlslKnownTypes.GetMappedNameForPixelShaderType(pixelShaderSymbol!);
|
||||
|
||||
@@ -391,12 +391,12 @@ partial class ComputeShaderDescriptorGenerator
|
||||
|
||||
bool isShaderEntryPoint =
|
||||
(isComputeShader &&
|
||||
methodSymbol.Name == nameof(IComputeShader.Execute) &&
|
||||
methodSymbol.Name == "Execute" &&
|
||||
methodSymbol.ReturnsVoid &&
|
||||
methodSymbol.TypeParameters.Length == 0 &&
|
||||
methodSymbol.Parameters.Length == 0) ||
|
||||
(!isComputeShader &&
|
||||
methodSymbol.Name == nameof(IComputeShader<byte>.Execute) &&
|
||||
methodSymbol.Name == "Execute" &&
|
||||
methodSymbol.ReturnType is not null && // TODO: match for pixel type
|
||||
methodSymbol.TypeParameters.Length == 0 &&
|
||||
methodSymbol.Parameters.Length == 0);
|
||||
|
||||
@@ -67,8 +67,6 @@
|
||||
<Compile Include="..\ComputeSharp\Dispatch\GroupSize.cs" Link="ComputeSharp\Dispatch\GroupSize.cs" />
|
||||
<Compile Include="..\ComputeSharp\Dispatch\ThreadIds.cs" Link="ComputeSharp\Dispatch\ThreadIds.cs" />
|
||||
<Compile Include="..\ComputeSharp\Dispatch\ThreadIds.Normalized.cs" Link="ComputeSharp\Dispatch\ThreadIds.Normalized.cs" />
|
||||
<Compile Include="..\ComputeSharp\Interfaces\IComputeShader.cs" Link="ComputeSharp\Interfaces\IComputeShader.cs" />
|
||||
<Compile Include="..\ComputeSharp\Interfaces\IComputeShader{TPixel}.cs" Link="ComputeSharp\Interfaces\IComputeShader{TPixel}.cs" />
|
||||
<Compile Include="..\ComputeSharp\Graphics\Helpers\AlignmentHelper.cs" Link="ComputeSharp\Graphics\Helpers\AlignmentHelper.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする