https://github.com/shader-slang/slang
Raw File
Tip revision: b05b126e0975f84e3505b2271e06d567e1c13692 authored by Yong He on 15 August 2023, 00:58:29 UTC
Update target-deps.json (#3103)
Tip revision: b05b126
slang-ast-modifier.cpp
// slang-ast-modifier.cpp
#include "slang-ast-modifier.h"
#include "slang-ast-expr.h"

namespace Slang
{
const OrderedDictionary<DeclRefBase*, SubtypeWitness*>& DifferentiableAttribute::getMapTypeToIDifferentiableWitness()
{
    for (Index i = m_mapToIDifferentiableWitness.getCount(); i < m_typeToIDifferentiableWitnessMappings.getCount(); i++)
        m_mapToIDifferentiableWitness.add(m_typeToIDifferentiableWitnessMappings[i].key, m_typeToIDifferentiableWitnessMappings[i].value);
    return m_mapToIDifferentiableWitness;
}
} // namespace Slang
back to top