https://github.com/shader-slang/slang
Raw File
Tip revision: 27fd4b453aeae4626a043ffaa471d83f4bd39cff authored by Robert Stepinski on 22 November 2019, 23:20:18 UTC
Add command line option to override language file extension (#1135)
Tip revision: 27fd4b4
slang-reflection.h
#ifndef SLANG_REFLECTION_H
#define SLANG_REFLECTION_H

#include "../core/slang-basic.h"
#include "slang-syntax.h"

#include "../../slang.h"

namespace Slang {

class ProgramLayout;
class TypeLayout;

//

SlangTypeKind getReflectionTypeKind(Type* type);

SlangTypeKind getReflectionParameterCategory(TypeLayout* typeLayout);

UInt getReflectionFieldCount(Type* type);
UInt getReflectionFieldByIndex(Type* type, UInt index);
UInt getReflectionFieldByIndex(TypeLayout* typeLayout, UInt index);

}

#endif // SLANG_REFLECTION_H
back to top