Decouple resources model in D3D12 generator
このコミットが含まれているのは:
1 親
5388a092f2
コミット
55fd665668
7ファイル変更
+63
-55
検索条件に一致するファイルはありません
@@ -7,14 +7,6 @@ namespace ComputeSharp.SourceGenerators.Models;
|
||||
/// </summary>
|
||||
internal abstract record FieldInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// A captured resource (either a buffer or a texture).
|
||||
/// </summary>
|
||||
/// <param name="FieldName">The name of the resource field.</param>
|
||||
/// <param name="TypeName">The full metadata name for the resource type.</param>
|
||||
/// <param name="Offset">The offset for the resource within the root signature.</param>
|
||||
public sealed record Resource(string FieldName, string TypeName, int Offset) : FieldInfo;
|
||||
|
||||
/// <summary>
|
||||
/// A captured primitive value (either a scalar, a vector, or a linear matrix).
|
||||
/// </summary>
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace ComputeSharp.SourceGenerators.Models;
|
||||
|
||||
/// <summary>
|
||||
/// A model describing a captured resource (either a buffer or a texture).
|
||||
/// </summary>
|
||||
/// <param name="FieldName">The name of the resource field.</param>
|
||||
/// <param name="TypeName">The full metadata name for the resource type.</param>
|
||||
/// <param name="Offset">The offset for the resource within the root signature.</param>
|
||||
public sealed record ResourceInfo(string FieldName, string TypeName, int Offset);
|
||||
@@ -15,6 +15,7 @@ namespace ComputeSharp.SourceGenerators.Models;
|
||||
/// <param name="ConstantBufferSizeInBytes">The size of the shader constant buffer.</param>
|
||||
/// <param name="ResourceCount">The total number of captured resources in the shader.</param>
|
||||
/// <param name="Fields">The description on shader instance fields.</param>
|
||||
/// <param name="Resources">The description on shader captured resources.</param>
|
||||
/// <param name="ResourceDescriptors">The sequence of resource descriptors for the shader.</param>
|
||||
/// <param name="HlslInfoKey">The key with processed info on the shader.</param>
|
||||
/// <param name="HlslInfo">The value with processed info on the shader.</param>
|
||||
@@ -29,6 +30,7 @@ internal sealed record ShaderInfo(
|
||||
int ConstantBufferSizeInBytes,
|
||||
int ResourceCount,
|
||||
EquatableArray<FieldInfo> Fields,
|
||||
EquatableArray<ResourceInfo> Resources,
|
||||
EquatableArray<ResourceDescriptor> ResourceDescriptors,
|
||||
HlslBytecodeInfoKey HlslInfoKey,
|
||||
HlslBytecodeInfo HlslInfo,
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする