Remove symbols from IShaderGenerator pipeline
このコミットが含まれているのは:
1 親
9eac3c779d
コミット
a205efe6fa
9ファイル変更
+283
-203
検索条件に一致するファイルはありません
@@ -25,14 +25,14 @@ partial class IShaderGenerator
|
||||
/// Explores a given type hierarchy and generates statements to load fields.
|
||||
/// </summary>
|
||||
/// <param name="structDeclarationSymbol">The current shader type being explored.</param>
|
||||
/// <param name="shaderInterfaceType">The type of shader interface urrently being processed.</param>
|
||||
/// <param name="shaderType">The type of shader currently being processed.</param>
|
||||
/// <param name="resourceCount">The total number of captured resources in the shader.</param>
|
||||
/// <param name="root32BitConstantCount">The total number of needed 32 bit constants in the shader root signature.</param>
|
||||
/// <param name="diagnostics">The resulting diagnostics from the processing operation.</param>
|
||||
/// <returns>The sequence of <see cref="FieldInfo"/> instances for all captured resources and values.</returns>
|
||||
public static ImmutableArray<FieldInfo> GetInfo(
|
||||
ITypeSymbol structDeclarationSymbol,
|
||||
Type shaderInterfaceType,
|
||||
ShaderType shaderType,
|
||||
out int resourceCount,
|
||||
out int root32BitConstantCount,
|
||||
out ImmutableArray<DiagnosticInfo> diagnostics)
|
||||
@@ -92,7 +92,7 @@ partial class IShaderGenerator
|
||||
|
||||
// Setup the resource and byte offsets for tracking. Pixel shaders have only two
|
||||
// implicitly captured int values, as they're always dispatched over a 2D texture.
|
||||
bool isComputeShader = shaderInterfaceType == typeof(IComputeShader);
|
||||
bool isComputeShader = shaderType == ShaderType.ComputeShader;
|
||||
int initialRawDataOffset = sizeof(int) * (isComputeShader ? 3 : 2);
|
||||
StrongBox<int> resourceOffsetAsBox = new();
|
||||
StrongBox<int> rawDataOffsetAsBox = new(initialRawDataOffset);
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする