36 строки
790 B
C++
36 строки
790 B
C++
// Copyright (c) The HLSL2GLSLFork Project Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE.txt file.
|
|
|
|
|
|
#ifndef _INITIALIZE_INCLUDED_
|
|
#define _INITIALIZE_INCLUDED_
|
|
|
|
#include "../Include/Common.h"
|
|
#include "SymbolTable.h"
|
|
#include "../../include/hlsl2glsl.h"
|
|
|
|
typedef TVector<TString> TBuiltInStrings;
|
|
|
|
class TBuiltIns
|
|
{
|
|
public:
|
|
POOL_ALLOCATOR_NEW_DELETE(GlobalPoolAllocator)
|
|
void initialize();
|
|
TBuiltInStrings* getBuiltInStrings()
|
|
{
|
|
return builtInStrings;
|
|
}
|
|
|
|
private:
|
|
|
|
TBuiltInStrings builtInStrings[EShLangCount];
|
|
};
|
|
|
|
void IdentifyBuiltIns(EShLanguage, TSymbolTable&);
|
|
extern "C" int InitPreprocessor(void);
|
|
extern "C" int FinalizePreprocessor(void);
|
|
|
|
#endif // _INITIALIZE_INCLUDED_
|
|
|