https://github.com/shader-slang/slang
Raw File
Tip revision: c12779b831477a39f7c8db3c88e75fc39c767bb0 authored by Ellie Hermaszewska on 13 September 2023, 16:56:53 UTC
Fix build with --enable-xlib=false (#3203)
Tip revision: c12779b
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