2019-01-09 10:55:11 +00:00
|
|
|
// Copyright(c) 2015-2019, NVIDIA CORPORATION. All rights reserved.
|
2017-12-21 11:40:48 +00:00
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <iostream>
|
2020-04-12 19:49:12 +00:00
|
|
|
#include <map>
|
2017-12-21 11:40:48 +00:00
|
|
|
#include <set>
|
|
|
|
#include <tinyxml2.h>
|
2020-04-12 19:49:12 +00:00
|
|
|
#include <vector>
|
2017-12-21 11:40:48 +00:00
|
|
|
|
|
|
|
class VulkanHppGenerator
|
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
public:
|
|
|
|
VulkanHppGenerator( tinyxml2::XMLDocument const & document );
|
|
|
|
|
|
|
|
void appendBaseTypes( std::string & str ) const;
|
|
|
|
void appendBitmasks( std::string & str ) const;
|
|
|
|
void appendDispatchLoaderDynamic( std::string & str ); // use vkGet*ProcAddress to get function pointers
|
|
|
|
void appendDispatchLoaderStatic( std::string & str ); // use exported symbols from loader
|
|
|
|
void appendDispatchLoaderDefault(
|
|
|
|
std::string & str ); // typedef to DispatchLoaderStatic or undefined type, based on VK_NO_PROTOTYPES
|
|
|
|
void appendEnums( std::string & str ) const;
|
2020-07-22 08:20:05 +00:00
|
|
|
void appendHandles( std::string & str );
|
2020-08-18 07:46:34 +00:00
|
|
|
void appendHandlesCommandDefinitions( std::string & str ) const;
|
2020-04-12 19:49:12 +00:00
|
|
|
void appendHashStructures( std::string & str ) const;
|
|
|
|
void appendResultExceptions( std::string & str ) const;
|
2020-07-22 08:20:05 +00:00
|
|
|
void appendStructs( std::string & str );
|
2020-04-12 19:49:12 +00:00
|
|
|
void appendStructureChainValidation( std::string & str );
|
|
|
|
void appendThrowExceptions( std::string & str ) const;
|
2020-04-21 12:26:32 +00:00
|
|
|
void appendIndexTypeTraits( std::string & str ) const;
|
2020-04-12 19:49:12 +00:00
|
|
|
std::string const & getTypesafeCheck() const;
|
|
|
|
std::string const & getVersion() const;
|
|
|
|
std::string const & getVulkanLicenseHeader() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
struct BaseTypeData
|
|
|
|
{
|
|
|
|
BaseTypeData( std::string const & type_, int line ) : type( type_ ), xmlLine( line ) {}
|
|
|
|
|
|
|
|
std::string type;
|
|
|
|
int xmlLine;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct BitmaskData
|
|
|
|
{
|
|
|
|
BitmaskData( std::string const & r, std::string const & t, int line )
|
|
|
|
: requirements( r ), type( t ), xmlLine( line )
|
|
|
|
{}
|
|
|
|
|
|
|
|
std::string requirements;
|
|
|
|
std::string type;
|
|
|
|
std::string alias;
|
|
|
|
int xmlLine;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct NameData
|
|
|
|
{
|
|
|
|
std::string name;
|
|
|
|
std::vector<std::string> arraySizes;
|
|
|
|
std::string bitCount;
|
|
|
|
};
|
|
|
|
|
2020-05-18 10:02:10 +00:00
|
|
|
struct TypeInfo
|
2020-04-12 19:49:12 +00:00
|
|
|
{
|
|
|
|
std::string compose() const;
|
|
|
|
|
2020-05-18 10:02:10 +00:00
|
|
|
bool operator==( TypeInfo const & rhs ) const
|
2017-12-21 11:40:48 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
return ( prefix == rhs.prefix ) && ( type == rhs.type ) && ( postfix == rhs.postfix );
|
|
|
|
}
|
|
|
|
|
2020-09-15 08:23:19 +00:00
|
|
|
bool isConstPointer() const
|
|
|
|
{
|
|
|
|
return ( prefix.find( "const" ) != std::string::npos ) && ( postfix.find( '*' ) != std::string::npos );
|
|
|
|
}
|
|
|
|
|
2020-09-02 13:00:06 +00:00
|
|
|
bool isNonConstPointer() const
|
|
|
|
{
|
|
|
|
return ( prefix.find( "const" ) == std::string::npos ) && ( postfix.find( '*' ) != std::string::npos );
|
|
|
|
}
|
|
|
|
|
|
|
|
bool isValue() const
|
|
|
|
{
|
2020-09-25 21:45:55 +00:00
|
|
|
return ( ( prefix.find( '*' ) == std::string::npos ) && ( postfix.find( '*' ) == std::string::npos ) );
|
2020-09-02 13:00:06 +00:00
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
std::string prefix;
|
|
|
|
std::string type;
|
|
|
|
std::string postfix;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ParamData
|
|
|
|
{
|
|
|
|
ParamData( int line ) : optional( false ), xmlLine( line ) {}
|
|
|
|
|
2020-05-18 10:02:10 +00:00
|
|
|
TypeInfo type;
|
2020-04-12 19:49:12 +00:00
|
|
|
std::string name;
|
|
|
|
std::vector<std::string> arraySizes;
|
|
|
|
std::string len;
|
|
|
|
bool optional;
|
|
|
|
int xmlLine;
|
|
|
|
};
|
|
|
|
|
2020-08-18 07:46:34 +00:00
|
|
|
struct CommandAliasData
|
|
|
|
{
|
|
|
|
CommandAliasData( int line ) : xmlLine( line ) {}
|
|
|
|
|
|
|
|
std::set<std::string> extensions;
|
|
|
|
std::string feature;
|
2020-09-02 13:00:06 +00:00
|
|
|
int xmlLine;
|
2020-08-18 07:46:34 +00:00
|
|
|
};
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
struct CommandData
|
|
|
|
{
|
|
|
|
CommandData( int line ) : xmlLine( line ) {}
|
|
|
|
|
2020-09-02 13:00:06 +00:00
|
|
|
std::map<std::string, CommandAliasData> aliasData;
|
|
|
|
std::vector<std::string> errorCodes;
|
|
|
|
std::set<std::string> extensions;
|
|
|
|
std::string feature;
|
|
|
|
std::string handle;
|
|
|
|
std::vector<ParamData> params;
|
|
|
|
std::string returnType;
|
|
|
|
std::vector<std::string> successCodes;
|
|
|
|
int xmlLine;
|
2020-04-12 19:49:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct EnumValueData
|
|
|
|
{
|
2020-07-13 09:45:47 +00:00
|
|
|
EnumValueData( int line, std::string const & vulkan, std::string const & vk, bool singleBit_ )
|
2020-07-23 16:14:05 +00:00
|
|
|
: vulkanValue( vulkan ), vkValue( vk ), singleBit( singleBit_ ), xmlLine( line )
|
2020-04-12 19:49:12 +00:00
|
|
|
{}
|
|
|
|
|
|
|
|
std::string vulkanValue;
|
|
|
|
std::string vkValue;
|
|
|
|
bool singleBit;
|
2020-07-13 09:45:47 +00:00
|
|
|
int xmlLine;
|
2020-04-12 19:49:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct EnumData
|
|
|
|
{
|
2020-04-30 09:30:17 +00:00
|
|
|
void addEnumAlias( int line, std::string const & name, std::string const & alias, std::string const & vkName );
|
2020-04-12 19:49:12 +00:00
|
|
|
void addEnumValue( int line,
|
|
|
|
std::string const & valueName,
|
|
|
|
bool bitmask,
|
|
|
|
bool bitpos,
|
|
|
|
std::string const & prefix,
|
|
|
|
std::string const & postfix,
|
|
|
|
std::string const & tag );
|
|
|
|
|
2020-05-18 10:02:10 +00:00
|
|
|
std::string alias; // alias for this enum
|
|
|
|
std::map<std::string, std::pair<std::string, std::string>> aliases; // map from name to alias and vk-name
|
|
|
|
bool isBitmask = false;
|
|
|
|
std::vector<EnumValueData> values;
|
2020-04-12 19:49:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct ExtensionData
|
|
|
|
{
|
2020-05-18 10:02:10 +00:00
|
|
|
ExtensionData( int line,
|
|
|
|
std::string const & deprecatedBy_,
|
|
|
|
std::string const & obsoletedBy_,
|
|
|
|
std::string const & platform_,
|
|
|
|
std::string const & promotedTo_ )
|
2020-06-15 06:03:17 +00:00
|
|
|
: deprecatedBy( deprecatedBy_ )
|
2020-05-18 10:02:10 +00:00
|
|
|
, obsoletedBy( obsoletedBy_ )
|
|
|
|
, platform( platform_ )
|
|
|
|
, promotedTo( promotedTo_ )
|
2020-06-15 06:03:17 +00:00
|
|
|
, xmlLine( line )
|
2020-05-18 10:02:10 +00:00
|
|
|
{}
|
2020-04-12 19:49:12 +00:00
|
|
|
|
|
|
|
std::string deprecatedBy;
|
|
|
|
std::string obsoletedBy;
|
2020-05-18 10:02:10 +00:00
|
|
|
std::string platform;
|
2020-04-12 19:49:12 +00:00
|
|
|
std::string promotedTo;
|
|
|
|
std::map<std::string, int> requirements;
|
|
|
|
int xmlLine;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct FuncPointerData
|
|
|
|
{
|
|
|
|
FuncPointerData( std::string const & r, int line ) : requirements( r ), xmlLine( line ) {}
|
|
|
|
|
|
|
|
std::string requirements;
|
|
|
|
int xmlLine;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct HandleData
|
|
|
|
{
|
|
|
|
HandleData( std::vector<std::string> const & p, int line ) : parents( p ), xmlLine( line ) {}
|
|
|
|
|
2020-05-18 10:02:10 +00:00
|
|
|
std::string alias;
|
|
|
|
std::set<std::string> childrenHandles;
|
|
|
|
std::set<std::string> commands;
|
|
|
|
std::string deleteCommand;
|
|
|
|
std::string deletePool;
|
|
|
|
std::vector<std::string> parents;
|
|
|
|
int xmlLine;
|
2020-04-12 19:49:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct MemberData
|
|
|
|
{
|
|
|
|
MemberData( int line ) : xmlLine( line ) {}
|
|
|
|
|
2020-05-18 10:02:10 +00:00
|
|
|
TypeInfo type;
|
2020-04-12 19:49:12 +00:00
|
|
|
std::string name;
|
|
|
|
std::vector<std::string> arraySizes;
|
|
|
|
std::string bitCount;
|
2020-07-01 12:43:37 +00:00
|
|
|
std::vector<std::string> len;
|
2020-07-08 08:58:37 +00:00
|
|
|
bool noAutoValidity = false;
|
|
|
|
bool optional = false;
|
2020-06-15 06:03:17 +00:00
|
|
|
std::string selection;
|
|
|
|
std::string selector;
|
2020-07-13 09:45:47 +00:00
|
|
|
std::vector<std::string> values;
|
2020-04-12 19:49:12 +00:00
|
|
|
std::string usedConstant;
|
|
|
|
int xmlLine;
|
|
|
|
};
|
|
|
|
|
2020-05-18 10:02:10 +00:00
|
|
|
struct PlatformData
|
|
|
|
{
|
|
|
|
PlatformData( std::string const & protect_ ) : protect( protect_ ) {}
|
|
|
|
|
|
|
|
std::string protect;
|
|
|
|
};
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
struct StructureData
|
|
|
|
{
|
2020-06-15 06:03:17 +00:00
|
|
|
StructureData( std::vector<std::string> const & extends, int line ) : structExtends( extends ), xmlLine( line ) {}
|
2020-04-12 19:49:12 +00:00
|
|
|
|
2020-05-11 09:52:25 +00:00
|
|
|
bool allowDuplicate = false;
|
|
|
|
bool isUnion = false;
|
|
|
|
bool returnedOnly = false;
|
2020-04-12 19:49:12 +00:00
|
|
|
std::vector<MemberData> members;
|
|
|
|
std::vector<std::string> structExtends;
|
|
|
|
std::set<std::string> aliases;
|
|
|
|
std::string subStruct;
|
|
|
|
int xmlLine;
|
|
|
|
};
|
|
|
|
|
|
|
|
enum class TypeCategory
|
|
|
|
{
|
|
|
|
Bitmask,
|
|
|
|
BaseType,
|
|
|
|
Define,
|
|
|
|
Enum,
|
|
|
|
FuncPointer,
|
|
|
|
Handle,
|
|
|
|
Requires,
|
|
|
|
Struct,
|
|
|
|
Union,
|
|
|
|
Unknown
|
|
|
|
};
|
|
|
|
|
2020-05-18 10:02:10 +00:00
|
|
|
struct TypeData
|
|
|
|
{
|
|
|
|
TypeData( TypeCategory category_ ) : category( category_ ) {}
|
|
|
|
|
|
|
|
TypeCategory category;
|
|
|
|
std::set<std::string> extensions;
|
|
|
|
std::string feature;
|
|
|
|
};
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
private:
|
|
|
|
void appendArgumentPlainType( std::string & str, ParamData const & paramData ) const;
|
|
|
|
void appendArguments( std::string & str,
|
|
|
|
CommandData const & commandData,
|
|
|
|
size_t returnParamIndex,
|
|
|
|
size_t templateParamIndex,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices,
|
|
|
|
bool twoStep,
|
|
|
|
bool firstCall,
|
|
|
|
bool singular,
|
|
|
|
size_t from,
|
|
|
|
size_t to ) const;
|
|
|
|
void appendArgumentVector( std::string & str,
|
|
|
|
size_t paramIndex,
|
|
|
|
ParamData const & paramData,
|
|
|
|
size_t returnParamIndex,
|
|
|
|
size_t templateParamIndex,
|
|
|
|
bool twoStep,
|
|
|
|
bool firstCall,
|
|
|
|
bool singular ) const;
|
2020-08-17 08:21:39 +00:00
|
|
|
void appendArgumentVulkanType( std::string & str, ParamData const & paramData, bool isLocalVariable ) const;
|
2020-04-12 19:49:12 +00:00
|
|
|
void appendBitmask( std::string & os,
|
|
|
|
std::string const & bitmaskName,
|
|
|
|
std::string const & bitmaskType,
|
|
|
|
std::string const & bitmaskAlias,
|
|
|
|
std::string const & enumName,
|
|
|
|
std::vector<EnumValueData> const & enumValues ) const;
|
|
|
|
void appendBitmaskToStringFunction( std::string & str,
|
|
|
|
std::string const & flagsName,
|
|
|
|
std::string const & enumName,
|
|
|
|
std::vector<EnumValueData> const & enumValues ) const;
|
|
|
|
void appendCall( std::string & str,
|
|
|
|
std::string const & name,
|
|
|
|
CommandData const & commandData,
|
|
|
|
size_t returnParamIndex,
|
|
|
|
size_t templateParamIndex,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices,
|
|
|
|
bool twoStep,
|
|
|
|
bool firstCall,
|
|
|
|
bool singular ) const;
|
|
|
|
void appendCommand( std::string & str,
|
|
|
|
std::string const & indentation,
|
|
|
|
std::string const & name,
|
|
|
|
CommandData const & commandData,
|
|
|
|
bool definition ) const;
|
2020-09-17 10:09:43 +00:00
|
|
|
void appendCommandEnumerateTwoVectors( std::string & str,
|
|
|
|
std::string const & name,
|
|
|
|
CommandData const & commandData,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices,
|
|
|
|
bool definition ) const;
|
2020-09-28 14:34:50 +00:00
|
|
|
void appendCommandEnumerateVoid( std::string & str,
|
|
|
|
std::string const & name,
|
|
|
|
CommandData const & commandData,
|
|
|
|
std::pair<size_t, size_t> const & vectorParamIndex,
|
|
|
|
bool definition ) const;
|
2020-09-17 10:09:43 +00:00
|
|
|
void appendCommandGetVector( std::string & str,
|
|
|
|
std::string const & name,
|
|
|
|
CommandData const & commandData,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices,
|
|
|
|
bool definition ) const;
|
2020-09-29 10:21:27 +00:00
|
|
|
void appendCommandSimple( std::string & str,
|
|
|
|
std::string const & name,
|
|
|
|
CommandData const & commandData,
|
|
|
|
bool definition,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices ) const;
|
2020-09-24 09:01:34 +00:00
|
|
|
void appendCommandSimpleVoid( std::string & str,
|
|
|
|
std::string const & name,
|
|
|
|
CommandData const & commandData,
|
|
|
|
bool definition,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices ) const;
|
2020-09-24 15:34:41 +00:00
|
|
|
void appendCommandTrivial( std::string & str,
|
|
|
|
std::string const & name,
|
|
|
|
CommandData const & commandData,
|
|
|
|
bool definition ) const;
|
2020-09-22 08:22:19 +00:00
|
|
|
void appendCommandTrivialVoid( std::string & str,
|
|
|
|
std::string const & name,
|
|
|
|
CommandData const & commandData,
|
|
|
|
bool definition ) const;
|
2020-09-22 16:20:08 +00:00
|
|
|
void appendCommandTwoVectorsVoid( std::string & str,
|
|
|
|
std::string const & name,
|
|
|
|
CommandData const & commandData,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices,
|
|
|
|
bool definition ) const;
|
2020-08-18 07:46:34 +00:00
|
|
|
void appendDispatchLoaderDynamicCommand( std::string & str,
|
|
|
|
std::string & emptyFunctions,
|
|
|
|
std::string & deviceFunctions,
|
|
|
|
std::string & deviceFunctionsInstance,
|
|
|
|
std::string & instanceFunctions,
|
|
|
|
std::string const & commandName,
|
|
|
|
CommandData const & commandData );
|
2020-09-02 13:00:06 +00:00
|
|
|
void appendEnum( std::string & str, std::pair<std::string, EnumData> const & enumData ) const;
|
2020-04-12 19:49:12 +00:00
|
|
|
void appendEnumInitializer( std::string & str,
|
2020-05-18 10:02:10 +00:00
|
|
|
TypeInfo const & type,
|
2020-04-12 19:49:12 +00:00
|
|
|
std::vector<std::string> const & arraySizes,
|
2020-04-29 09:45:10 +00:00
|
|
|
std::vector<EnumValueData> const & values ) const;
|
2020-04-12 19:49:12 +00:00
|
|
|
void appendEnumToString( std::string & str, std::pair<std::string, EnumData> const & enumData ) const;
|
|
|
|
void appendFunction( std::string & str,
|
|
|
|
std::string const & indentation,
|
|
|
|
std::string const & name,
|
|
|
|
CommandData const & commandData,
|
|
|
|
size_t returnParamIndex,
|
|
|
|
size_t templateParamIndex,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices,
|
|
|
|
bool twoStep,
|
|
|
|
std::string const & enhancedReturnType,
|
|
|
|
bool definition,
|
|
|
|
bool enhanced,
|
|
|
|
bool singular,
|
|
|
|
bool unique,
|
|
|
|
bool isStructureChain,
|
2020-07-23 16:14:05 +00:00
|
|
|
bool withAllocatorArgument ) const;
|
2020-04-12 19:49:12 +00:00
|
|
|
std::string appendFunctionBodyEnhancedLocalReturnVariable( std::string & str,
|
|
|
|
std::string const & indentation,
|
|
|
|
CommandData const & commandData,
|
|
|
|
size_t returnParamIndex,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices,
|
|
|
|
bool twoStep,
|
|
|
|
std::string const & enhancedReturnType,
|
|
|
|
bool singular,
|
|
|
|
bool isStructureChain,
|
|
|
|
bool withAllocator ) const;
|
|
|
|
void appendFunctionBodyEnhancedLocalReturnVariableVectorSize( std::string & str,
|
|
|
|
std::vector<ParamData> const & params,
|
|
|
|
std::pair<size_t, size_t> const & vectorParamIndex,
|
|
|
|
size_t returnParamIndex,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices,
|
|
|
|
bool withAllocator ) const;
|
|
|
|
void appendFunctionBodyEnhancedMultiVectorSizeCheck( std::string & str,
|
|
|
|
std::string const & indentation,
|
|
|
|
std::string const & name,
|
|
|
|
CommandData const & commandData,
|
|
|
|
size_t returnParamIndex,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices ) const;
|
|
|
|
void appendFunctionBodyEnhancedReturnResultValue( std::string & str,
|
|
|
|
std::string const & indentation,
|
|
|
|
std::string const & returnName,
|
|
|
|
std::string const & name,
|
|
|
|
CommandData const & commandData,
|
|
|
|
size_t returnParamIndex,
|
|
|
|
bool twoStep,
|
|
|
|
bool singular,
|
|
|
|
bool unique ) const;
|
|
|
|
void appendFunctionBodyEnhancedTwoStep( std::string & str,
|
|
|
|
std::string const & indentation,
|
|
|
|
std::string const & name,
|
|
|
|
CommandData const & commandData,
|
|
|
|
size_t returnParamIndex,
|
|
|
|
size_t templateParamIndex,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices,
|
|
|
|
bool singular,
|
|
|
|
std::string const & returnName ) const;
|
|
|
|
void appendFunctionBodyEnhancedVectorOfStructureChain( std::string & str,
|
|
|
|
std::string const & indentation,
|
|
|
|
std::string const & name,
|
|
|
|
CommandData const & commandData,
|
|
|
|
size_t returnParamIndex,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices,
|
|
|
|
bool withAllocator ) const;
|
|
|
|
void appendFunctionBodyEnhancedVectorOfUniqueHandles( std::string & str,
|
|
|
|
std::string const & indentation,
|
|
|
|
std::string const & name,
|
|
|
|
CommandData const & commandData,
|
|
|
|
size_t returnParamIndex,
|
|
|
|
size_t templateParamIndex,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices,
|
|
|
|
bool twoStep,
|
|
|
|
bool singular,
|
|
|
|
bool withAllocator ) const;
|
|
|
|
void appendFunctionBodyStandardArgument( std::string & str,
|
2020-05-18 10:02:10 +00:00
|
|
|
TypeInfo const & typeData,
|
2020-04-12 19:49:12 +00:00
|
|
|
std::string const & name,
|
|
|
|
std::vector<std::string> const & arraySizes ) const;
|
|
|
|
bool appendFunctionHeaderArgumentEnhanced( std::string & str,
|
|
|
|
ParamData const & param,
|
|
|
|
size_t paramIndex,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices,
|
|
|
|
bool skip,
|
|
|
|
bool argEncountered,
|
|
|
|
bool isTemplateParam,
|
|
|
|
bool isLastArgument,
|
|
|
|
bool singular,
|
|
|
|
bool withDefaults,
|
|
|
|
bool withAllocator ) const;
|
|
|
|
void appendFunctionHeaderArgumentEnhancedPointer( std::string & str,
|
|
|
|
ParamData const & param,
|
|
|
|
std::string const & strippedParameterName,
|
|
|
|
bool withDefaults,
|
|
|
|
bool withAllocator ) const;
|
|
|
|
void appendFunctionHeaderArgumentEnhancedSimple(
|
|
|
|
std::string & str, ParamData const & param, bool lastArgument, bool withDefaults, bool withAllocator ) const;
|
|
|
|
void appendFunctionHeaderArgumentEnhancedVector( std::string & str,
|
|
|
|
ParamData const & param,
|
|
|
|
std::string const & strippedParameterName,
|
|
|
|
bool hasSizeParam,
|
|
|
|
bool isTemplateParam,
|
|
|
|
bool singular,
|
|
|
|
bool withDefaults,
|
|
|
|
bool withAllocator ) const;
|
|
|
|
void appendFunctionHeaderArguments( std::string & str,
|
|
|
|
CommandData const & commandData,
|
|
|
|
size_t returnParamIndex,
|
|
|
|
size_t templateParamIndex,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices,
|
|
|
|
bool enhanced,
|
|
|
|
bool singular,
|
|
|
|
bool withDefaults,
|
|
|
|
bool withAllocator ) const;
|
2020-09-24 15:34:41 +00:00
|
|
|
bool appendFunctionHeaderArgumentStandard( std::string & str, ParamData const & param, bool argEncountered ) const;
|
2020-04-12 19:49:12 +00:00
|
|
|
void appendFunctionHeaderReturnType( std::string & str,
|
|
|
|
CommandData const & commandData,
|
|
|
|
size_t returnParamIndex,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices,
|
|
|
|
std::string const & enhancedReturnType,
|
|
|
|
bool enhanced,
|
|
|
|
bool twoStep,
|
|
|
|
bool singular,
|
|
|
|
bool unique,
|
|
|
|
bool isStructureChain ) const;
|
|
|
|
void appendFunctionHeaderTemplate( std::string & str,
|
|
|
|
std::string const & indentation,
|
|
|
|
size_t returnParamIndex,
|
|
|
|
size_t templateParamIndex,
|
|
|
|
std::string const & enhancedReturnType,
|
|
|
|
bool enhanced,
|
|
|
|
bool singular,
|
|
|
|
bool unique,
|
|
|
|
bool withDefault,
|
2020-07-23 16:14:05 +00:00
|
|
|
bool isStructureChain,
|
|
|
|
bool withAllocatorArgument ) const;
|
|
|
|
void appendHandle( std::string & str, std::pair<std::string, HandleData> const & handle );
|
|
|
|
void appendStruct( std::string & str, std::pair<std::string, StructureData> const & structure );
|
2020-06-24 09:28:43 +00:00
|
|
|
void appendStructAssignmentOperators( std::string & str,
|
|
|
|
std::pair<std::string, StructureData> const & structure,
|
|
|
|
std::string const & prefix ) const;
|
2020-04-12 19:49:12 +00:00
|
|
|
void appendStructCompareOperators( std::string & str, std::pair<std::string, StructureData> const & structure ) const;
|
2020-06-24 09:28:43 +00:00
|
|
|
void appendStructConstructors( std::string & str,
|
|
|
|
std::pair<std::string, StructureData> const & structData,
|
|
|
|
std::string const & prefix ) const;
|
2020-07-08 08:58:37 +00:00
|
|
|
void appendStructConstructorsEnhanced( std::string & str,
|
|
|
|
std::pair<std::string, StructureData> const & structData,
|
|
|
|
std::string const & prefix ) const;
|
|
|
|
bool appendStructConstructorArgument( std::string & str,
|
|
|
|
bool listedArgument,
|
|
|
|
MemberData const & memberData,
|
|
|
|
bool withDefault ) const;
|
2020-04-21 12:26:32 +00:00
|
|
|
std::string appendStructMembers( std::string & str,
|
2020-04-12 19:49:12 +00:00
|
|
|
std::pair<std::string, StructureData> const & structData,
|
|
|
|
std::string const & prefix ) const;
|
2020-07-01 12:43:37 +00:00
|
|
|
void appendStructSetter( std::string & str,
|
|
|
|
std::string const & structureName,
|
|
|
|
std::vector<MemberData> const & memberData,
|
|
|
|
size_t index ) const;
|
2020-04-21 12:26:32 +00:00
|
|
|
void appendStructSubConstructor( std::string & str,
|
|
|
|
std::pair<std::string, StructureData> const & structData,
|
|
|
|
std::string const & prefix ) const;
|
|
|
|
void appendStructure( std::string & str, std::pair<std::string, StructureData> const & structure ) const;
|
2020-07-22 08:20:05 +00:00
|
|
|
void appendType( std::string & str, std::string const & typeName );
|
2020-04-21 12:26:32 +00:00
|
|
|
void appendUnion( std::string & str, std::pair<std::string, StructureData> const & structure ) const;
|
|
|
|
void appendUniqueTypes( std::string & str,
|
|
|
|
std::string const & parentType,
|
|
|
|
std::set<std::string> const & childrenTypes ) const;
|
2020-09-17 10:09:43 +00:00
|
|
|
std::string constructArgumentListEnhanced( std::vector<ParamData> const & params,
|
|
|
|
std::set<size_t> const & skippedParams,
|
2020-09-21 21:18:24 +00:00
|
|
|
bool definition,
|
2020-09-17 10:09:43 +00:00
|
|
|
bool withAllocators ) const;
|
|
|
|
std::string constructArgumentListStandard( std::vector<ParamData> const & params,
|
2020-09-24 15:34:41 +00:00
|
|
|
std::set<size_t> const & skippedParams,
|
|
|
|
bool definition ) const;
|
2020-09-22 16:20:08 +00:00
|
|
|
std::string constructCallArgument( ParamData const & param, bool enhanced ) const;
|
|
|
|
std::string constructCallArgumentsEnumerateVectors( std::vector<ParamData> const & params,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices,
|
|
|
|
bool vectorAsNullptr ) const;
|
|
|
|
std::string constructCallArgumentsGetVector( std::vector<ParamData> const & params,
|
|
|
|
std::pair<size_t, size_t> const & vectorParamIndices,
|
|
|
|
bool singular ) const;
|
2020-09-29 10:21:27 +00:00
|
|
|
std::string constructCallArgumentsStandard( std::vector<ParamData> const & params ) const;
|
2020-09-22 16:20:08 +00:00
|
|
|
std::string constructCallArgumentsVectors( std::vector<ParamData> const & params,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices ) const;
|
2020-09-17 10:09:43 +00:00
|
|
|
std::string constructCommandEnumerateTwoVectors( std::string const & name,
|
|
|
|
CommandData const & commandData,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices,
|
|
|
|
bool definition,
|
|
|
|
bool withAllocators ) const;
|
|
|
|
std::string constructCommandEnumerateTwoVectorsDeprecated( std::string const & name,
|
|
|
|
CommandData const & commandData,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices,
|
|
|
|
bool definition,
|
|
|
|
bool withAllocators ) const;
|
2020-09-28 14:34:50 +00:00
|
|
|
std::string constructCommandEnumerateVoid( std::string const & name,
|
|
|
|
CommandData const & commandData,
|
|
|
|
std::pair<size_t, size_t> const & vectorParamIndex,
|
|
|
|
bool definition,
|
|
|
|
bool withAllocators ) const;
|
2020-09-17 10:09:43 +00:00
|
|
|
std::string constructCommandGetVector( std::string const & name,
|
|
|
|
CommandData const & commandData,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices,
|
|
|
|
bool definition ) const;
|
|
|
|
std::string constructCommandGetVectorDeprecated( std::string const & name,
|
|
|
|
CommandData const & commandData,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices,
|
|
|
|
bool definition ) const;
|
|
|
|
std::string constructCommandGetVectorSingular( std::string const & name,
|
2020-09-15 08:23:19 +00:00
|
|
|
CommandData const & commandData,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices,
|
2020-09-17 10:09:43 +00:00
|
|
|
bool definition ) const;
|
2020-09-29 10:21:27 +00:00
|
|
|
std::string constructCommandSimple( std::string const & name,
|
|
|
|
CommandData const & commandData,
|
|
|
|
bool definition,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices ) const;
|
2020-09-24 09:01:34 +00:00
|
|
|
std::string constructCommandSimpleVoid( std::string const & name,
|
|
|
|
CommandData const & commandData,
|
|
|
|
bool definition,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices ) const;
|
2020-09-17 10:09:43 +00:00
|
|
|
std::string
|
|
|
|
constructCommandStandard( std::string const & name, CommandData const & commandData, bool definition ) const;
|
2020-09-21 21:18:24 +00:00
|
|
|
std::string
|
|
|
|
constructCommandStandardVoid( std::string const & name, CommandData const & commandData, bool definition ) const;
|
2020-09-22 16:20:08 +00:00
|
|
|
std::string constructCommandTwoVectorsVoid( std::string const & name,
|
|
|
|
CommandData const & commandData,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices,
|
|
|
|
bool definition,
|
|
|
|
bool withAllocators ) const;
|
2020-04-21 12:26:32 +00:00
|
|
|
std::string constructConstexprString( std::pair<std::string, StructureData> const & structData ) const;
|
2020-09-02 13:00:06 +00:00
|
|
|
std::string constructFunctionBodyEnhanced( std::string const & indentation,
|
|
|
|
std::string const & name,
|
|
|
|
CommandData const & commandData,
|
|
|
|
size_t returnParamIndex,
|
|
|
|
size_t templateParamIndex,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices,
|
|
|
|
bool twoStep,
|
|
|
|
std::string const & enhancedReturnType,
|
|
|
|
bool singular,
|
|
|
|
bool unique,
|
|
|
|
bool isStructureChain,
|
|
|
|
bool withAllocator ) const;
|
|
|
|
std::string constructFunctionBodyEnhancedSingleStep( std::string const & indentation,
|
|
|
|
std::string const & name,
|
|
|
|
CommandData const & commandData,
|
|
|
|
size_t returnParamIndex,
|
|
|
|
size_t templateParamIndex,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices,
|
|
|
|
bool singular ) const;
|
|
|
|
std::string constructFunctionBodyStandard( std::string const & indentation,
|
|
|
|
std::string const & commandName,
|
|
|
|
CommandData const & commandData ) const;
|
|
|
|
std::string constructFunctionHeaderArgumentsEnhanced( CommandData const & commandData,
|
|
|
|
size_t returnParamIndex,
|
|
|
|
size_t templateParamIndex,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices,
|
|
|
|
bool singular,
|
|
|
|
bool withDefaults,
|
|
|
|
bool withAllocator ) const;
|
|
|
|
std::string constructFunctionHeaderArgumentsStandard( CommandData const & commandData, bool withDefaults ) const;
|
2020-09-17 10:09:43 +00:00
|
|
|
std::string constructNoDiscardEnhanced( CommandData const & commandData ) const;
|
|
|
|
std::string constructNoDiscardStandard( CommandData const & commandData ) const;
|
|
|
|
std::string constructReturnType( CommandData const & commandData, std::string const & baseType ) const;
|
|
|
|
std::string constructSuccessCodeList( std::vector<std::string> const & successCodes ) const;
|
2020-09-24 15:34:41 +00:00
|
|
|
std::string constructVectorSizeCheck( std::string const & name,
|
|
|
|
CommandData const & commandData,
|
2020-09-24 09:01:34 +00:00
|
|
|
std::map<size_t, size_t> const & vectorParamIndices ) const;
|
2020-04-21 12:26:32 +00:00
|
|
|
void checkCorrectness();
|
|
|
|
bool containsArray( std::string const & type ) const;
|
|
|
|
bool containsUnion( std::string const & type ) const;
|
2020-09-24 15:34:41 +00:00
|
|
|
size_t determineDefaultStartIndex( std::vector<ParamData> const & params ) const;
|
2020-04-21 12:26:32 +00:00
|
|
|
std::string determineEnhancedReturnType( CommandData const & commandData,
|
|
|
|
size_t returnParamIndex,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices,
|
|
|
|
bool isStructureChain ) const;
|
|
|
|
size_t determineReturnParamIndex( CommandData const & commandData,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices,
|
|
|
|
bool twoStep ) const;
|
|
|
|
std::string determineSubStruct( std::pair<std::string, StructureData> const & structure ) const;
|
|
|
|
size_t determineTemplateParamIndex( std::vector<ParamData> const & params,
|
|
|
|
std::map<size_t, size_t> const & vectorParamIndices ) const;
|
2020-09-17 10:09:43 +00:00
|
|
|
std::vector<size_t> determineConstPointerParamIndices( std::vector<ParamData> const & params ) const;
|
|
|
|
std::vector<size_t> determineNonConstPointerParamIndices( std::vector<ParamData> const & params ) const;
|
2020-07-08 08:58:37 +00:00
|
|
|
std::map<size_t, size_t> determineVectorParamIndices( std::vector<ParamData> const & params ) const;
|
2020-09-28 14:34:50 +00:00
|
|
|
std::map<size_t, size_t> determineVectorParamIndicesNew( std::vector<ParamData> const & params ) const;
|
2020-07-08 08:58:37 +00:00
|
|
|
std::string generateLenInitializer(
|
|
|
|
std::vector<MemberData>::const_iterator mit,
|
|
|
|
std::map<std::vector<MemberData>::const_iterator,
|
|
|
|
std::vector<std::vector<MemberData>::const_iterator>>::const_iterator litit ) const;
|
2020-05-18 10:02:10 +00:00
|
|
|
std::pair<std::string, std::string> generateProtection( std::string const & feature,
|
|
|
|
std::set<std::string> const & extension ) const;
|
|
|
|
std::pair<std::string, std::string> generateProtection( std::string const & type, bool isAliased ) const;
|
2020-07-08 08:58:37 +00:00
|
|
|
std::string generateSizeCheck( std::vector<std::vector<MemberData>::const_iterator> const & arrayIts,
|
|
|
|
std::string const & structName,
|
|
|
|
std::string const & prefix ) const;
|
|
|
|
std::set<std::string> getPlatforms( std::set<std::string> const & extensions ) const;
|
|
|
|
bool isParam( std::string const & name, std::vector<ParamData> const & params ) const;
|
|
|
|
bool isParamIndirect( std::string const & name, std::vector<ParamData> const & params ) const;
|
|
|
|
bool isTwoStepAlgorithm( std::vector<ParamData> const & params ) const;
|
2020-08-18 07:46:34 +00:00
|
|
|
bool needsComplexBody( CommandData const & commandData ) const;
|
2020-04-12 19:49:12 +00:00
|
|
|
void readBaseType( tinyxml2::XMLElement const * element, std::map<std::string, std::string> const & attributes );
|
|
|
|
void readBitmask( tinyxml2::XMLElement const * element, std::map<std::string, std::string> const & attributes );
|
|
|
|
void readBitmaskAlias( tinyxml2::XMLElement const * element, std::map<std::string, std::string> const & attributes );
|
|
|
|
void readCommand( tinyxml2::XMLElement const * element );
|
|
|
|
void readCommand( tinyxml2::XMLElement const * element, std::map<std::string, std::string> const & attributess );
|
|
|
|
void readCommandAlias( tinyxml2::XMLElement const * element, std::map<std::string, std::string> const & attributes );
|
|
|
|
ParamData readCommandParam( tinyxml2::XMLElement const * element, std::vector<ParamData> const & params );
|
|
|
|
std::pair<std::string, std::string> readCommandProto( tinyxml2::XMLElement const * element );
|
|
|
|
void readCommands( tinyxml2::XMLElement const * element );
|
|
|
|
std::string readComment( tinyxml2::XMLElement const * element );
|
|
|
|
void readDefine( tinyxml2::XMLElement const * element, std::map<std::string, std::string> const & attributes );
|
|
|
|
void readEnum( tinyxml2::XMLElement const * element,
|
|
|
|
EnumData & enumData,
|
|
|
|
bool bitmask,
|
|
|
|
std::string const & prefix,
|
|
|
|
std::string const & postfix );
|
|
|
|
void readEnum( tinyxml2::XMLElement const * element,
|
|
|
|
std::map<std::string, std::string> const & attributes,
|
|
|
|
EnumData & enumData,
|
|
|
|
bool bitmask,
|
|
|
|
std::string const & prefix,
|
|
|
|
std::string const & postfix );
|
|
|
|
void readEnumAlias( tinyxml2::XMLElement const * element,
|
|
|
|
std::map<std::string, std::string> const & attributes,
|
|
|
|
EnumData & enumData,
|
|
|
|
bool bitmask,
|
|
|
|
std::string const & prefix,
|
|
|
|
std::string const & postfix );
|
|
|
|
void readEnumConstant( tinyxml2::XMLElement const * element );
|
|
|
|
void readEnums( tinyxml2::XMLElement const * element );
|
|
|
|
void readExtension( tinyxml2::XMLElement const * element );
|
|
|
|
void readExtensionDisabledCommand( tinyxml2::XMLElement const * element );
|
|
|
|
void readExtensionDisabledEnum( std::string const & extensionName, tinyxml2::XMLElement const * element );
|
|
|
|
void readExtensionDisabledRequire( std::string const & extensionName, tinyxml2::XMLElement const * element );
|
|
|
|
void readExtensionDisabledType( tinyxml2::XMLElement const * element );
|
|
|
|
void readExtensionRequire( tinyxml2::XMLElement const * element,
|
2020-05-18 10:02:10 +00:00
|
|
|
std::string const & extension,
|
2020-04-12 19:49:12 +00:00
|
|
|
std::string const & tag,
|
|
|
|
std::map<std::string, int> & requirements );
|
2020-05-18 10:02:10 +00:00
|
|
|
void readExtensionRequireCommand( tinyxml2::XMLElement const * element, std::string const & extension );
|
|
|
|
void readExtensionRequireType( tinyxml2::XMLElement const * element, std::string const & extension );
|
2020-04-12 19:49:12 +00:00
|
|
|
void readExtensions( tinyxml2::XMLElement const * element );
|
|
|
|
void readFeature( tinyxml2::XMLElement const * element );
|
2020-05-18 10:02:10 +00:00
|
|
|
void readFeatureRequire( tinyxml2::XMLElement const * element, std::string const & feature );
|
|
|
|
void readFeatureRequireCommand( tinyxml2::XMLElement const * element, std::string const & feature );
|
|
|
|
void readFeatureRequireType( tinyxml2::XMLElement const * element, std::string const & feature );
|
2020-04-12 19:49:12 +00:00
|
|
|
void readFuncpointer( tinyxml2::XMLElement const * element, std::map<std::string, std::string> const & attributes );
|
|
|
|
void readHandle( tinyxml2::XMLElement const * element, std::map<std::string, std::string> const & attributes );
|
2020-05-18 10:02:10 +00:00
|
|
|
std::pair<NameData, TypeInfo> readNameAndType( tinyxml2::XMLElement const * elements );
|
2020-04-12 19:49:12 +00:00
|
|
|
void readPlatform( tinyxml2::XMLElement const * element );
|
|
|
|
void readPlatforms( tinyxml2::XMLElement const * element );
|
|
|
|
void readRegistry( tinyxml2::XMLElement const * element );
|
|
|
|
void readRequireEnum( tinyxml2::XMLElement const * element, std::string const & tag );
|
|
|
|
void readRequireEnum( tinyxml2::XMLElement const * element,
|
|
|
|
std::map<std::string, std::string> const & attributes,
|
|
|
|
std::string const & tag );
|
|
|
|
void readRequireEnumAlias( tinyxml2::XMLElement const * element,
|
|
|
|
std::map<std::string, std::string> const & attributes,
|
|
|
|
std::string const & tag );
|
|
|
|
void readRequires( tinyxml2::XMLElement const * element, std::map<std::string, std::string> const & attributes );
|
|
|
|
void readStruct( tinyxml2::XMLElement const * element,
|
|
|
|
bool isUnion,
|
|
|
|
std::map<std::string, std::string> const & attributes );
|
|
|
|
void readStructAlias( tinyxml2::XMLElement const * element, std::map<std::string, std::string> const & attributes );
|
2020-06-15 06:03:17 +00:00
|
|
|
void readStructMember( tinyxml2::XMLElement const * element, std::vector<MemberData> & members, bool isUnion );
|
2020-04-12 19:49:12 +00:00
|
|
|
void readStructMemberEnum( tinyxml2::XMLElement const * element, MemberData & memberData );
|
|
|
|
void readStructMemberName( tinyxml2::XMLElement const * element,
|
|
|
|
MemberData & memberData,
|
|
|
|
std::vector<MemberData> const & members );
|
|
|
|
void readStructMemberType( tinyxml2::XMLElement const * element, MemberData & memberData );
|
|
|
|
void readTag( tinyxml2::XMLElement const * element );
|
|
|
|
void readTags( tinyxml2::XMLElement const * element );
|
|
|
|
void readType( tinyxml2::XMLElement const * element );
|
|
|
|
void readTypeEnum( tinyxml2::XMLElement const * element, std::map<std::string, std::string> const & attributes );
|
|
|
|
void readTypeInclude( tinyxml2::XMLElement const * element, std::map<std::string, std::string> const & attributes );
|
|
|
|
void readTypes( tinyxml2::XMLElement const * element );
|
|
|
|
void registerDeleter( std::string const & name, std::pair<std::string, CommandData> const & commandData );
|
|
|
|
void setVulkanLicenseHeader( int line, std::string const & comment );
|
|
|
|
std::string toString( TypeCategory category );
|
2017-12-21 11:40:48 +00:00
|
|
|
|
2020-04-21 12:26:32 +00:00
|
|
|
private:
|
|
|
|
std::map<std::string, BaseTypeData> m_baseTypes;
|
|
|
|
std::map<std::string, BitmaskData> m_bitmasks;
|
2020-05-18 10:02:10 +00:00
|
|
|
std::map<std::string, CommandData> m_commands;
|
2020-04-21 12:26:32 +00:00
|
|
|
std::set<std::string> m_constants;
|
|
|
|
std::set<std::string> m_defines;
|
|
|
|
std::map<std::string, EnumData> m_enums;
|
|
|
|
std::set<std::string> m_extendedStructs; // structs which are referenced by the structextends tag
|
|
|
|
std::map<std::string, ExtensionData> m_extensions;
|
|
|
|
std::map<std::string, std::string> m_features;
|
|
|
|
std::map<std::string, FuncPointerData> m_funcPointers;
|
|
|
|
std::map<std::string, HandleData> m_handles;
|
|
|
|
std::set<std::string> m_includes;
|
2020-07-22 08:20:05 +00:00
|
|
|
std::set<std::string> m_listedTypes;
|
|
|
|
std::set<std::string> m_listingTypes;
|
2020-05-18 10:02:10 +00:00
|
|
|
std::map<std::string, PlatformData> m_platforms;
|
2020-04-21 12:26:32 +00:00
|
|
|
std::map<std::string, std::string> m_structureAliases;
|
|
|
|
std::map<std::string, StructureData> m_structures;
|
|
|
|
std::set<std::string> m_tags;
|
2020-05-18 10:02:10 +00:00
|
|
|
std::map<std::string, TypeData> m_types;
|
2020-04-21 12:26:32 +00:00
|
|
|
std::string m_typesafeCheck;
|
|
|
|
std::string m_version;
|
|
|
|
std::string m_vulkanLicenseHeader;
|
2019-01-09 10:55:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
const size_t INVALID_INDEX = (size_t)~0;
|