mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
commit
159ef75b21
File diff suppressed because it is too large
Load Diff
@ -25,26 +25,26 @@ class VulkanHppGenerator
|
|||||||
public:
|
public:
|
||||||
VulkanHppGenerator( tinyxml2::XMLDocument const & document );
|
VulkanHppGenerator( tinyxml2::XMLDocument const & document );
|
||||||
|
|
||||||
void appendHashStructures( std::string & str ) const;
|
std::string generateBaseTypes() const;
|
||||||
void appendRAIICommands( std::string & str, std::set<std::string> const & specialFunctions ) const;
|
std::string generateBitmasks() const;
|
||||||
void appendRAIIDispatchers( std::string & str ) const;
|
std::string generateCommandDefinitions() const;
|
||||||
void appendRAIIHandles( std::string & str, std::set<std::string> const & specialFunctions ) const;
|
std::string generateDispatchLoaderDynamic(); // uses vkGet*ProcAddress to get function pointers
|
||||||
void appendResultExceptions( std::string & str ) const;
|
std::string generateDispatchLoaderStatic(); // uses exported symbols from loader
|
||||||
void appendStructs( std::string & str );
|
std::string generateEnums() const;
|
||||||
void appendStructureChainValidation( std::string & str );
|
std::string generateHandles();
|
||||||
void appendThrowExceptions( std::string & str ) const;
|
std::string generateHashStructures() const;
|
||||||
void appendIndexTypeTraits( std::string & str ) const;
|
std::string generateIndexTypeTraits() const;
|
||||||
std::set<std::string> determineSpecialFunctions();
|
std::string generateRAIICommandDefinitions() const;
|
||||||
std::string generateBaseTypes() const;
|
std::string generateRAIIDispatchers() const;
|
||||||
std::string generateBitmasks() const;
|
std::string generateRAIIHandles() const;
|
||||||
std::string generateCommandDefinitions() const;
|
std::string generateResultExceptions() const;
|
||||||
std::string generateDispatchLoaderDynamic(); // uses vkGet*ProcAddress to get function pointers
|
std::string generateStructs();
|
||||||
std::string generateDispatchLoaderStatic(); // uses exported symbols from loader
|
std::string generateStructureChainValidation();
|
||||||
std::string generateEnums() const;
|
std::string generateThrowResultException() const;
|
||||||
std::string generateHandles();
|
std::string const & getTypesafeCheck() const;
|
||||||
std::string const & getTypesafeCheck() const;
|
std::string const & getVersion() const;
|
||||||
std::string const & getVersion() const;
|
std::string const & getVulkanLicenseHeader() const;
|
||||||
std::string const & getVulkanLicenseHeader() const;
|
void prepareRAIIHandles();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
struct TypeInfo
|
struct TypeInfo
|
||||||
@ -309,6 +309,14 @@ private:
|
|||||||
private:
|
private:
|
||||||
void addCommand( std::string const & name, CommandData & commandData );
|
void addCommand( std::string const & name, CommandData & commandData );
|
||||||
void addMissingFlagBits( std::vector<std::string> & types, std::string const & referencedIn );
|
void addMissingFlagBits( std::vector<std::string> & types, std::string const & referencedIn );
|
||||||
|
void appendDispatchLoaderDynamicCommands( std::vector<std::string> const & commands,
|
||||||
|
std::set<std::string> & listedCommands,
|
||||||
|
std::string const & enter,
|
||||||
|
std::string const & leave,
|
||||||
|
std::string & commandMembers,
|
||||||
|
std::string & initialCommandAssignments,
|
||||||
|
std::string & instanceCommandAssignments,
|
||||||
|
std::string & deviceCommandAssignments ) const;
|
||||||
void appendDestroyCommand( std::string & str,
|
void appendDestroyCommand( std::string & str,
|
||||||
std::string const & name,
|
std::string const & name,
|
||||||
CommandData const & commandData
|
CommandData const & commandData
|
||||||
@ -317,13 +325,6 @@ private:
|
|||||||
std::string const & handleName
|
std::string const & handleName
|
||||||
#endif
|
#endif
|
||||||
) const;
|
) const;
|
||||||
void appendDispatchLoaderDynamicCommand( std::string & str,
|
|
||||||
std::string & emptyFunctions,
|
|
||||||
std::string & deviceFunctions,
|
|
||||||
std::string & deviceFunctionsInstance,
|
|
||||||
std::string & instanceFunctions,
|
|
||||||
std::string const & commandName,
|
|
||||||
CommandData const & commandData );
|
|
||||||
void appendEnum( std::string & str, std::pair<std::string, EnumData> const & enumData ) const;
|
void appendEnum( std::string & str, std::pair<std::string, EnumData> const & enumData ) const;
|
||||||
void appendEnumInitializer( std::string & str,
|
void appendEnumInitializer( std::string & str,
|
||||||
TypeInfo const & type,
|
TypeInfo const & type,
|
||||||
@ -1057,6 +1058,9 @@ private:
|
|||||||
size_t initialSkipCount,
|
size_t initialSkipCount,
|
||||||
bool definition,
|
bool definition,
|
||||||
std::vector<size_t> const & returnParamIndices ) const;
|
std::vector<size_t> const & returnParamIndices ) const;
|
||||||
|
std::string generateDispatchLoaderDynamicCommandAssignment( std::string const & commandName,
|
||||||
|
CommandData const & commandData,
|
||||||
|
std::string const & firstArg ) const;
|
||||||
std::string generateFunctionCall( std::string const & name,
|
std::string generateFunctionCall( std::string const & name,
|
||||||
CommandData const & commandData,
|
CommandData const & commandData,
|
||||||
size_t returnParamIndex,
|
size_t returnParamIndex,
|
||||||
@ -1082,6 +1086,7 @@ private:
|
|||||||
std::map<size_t, size_t> const & vectorParamIndices,
|
std::map<size_t, size_t> const & vectorParamIndices,
|
||||||
size_t returnParamIndex ) const;
|
size_t returnParamIndex ) const;
|
||||||
bool hasParentHandle( std::string const & handle, std::string const & parent ) const;
|
bool hasParentHandle( std::string const & handle, std::string const & parent ) const;
|
||||||
|
bool isDeviceCommand( CommandData const & commandData ) const;
|
||||||
bool isHandleType( std::string const & type ) const;
|
bool isHandleType( std::string const & type ) const;
|
||||||
bool isLenByStructMember( std::string const & name, std::vector<ParamData> const & params ) const;
|
bool isLenByStructMember( std::string const & name, std::vector<ParamData> const & params ) const;
|
||||||
bool isLenByStructMember( std::string const & name, ParamData const & param ) const;
|
bool isLenByStructMember( std::string const & name, ParamData const & param ) const;
|
||||||
@ -1195,6 +1200,7 @@ private:
|
|||||||
std::set<std::string> m_listedTypes;
|
std::set<std::string> m_listedTypes;
|
||||||
std::set<std::string> m_listingTypes;
|
std::set<std::string> m_listingTypes;
|
||||||
std::map<std::string, PlatformData> m_platforms;
|
std::map<std::string, PlatformData> m_platforms;
|
||||||
|
std::set<std::string> m_RAIISpecialFunctions;
|
||||||
std::map<std::string, StructureAliasData> m_structureAliases;
|
std::map<std::string, StructureAliasData> m_structureAliases;
|
||||||
std::map<std::string, StructureData> m_structures;
|
std::map<std::string, StructureData> m_structures;
|
||||||
std::set<std::string> m_tags;
|
std::set<std::string> m_tags;
|
||||||
|
4994
vulkan/vulkan.hpp
4994
vulkan/vulkan.hpp
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user