Make type conversions implicit for dispatchable handles
Vulkan handles are not typesafe on 32-bit platforms, but only for non-dispachable handles. Dispatchable handles are opaque struct pointers on all platforms, and thus typesafe. This commit makes all conversions for dispatchable handles implicit, regardless of VULKAN_HPP_TYPESAFE_CONVERSION setting.
This commit is contained in:
@@ -272,7 +272,10 @@ private:
|
||||
|
||||
struct HandleData
|
||||
{
|
||||
HandleData( std::string const & p, std::string const & objType, int line ) : objTypeEnum( objType ), parent( p ), xmlLine( line ) {}
|
||||
HandleData( std::string const & p, std::string const & objType, bool isDispatchable, int line )
|
||||
: objTypeEnum( objType ), parent( p ), isDispatchable( isDispatchable ), xmlLine( line )
|
||||
{
|
||||
}
|
||||
|
||||
std::string alias;
|
||||
std::set<std::string> childrenHandles;
|
||||
@@ -282,6 +285,7 @@ private:
|
||||
std::string objTypeEnum;
|
||||
std::string parent;
|
||||
std::set<std::string> secondLevelCommands;
|
||||
bool isDispatchable;
|
||||
int xmlLine;
|
||||
|
||||
// RAII data
|
||||
|
||||
Reference in New Issue
Block a user