Decouple resources model in D3D12 generator

このコミットが含まれているのは:
Sergio Pedri committed 2023-10-17 00:43:28 +02:00
1 親 5388a092f2
コミット 55fd665668
7ファイル変更
+63 -55

検索条件に一致するファイルはありません

@@ -18,12 +18,12 @@ partial class ComputeShaderDescriptorGenerator
/// </summary>
/// <param name="isImplicitTextureUsed">Indicates whether the current shader uses an implicit texture.</param>
/// <param name="isSamplerUsed">Whether the static sampler is used by the shader.</param>
/// <param name="capturedFields">The sequence of captured fields for the shader.</param>
/// <param name="resources">The sequence of captured resources for the shader.</param>
/// <returns>The metadata info for the shader.</returns>
public static ImmutableArray<ResourceDescriptor> GetInfo(
bool isImplicitTextureUsed,
bool isSamplerUsed,
ImmutableArray<FieldInfo> capturedFields)
ImmutableArray<ResourceInfo> resources)
{
using ImmutableArrayBuilder<ResourceDescriptor> descriptors = new();
@@ -38,7 +38,7 @@ partial class ComputeShaderDescriptorGenerator
}
// Populate the sequence of resource descriptors
foreach (FieldInfo.Resource resource in capturedFields.OfType<FieldInfo.Resource>())
foreach (ResourceInfo resource in resources)
{
if (HlslKnownTypes.IsConstantBufferType(resource.TypeName))
{