mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2025-09-15 15:01:01 -04:00
Introduce explicit constructors of handle-wrappers from raw handles in case of non-typesafe conversion (#82)
Resolves issue #70.
This commit is contained in:
parent
9e8f233557
commit
413dfd8f12
@ -302,25 +302,25 @@ std::string const arrayProxyHeader = (
|
|||||||
"\n"
|
"\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
std::string const versionCheckHeader = (
|
std::string const versionCheckHeader = { R"(
|
||||||
"#if !defined(VULKAN_HPP_HAS_UNRESTRICTED_UNIONS)\n"
|
#if !defined(VULKAN_HPP_HAS_UNRESTRICTED_UNIONS)
|
||||||
"# if defined(__clang__)\n"
|
# if defined(__clang__)
|
||||||
"# if __has_feature(cxx_unrestricted_unions)\n"
|
# if __has_feature(cxx_unrestricted_unions)
|
||||||
"# define VULKAN_HPP_HAS_UNRESTRICTED_UNIONS\n"
|
# define VULKAN_HPP_HAS_UNRESTRICTED_UNIONS
|
||||||
"# endif\n"
|
# endif
|
||||||
"# elif defined(__GNUC__)\n"
|
# elif defined(__GNUC__)
|
||||||
"# define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)\n"
|
# define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
|
||||||
"# if 40600 <= GCC_VERSION\n"
|
# if 40600 <= GCC_VERSION
|
||||||
"# define VULKAN_HPP_HAS_UNRESTRICTED_UNIONS\n"
|
# define VULKAN_HPP_HAS_UNRESTRICTED_UNIONS
|
||||||
"# endif\n"
|
# endif
|
||||||
"# elif defined(_MSC_VER)\n"
|
# elif defined(_MSC_VER)
|
||||||
"# if 1900 <= _MSC_VER\n"
|
# if 1900 <= _MSC_VER
|
||||||
"# define VULKAN_HPP_HAS_UNRESTRICTED_UNIONS\n"
|
# define VULKAN_HPP_HAS_UNRESTRICTED_UNIONS
|
||||||
"# endif\n"
|
# endif
|
||||||
"# endif\n"
|
# endif
|
||||||
"#endif\n"
|
#endif
|
||||||
"\n"
|
)"
|
||||||
);
|
};
|
||||||
|
|
||||||
std::string const inlineHeader = {R"(
|
std::string const inlineHeader = {R"(
|
||||||
#if !defined(VULKAN_HPP_INLINE)
|
#if !defined(VULKAN_HPP_INLINE)
|
||||||
@ -338,7 +338,15 @@ std::string const inlineHeader = {R"(
|
|||||||
# define VULKAN_HPP_INLINE inline
|
# define VULKAN_HPP_INLINE inline
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
)"
|
||||||
|
};
|
||||||
|
|
||||||
|
std::string const explicitHeader = { R"(
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
|
# define VULKAN_HPP_TYPESAFE_EXPLICIT
|
||||||
|
#else
|
||||||
|
# define VULKAN_HPP_TYPESAFE_EXPLICIT explicit
|
||||||
|
#endif
|
||||||
)"
|
)"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -3396,13 +3404,13 @@ void writeTypeHandle(std::ofstream & ofs, VkData const& vkData, DependencyData c
|
|||||||
<< " : m_" << memberName << "(VK_NULL_HANDLE)" << std::endl
|
<< " : m_" << memberName << "(VK_NULL_HANDLE)" << std::endl
|
||||||
<< " {}" << std::endl
|
<< " {}" << std::endl
|
||||||
<< std::endl
|
<< std::endl
|
||||||
<< "#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)" << std::endl
|
|
||||||
// construct from native handle
|
// construct from native handle
|
||||||
<< " " << dependencyData.name << "(Vk" << dependencyData.name << " " << memberName << ")" << std::endl
|
<< " VULKAN_HPP_TYPESAFE_EXPLICIT " << dependencyData.name << "(Vk" << dependencyData.name << " " << memberName << ")" << std::endl
|
||||||
<< " : m_" << memberName << "(" << memberName << ")" << std::endl
|
<< " : m_" << memberName << "(" << memberName << ")" << std::endl
|
||||||
<< " {}" << std::endl
|
<< " {}" << std::endl
|
||||||
<< std::endl
|
<< std::endl
|
||||||
// assignment from native handle
|
// assignment from native handle
|
||||||
|
<< "#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)" << std::endl
|
||||||
<< " " << dependencyData.name << "& operator=(Vk" << dependencyData.name << " " << memberName << ")" << std::endl
|
<< " " << dependencyData.name << "& operator=(Vk" << dependencyData.name << " " << memberName << ")" << std::endl
|
||||||
<< " {" << std::endl
|
<< " {" << std::endl
|
||||||
<< " m_" << memberName << " = " << memberName << ";" << std::endl
|
<< " m_" << memberName << " = " << memberName << ";" << std::endl
|
||||||
@ -3445,10 +3453,7 @@ void writeTypeHandle(std::ofstream & ofs, VkData const& vkData, DependencyData c
|
|||||||
writeTypeCommandDeclaration(ofs, " ", vkData, cit->second);
|
writeTypeCommandDeclaration(ofs, " ", vkData, cit->second);
|
||||||
}
|
}
|
||||||
|
|
||||||
ofs << "#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)" << std::endl
|
ofs << " VULKAN_HPP_TYPESAFE_EXPLICIT operator Vk" << dependencyData.name << "() const" << std::endl
|
||||||
<< " explicit" << std::endl
|
|
||||||
<< "#endif" << std::endl
|
|
||||||
<< " operator Vk" << dependencyData.name << "() const" << std::endl
|
|
||||||
<< " {" << std::endl
|
<< " {" << std::endl
|
||||||
<< " return m_" << memberName << ";" << std::endl
|
<< " return m_" << memberName << ";" << std::endl
|
||||||
<< " }" << std::endl
|
<< " }" << std::endl
|
||||||
@ -3772,8 +3777,7 @@ void writeTypesafeCheck(std::ofstream & ofs, std::string const& typesafeCheck)
|
|||||||
<< "# if !defined( VULKAN_HPP_TYPESAFE_CONVERSION )" << std::endl
|
<< "# if !defined( VULKAN_HPP_TYPESAFE_CONVERSION )" << std::endl
|
||||||
<< "# define VULKAN_HPP_TYPESAFE_CONVERSION" << std::endl
|
<< "# define VULKAN_HPP_TYPESAFE_CONVERSION" << std::endl
|
||||||
<< "# endif" << std::endl
|
<< "# endif" << std::endl
|
||||||
<< "#endif" << std::endl
|
<< "#endif" << std::endl;
|
||||||
<< std::endl;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int main( int argc, char **argv )
|
int main( int argc, char **argv )
|
||||||
@ -3868,6 +3872,8 @@ int main( int argc, char **argv )
|
|||||||
writeTypesafeCheck(ofs, vkData.typesafeCheck);
|
writeTypesafeCheck(ofs, vkData.typesafeCheck);
|
||||||
ofs << versionCheckHeader
|
ofs << versionCheckHeader
|
||||||
<< inlineHeader
|
<< inlineHeader
|
||||||
|
<< explicitHeader
|
||||||
|
<< std::endl
|
||||||
<< "namespace vk" << std::endl
|
<< "namespace vk" << std::endl
|
||||||
<< "{" << std::endl
|
<< "{" << std::endl
|
||||||
<< flagsHeader
|
<< flagsHeader
|
||||||
|
@ -68,7 +68,6 @@ static_assert( VK_HEADER_VERSION == 40 , "Wrong VK_HEADER_VERSION!" );
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_INLINE)
|
#if !defined(VULKAN_HPP_INLINE)
|
||||||
# if defined(__clang___)
|
# if defined(__clang___)
|
||||||
# if __has_attribute(always_inline)
|
# if __has_attribute(always_inline)
|
||||||
@ -85,6 +84,12 @@ static_assert( VK_HEADER_VERSION == 40 , "Wrong VK_HEADER_VERSION!" );
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
|
# define VULKAN_HPP_TYPESAFE_EXPLICIT
|
||||||
|
#else
|
||||||
|
# define VULKAN_HPP_TYPESAFE_EXPLICIT explicit
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace vk
|
namespace vk
|
||||||
{
|
{
|
||||||
template <typename FlagBitsType> struct FlagTraits
|
template <typename FlagBitsType> struct FlagTraits
|
||||||
@ -1096,11 +1101,11 @@ namespace vk
|
|||||||
: m_deviceMemory(VK_NULL_HANDLE)
|
: m_deviceMemory(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT DeviceMemory(VkDeviceMemory deviceMemory)
|
||||||
DeviceMemory(VkDeviceMemory deviceMemory)
|
|
||||||
: m_deviceMemory(deviceMemory)
|
: m_deviceMemory(deviceMemory)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
DeviceMemory& operator=(VkDeviceMemory deviceMemory)
|
DeviceMemory& operator=(VkDeviceMemory deviceMemory)
|
||||||
{
|
{
|
||||||
m_deviceMemory = deviceMemory;
|
m_deviceMemory = deviceMemory;
|
||||||
@ -1129,10 +1134,7 @@ namespace vk
|
|||||||
return m_deviceMemory < rhs.m_deviceMemory;
|
return m_deviceMemory < rhs.m_deviceMemory;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkDeviceMemory() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkDeviceMemory() const
|
|
||||||
{
|
{
|
||||||
return m_deviceMemory;
|
return m_deviceMemory;
|
||||||
}
|
}
|
||||||
@ -1163,11 +1165,11 @@ namespace vk
|
|||||||
: m_commandPool(VK_NULL_HANDLE)
|
: m_commandPool(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT CommandPool(VkCommandPool commandPool)
|
||||||
CommandPool(VkCommandPool commandPool)
|
|
||||||
: m_commandPool(commandPool)
|
: m_commandPool(commandPool)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
CommandPool& operator=(VkCommandPool commandPool)
|
CommandPool& operator=(VkCommandPool commandPool)
|
||||||
{
|
{
|
||||||
m_commandPool = commandPool;
|
m_commandPool = commandPool;
|
||||||
@ -1196,10 +1198,7 @@ namespace vk
|
|||||||
return m_commandPool < rhs.m_commandPool;
|
return m_commandPool < rhs.m_commandPool;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkCommandPool() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkCommandPool() const
|
|
||||||
{
|
{
|
||||||
return m_commandPool;
|
return m_commandPool;
|
||||||
}
|
}
|
||||||
@ -1230,11 +1229,11 @@ namespace vk
|
|||||||
: m_buffer(VK_NULL_HANDLE)
|
: m_buffer(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT Buffer(VkBuffer buffer)
|
||||||
Buffer(VkBuffer buffer)
|
|
||||||
: m_buffer(buffer)
|
: m_buffer(buffer)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
Buffer& operator=(VkBuffer buffer)
|
Buffer& operator=(VkBuffer buffer)
|
||||||
{
|
{
|
||||||
m_buffer = buffer;
|
m_buffer = buffer;
|
||||||
@ -1263,10 +1262,7 @@ namespace vk
|
|||||||
return m_buffer < rhs.m_buffer;
|
return m_buffer < rhs.m_buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkBuffer() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkBuffer() const
|
|
||||||
{
|
{
|
||||||
return m_buffer;
|
return m_buffer;
|
||||||
}
|
}
|
||||||
@ -1297,11 +1293,11 @@ namespace vk
|
|||||||
: m_bufferView(VK_NULL_HANDLE)
|
: m_bufferView(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT BufferView(VkBufferView bufferView)
|
||||||
BufferView(VkBufferView bufferView)
|
|
||||||
: m_bufferView(bufferView)
|
: m_bufferView(bufferView)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
BufferView& operator=(VkBufferView bufferView)
|
BufferView& operator=(VkBufferView bufferView)
|
||||||
{
|
{
|
||||||
m_bufferView = bufferView;
|
m_bufferView = bufferView;
|
||||||
@ -1330,10 +1326,7 @@ namespace vk
|
|||||||
return m_bufferView < rhs.m_bufferView;
|
return m_bufferView < rhs.m_bufferView;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkBufferView() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkBufferView() const
|
|
||||||
{
|
{
|
||||||
return m_bufferView;
|
return m_bufferView;
|
||||||
}
|
}
|
||||||
@ -1364,11 +1357,11 @@ namespace vk
|
|||||||
: m_image(VK_NULL_HANDLE)
|
: m_image(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT Image(VkImage image)
|
||||||
Image(VkImage image)
|
|
||||||
: m_image(image)
|
: m_image(image)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
Image& operator=(VkImage image)
|
Image& operator=(VkImage image)
|
||||||
{
|
{
|
||||||
m_image = image;
|
m_image = image;
|
||||||
@ -1397,10 +1390,7 @@ namespace vk
|
|||||||
return m_image < rhs.m_image;
|
return m_image < rhs.m_image;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkImage() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkImage() const
|
|
||||||
{
|
{
|
||||||
return m_image;
|
return m_image;
|
||||||
}
|
}
|
||||||
@ -1431,11 +1421,11 @@ namespace vk
|
|||||||
: m_imageView(VK_NULL_HANDLE)
|
: m_imageView(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT ImageView(VkImageView imageView)
|
||||||
ImageView(VkImageView imageView)
|
|
||||||
: m_imageView(imageView)
|
: m_imageView(imageView)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
ImageView& operator=(VkImageView imageView)
|
ImageView& operator=(VkImageView imageView)
|
||||||
{
|
{
|
||||||
m_imageView = imageView;
|
m_imageView = imageView;
|
||||||
@ -1464,10 +1454,7 @@ namespace vk
|
|||||||
return m_imageView < rhs.m_imageView;
|
return m_imageView < rhs.m_imageView;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkImageView() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkImageView() const
|
|
||||||
{
|
{
|
||||||
return m_imageView;
|
return m_imageView;
|
||||||
}
|
}
|
||||||
@ -1498,11 +1485,11 @@ namespace vk
|
|||||||
: m_shaderModule(VK_NULL_HANDLE)
|
: m_shaderModule(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT ShaderModule(VkShaderModule shaderModule)
|
||||||
ShaderModule(VkShaderModule shaderModule)
|
|
||||||
: m_shaderModule(shaderModule)
|
: m_shaderModule(shaderModule)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
ShaderModule& operator=(VkShaderModule shaderModule)
|
ShaderModule& operator=(VkShaderModule shaderModule)
|
||||||
{
|
{
|
||||||
m_shaderModule = shaderModule;
|
m_shaderModule = shaderModule;
|
||||||
@ -1531,10 +1518,7 @@ namespace vk
|
|||||||
return m_shaderModule < rhs.m_shaderModule;
|
return m_shaderModule < rhs.m_shaderModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkShaderModule() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkShaderModule() const
|
|
||||||
{
|
{
|
||||||
return m_shaderModule;
|
return m_shaderModule;
|
||||||
}
|
}
|
||||||
@ -1565,11 +1549,11 @@ namespace vk
|
|||||||
: m_pipeline(VK_NULL_HANDLE)
|
: m_pipeline(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT Pipeline(VkPipeline pipeline)
|
||||||
Pipeline(VkPipeline pipeline)
|
|
||||||
: m_pipeline(pipeline)
|
: m_pipeline(pipeline)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
Pipeline& operator=(VkPipeline pipeline)
|
Pipeline& operator=(VkPipeline pipeline)
|
||||||
{
|
{
|
||||||
m_pipeline = pipeline;
|
m_pipeline = pipeline;
|
||||||
@ -1598,10 +1582,7 @@ namespace vk
|
|||||||
return m_pipeline < rhs.m_pipeline;
|
return m_pipeline < rhs.m_pipeline;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkPipeline() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkPipeline() const
|
|
||||||
{
|
{
|
||||||
return m_pipeline;
|
return m_pipeline;
|
||||||
}
|
}
|
||||||
@ -1632,11 +1613,11 @@ namespace vk
|
|||||||
: m_pipelineLayout(VK_NULL_HANDLE)
|
: m_pipelineLayout(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT PipelineLayout(VkPipelineLayout pipelineLayout)
|
||||||
PipelineLayout(VkPipelineLayout pipelineLayout)
|
|
||||||
: m_pipelineLayout(pipelineLayout)
|
: m_pipelineLayout(pipelineLayout)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
PipelineLayout& operator=(VkPipelineLayout pipelineLayout)
|
PipelineLayout& operator=(VkPipelineLayout pipelineLayout)
|
||||||
{
|
{
|
||||||
m_pipelineLayout = pipelineLayout;
|
m_pipelineLayout = pipelineLayout;
|
||||||
@ -1665,10 +1646,7 @@ namespace vk
|
|||||||
return m_pipelineLayout < rhs.m_pipelineLayout;
|
return m_pipelineLayout < rhs.m_pipelineLayout;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkPipelineLayout() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkPipelineLayout() const
|
|
||||||
{
|
{
|
||||||
return m_pipelineLayout;
|
return m_pipelineLayout;
|
||||||
}
|
}
|
||||||
@ -1699,11 +1677,11 @@ namespace vk
|
|||||||
: m_sampler(VK_NULL_HANDLE)
|
: m_sampler(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT Sampler(VkSampler sampler)
|
||||||
Sampler(VkSampler sampler)
|
|
||||||
: m_sampler(sampler)
|
: m_sampler(sampler)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
Sampler& operator=(VkSampler sampler)
|
Sampler& operator=(VkSampler sampler)
|
||||||
{
|
{
|
||||||
m_sampler = sampler;
|
m_sampler = sampler;
|
||||||
@ -1732,10 +1710,7 @@ namespace vk
|
|||||||
return m_sampler < rhs.m_sampler;
|
return m_sampler < rhs.m_sampler;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkSampler() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkSampler() const
|
|
||||||
{
|
{
|
||||||
return m_sampler;
|
return m_sampler;
|
||||||
}
|
}
|
||||||
@ -1766,11 +1741,11 @@ namespace vk
|
|||||||
: m_descriptorSet(VK_NULL_HANDLE)
|
: m_descriptorSet(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT DescriptorSet(VkDescriptorSet descriptorSet)
|
||||||
DescriptorSet(VkDescriptorSet descriptorSet)
|
|
||||||
: m_descriptorSet(descriptorSet)
|
: m_descriptorSet(descriptorSet)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
DescriptorSet& operator=(VkDescriptorSet descriptorSet)
|
DescriptorSet& operator=(VkDescriptorSet descriptorSet)
|
||||||
{
|
{
|
||||||
m_descriptorSet = descriptorSet;
|
m_descriptorSet = descriptorSet;
|
||||||
@ -1799,10 +1774,7 @@ namespace vk
|
|||||||
return m_descriptorSet < rhs.m_descriptorSet;
|
return m_descriptorSet < rhs.m_descriptorSet;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkDescriptorSet() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkDescriptorSet() const
|
|
||||||
{
|
{
|
||||||
return m_descriptorSet;
|
return m_descriptorSet;
|
||||||
}
|
}
|
||||||
@ -1833,11 +1805,11 @@ namespace vk
|
|||||||
: m_descriptorSetLayout(VK_NULL_HANDLE)
|
: m_descriptorSetLayout(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT DescriptorSetLayout(VkDescriptorSetLayout descriptorSetLayout)
|
||||||
DescriptorSetLayout(VkDescriptorSetLayout descriptorSetLayout)
|
|
||||||
: m_descriptorSetLayout(descriptorSetLayout)
|
: m_descriptorSetLayout(descriptorSetLayout)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
DescriptorSetLayout& operator=(VkDescriptorSetLayout descriptorSetLayout)
|
DescriptorSetLayout& operator=(VkDescriptorSetLayout descriptorSetLayout)
|
||||||
{
|
{
|
||||||
m_descriptorSetLayout = descriptorSetLayout;
|
m_descriptorSetLayout = descriptorSetLayout;
|
||||||
@ -1866,10 +1838,7 @@ namespace vk
|
|||||||
return m_descriptorSetLayout < rhs.m_descriptorSetLayout;
|
return m_descriptorSetLayout < rhs.m_descriptorSetLayout;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkDescriptorSetLayout() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkDescriptorSetLayout() const
|
|
||||||
{
|
{
|
||||||
return m_descriptorSetLayout;
|
return m_descriptorSetLayout;
|
||||||
}
|
}
|
||||||
@ -1900,11 +1869,11 @@ namespace vk
|
|||||||
: m_descriptorPool(VK_NULL_HANDLE)
|
: m_descriptorPool(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT DescriptorPool(VkDescriptorPool descriptorPool)
|
||||||
DescriptorPool(VkDescriptorPool descriptorPool)
|
|
||||||
: m_descriptorPool(descriptorPool)
|
: m_descriptorPool(descriptorPool)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
DescriptorPool& operator=(VkDescriptorPool descriptorPool)
|
DescriptorPool& operator=(VkDescriptorPool descriptorPool)
|
||||||
{
|
{
|
||||||
m_descriptorPool = descriptorPool;
|
m_descriptorPool = descriptorPool;
|
||||||
@ -1933,10 +1902,7 @@ namespace vk
|
|||||||
return m_descriptorPool < rhs.m_descriptorPool;
|
return m_descriptorPool < rhs.m_descriptorPool;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkDescriptorPool() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkDescriptorPool() const
|
|
||||||
{
|
{
|
||||||
return m_descriptorPool;
|
return m_descriptorPool;
|
||||||
}
|
}
|
||||||
@ -1967,11 +1933,11 @@ namespace vk
|
|||||||
: m_fence(VK_NULL_HANDLE)
|
: m_fence(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT Fence(VkFence fence)
|
||||||
Fence(VkFence fence)
|
|
||||||
: m_fence(fence)
|
: m_fence(fence)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
Fence& operator=(VkFence fence)
|
Fence& operator=(VkFence fence)
|
||||||
{
|
{
|
||||||
m_fence = fence;
|
m_fence = fence;
|
||||||
@ -2000,10 +1966,7 @@ namespace vk
|
|||||||
return m_fence < rhs.m_fence;
|
return m_fence < rhs.m_fence;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkFence() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkFence() const
|
|
||||||
{
|
{
|
||||||
return m_fence;
|
return m_fence;
|
||||||
}
|
}
|
||||||
@ -2034,11 +1997,11 @@ namespace vk
|
|||||||
: m_semaphore(VK_NULL_HANDLE)
|
: m_semaphore(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT Semaphore(VkSemaphore semaphore)
|
||||||
Semaphore(VkSemaphore semaphore)
|
|
||||||
: m_semaphore(semaphore)
|
: m_semaphore(semaphore)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
Semaphore& operator=(VkSemaphore semaphore)
|
Semaphore& operator=(VkSemaphore semaphore)
|
||||||
{
|
{
|
||||||
m_semaphore = semaphore;
|
m_semaphore = semaphore;
|
||||||
@ -2067,10 +2030,7 @@ namespace vk
|
|||||||
return m_semaphore < rhs.m_semaphore;
|
return m_semaphore < rhs.m_semaphore;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkSemaphore() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkSemaphore() const
|
|
||||||
{
|
{
|
||||||
return m_semaphore;
|
return m_semaphore;
|
||||||
}
|
}
|
||||||
@ -2101,11 +2061,11 @@ namespace vk
|
|||||||
: m_event(VK_NULL_HANDLE)
|
: m_event(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT Event(VkEvent event)
|
||||||
Event(VkEvent event)
|
|
||||||
: m_event(event)
|
: m_event(event)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
Event& operator=(VkEvent event)
|
Event& operator=(VkEvent event)
|
||||||
{
|
{
|
||||||
m_event = event;
|
m_event = event;
|
||||||
@ -2134,10 +2094,7 @@ namespace vk
|
|||||||
return m_event < rhs.m_event;
|
return m_event < rhs.m_event;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkEvent() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkEvent() const
|
|
||||||
{
|
{
|
||||||
return m_event;
|
return m_event;
|
||||||
}
|
}
|
||||||
@ -2168,11 +2125,11 @@ namespace vk
|
|||||||
: m_queryPool(VK_NULL_HANDLE)
|
: m_queryPool(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT QueryPool(VkQueryPool queryPool)
|
||||||
QueryPool(VkQueryPool queryPool)
|
|
||||||
: m_queryPool(queryPool)
|
: m_queryPool(queryPool)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
QueryPool& operator=(VkQueryPool queryPool)
|
QueryPool& operator=(VkQueryPool queryPool)
|
||||||
{
|
{
|
||||||
m_queryPool = queryPool;
|
m_queryPool = queryPool;
|
||||||
@ -2201,10 +2158,7 @@ namespace vk
|
|||||||
return m_queryPool < rhs.m_queryPool;
|
return m_queryPool < rhs.m_queryPool;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkQueryPool() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkQueryPool() const
|
|
||||||
{
|
{
|
||||||
return m_queryPool;
|
return m_queryPool;
|
||||||
}
|
}
|
||||||
@ -2235,11 +2189,11 @@ namespace vk
|
|||||||
: m_framebuffer(VK_NULL_HANDLE)
|
: m_framebuffer(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT Framebuffer(VkFramebuffer framebuffer)
|
||||||
Framebuffer(VkFramebuffer framebuffer)
|
|
||||||
: m_framebuffer(framebuffer)
|
: m_framebuffer(framebuffer)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
Framebuffer& operator=(VkFramebuffer framebuffer)
|
Framebuffer& operator=(VkFramebuffer framebuffer)
|
||||||
{
|
{
|
||||||
m_framebuffer = framebuffer;
|
m_framebuffer = framebuffer;
|
||||||
@ -2268,10 +2222,7 @@ namespace vk
|
|||||||
return m_framebuffer < rhs.m_framebuffer;
|
return m_framebuffer < rhs.m_framebuffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkFramebuffer() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkFramebuffer() const
|
|
||||||
{
|
{
|
||||||
return m_framebuffer;
|
return m_framebuffer;
|
||||||
}
|
}
|
||||||
@ -2302,11 +2253,11 @@ namespace vk
|
|||||||
: m_renderPass(VK_NULL_HANDLE)
|
: m_renderPass(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT RenderPass(VkRenderPass renderPass)
|
||||||
RenderPass(VkRenderPass renderPass)
|
|
||||||
: m_renderPass(renderPass)
|
: m_renderPass(renderPass)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
RenderPass& operator=(VkRenderPass renderPass)
|
RenderPass& operator=(VkRenderPass renderPass)
|
||||||
{
|
{
|
||||||
m_renderPass = renderPass;
|
m_renderPass = renderPass;
|
||||||
@ -2335,10 +2286,7 @@ namespace vk
|
|||||||
return m_renderPass < rhs.m_renderPass;
|
return m_renderPass < rhs.m_renderPass;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkRenderPass() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkRenderPass() const
|
|
||||||
{
|
{
|
||||||
return m_renderPass;
|
return m_renderPass;
|
||||||
}
|
}
|
||||||
@ -2369,11 +2317,11 @@ namespace vk
|
|||||||
: m_pipelineCache(VK_NULL_HANDLE)
|
: m_pipelineCache(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT PipelineCache(VkPipelineCache pipelineCache)
|
||||||
PipelineCache(VkPipelineCache pipelineCache)
|
|
||||||
: m_pipelineCache(pipelineCache)
|
: m_pipelineCache(pipelineCache)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
PipelineCache& operator=(VkPipelineCache pipelineCache)
|
PipelineCache& operator=(VkPipelineCache pipelineCache)
|
||||||
{
|
{
|
||||||
m_pipelineCache = pipelineCache;
|
m_pipelineCache = pipelineCache;
|
||||||
@ -2402,10 +2350,7 @@ namespace vk
|
|||||||
return m_pipelineCache < rhs.m_pipelineCache;
|
return m_pipelineCache < rhs.m_pipelineCache;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkPipelineCache() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkPipelineCache() const
|
|
||||||
{
|
{
|
||||||
return m_pipelineCache;
|
return m_pipelineCache;
|
||||||
}
|
}
|
||||||
@ -2436,11 +2381,11 @@ namespace vk
|
|||||||
: m_objectTableNVX(VK_NULL_HANDLE)
|
: m_objectTableNVX(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT ObjectTableNVX(VkObjectTableNVX objectTableNVX)
|
||||||
ObjectTableNVX(VkObjectTableNVX objectTableNVX)
|
|
||||||
: m_objectTableNVX(objectTableNVX)
|
: m_objectTableNVX(objectTableNVX)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
ObjectTableNVX& operator=(VkObjectTableNVX objectTableNVX)
|
ObjectTableNVX& operator=(VkObjectTableNVX objectTableNVX)
|
||||||
{
|
{
|
||||||
m_objectTableNVX = objectTableNVX;
|
m_objectTableNVX = objectTableNVX;
|
||||||
@ -2469,10 +2414,7 @@ namespace vk
|
|||||||
return m_objectTableNVX < rhs.m_objectTableNVX;
|
return m_objectTableNVX < rhs.m_objectTableNVX;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkObjectTableNVX() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkObjectTableNVX() const
|
|
||||||
{
|
{
|
||||||
return m_objectTableNVX;
|
return m_objectTableNVX;
|
||||||
}
|
}
|
||||||
@ -2503,11 +2445,11 @@ namespace vk
|
|||||||
: m_indirectCommandsLayoutNVX(VK_NULL_HANDLE)
|
: m_indirectCommandsLayoutNVX(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT IndirectCommandsLayoutNVX(VkIndirectCommandsLayoutNVX indirectCommandsLayoutNVX)
|
||||||
IndirectCommandsLayoutNVX(VkIndirectCommandsLayoutNVX indirectCommandsLayoutNVX)
|
|
||||||
: m_indirectCommandsLayoutNVX(indirectCommandsLayoutNVX)
|
: m_indirectCommandsLayoutNVX(indirectCommandsLayoutNVX)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
IndirectCommandsLayoutNVX& operator=(VkIndirectCommandsLayoutNVX indirectCommandsLayoutNVX)
|
IndirectCommandsLayoutNVX& operator=(VkIndirectCommandsLayoutNVX indirectCommandsLayoutNVX)
|
||||||
{
|
{
|
||||||
m_indirectCommandsLayoutNVX = indirectCommandsLayoutNVX;
|
m_indirectCommandsLayoutNVX = indirectCommandsLayoutNVX;
|
||||||
@ -2536,10 +2478,7 @@ namespace vk
|
|||||||
return m_indirectCommandsLayoutNVX < rhs.m_indirectCommandsLayoutNVX;
|
return m_indirectCommandsLayoutNVX < rhs.m_indirectCommandsLayoutNVX;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkIndirectCommandsLayoutNVX() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkIndirectCommandsLayoutNVX() const
|
|
||||||
{
|
{
|
||||||
return m_indirectCommandsLayoutNVX;
|
return m_indirectCommandsLayoutNVX;
|
||||||
}
|
}
|
||||||
@ -2570,11 +2509,11 @@ namespace vk
|
|||||||
: m_displayKHR(VK_NULL_HANDLE)
|
: m_displayKHR(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT DisplayKHR(VkDisplayKHR displayKHR)
|
||||||
DisplayKHR(VkDisplayKHR displayKHR)
|
|
||||||
: m_displayKHR(displayKHR)
|
: m_displayKHR(displayKHR)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
DisplayKHR& operator=(VkDisplayKHR displayKHR)
|
DisplayKHR& operator=(VkDisplayKHR displayKHR)
|
||||||
{
|
{
|
||||||
m_displayKHR = displayKHR;
|
m_displayKHR = displayKHR;
|
||||||
@ -2603,10 +2542,7 @@ namespace vk
|
|||||||
return m_displayKHR < rhs.m_displayKHR;
|
return m_displayKHR < rhs.m_displayKHR;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkDisplayKHR() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkDisplayKHR() const
|
|
||||||
{
|
{
|
||||||
return m_displayKHR;
|
return m_displayKHR;
|
||||||
}
|
}
|
||||||
@ -2637,11 +2573,11 @@ namespace vk
|
|||||||
: m_displayModeKHR(VK_NULL_HANDLE)
|
: m_displayModeKHR(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT DisplayModeKHR(VkDisplayModeKHR displayModeKHR)
|
||||||
DisplayModeKHR(VkDisplayModeKHR displayModeKHR)
|
|
||||||
: m_displayModeKHR(displayModeKHR)
|
: m_displayModeKHR(displayModeKHR)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
DisplayModeKHR& operator=(VkDisplayModeKHR displayModeKHR)
|
DisplayModeKHR& operator=(VkDisplayModeKHR displayModeKHR)
|
||||||
{
|
{
|
||||||
m_displayModeKHR = displayModeKHR;
|
m_displayModeKHR = displayModeKHR;
|
||||||
@ -2670,10 +2606,7 @@ namespace vk
|
|||||||
return m_displayModeKHR < rhs.m_displayModeKHR;
|
return m_displayModeKHR < rhs.m_displayModeKHR;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkDisplayModeKHR() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkDisplayModeKHR() const
|
|
||||||
{
|
{
|
||||||
return m_displayModeKHR;
|
return m_displayModeKHR;
|
||||||
}
|
}
|
||||||
@ -2704,11 +2637,11 @@ namespace vk
|
|||||||
: m_surfaceKHR(VK_NULL_HANDLE)
|
: m_surfaceKHR(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT SurfaceKHR(VkSurfaceKHR surfaceKHR)
|
||||||
SurfaceKHR(VkSurfaceKHR surfaceKHR)
|
|
||||||
: m_surfaceKHR(surfaceKHR)
|
: m_surfaceKHR(surfaceKHR)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
SurfaceKHR& operator=(VkSurfaceKHR surfaceKHR)
|
SurfaceKHR& operator=(VkSurfaceKHR surfaceKHR)
|
||||||
{
|
{
|
||||||
m_surfaceKHR = surfaceKHR;
|
m_surfaceKHR = surfaceKHR;
|
||||||
@ -2737,10 +2670,7 @@ namespace vk
|
|||||||
return m_surfaceKHR < rhs.m_surfaceKHR;
|
return m_surfaceKHR < rhs.m_surfaceKHR;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkSurfaceKHR() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkSurfaceKHR() const
|
|
||||||
{
|
{
|
||||||
return m_surfaceKHR;
|
return m_surfaceKHR;
|
||||||
}
|
}
|
||||||
@ -2771,11 +2701,11 @@ namespace vk
|
|||||||
: m_swapchainKHR(VK_NULL_HANDLE)
|
: m_swapchainKHR(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT SwapchainKHR(VkSwapchainKHR swapchainKHR)
|
||||||
SwapchainKHR(VkSwapchainKHR swapchainKHR)
|
|
||||||
: m_swapchainKHR(swapchainKHR)
|
: m_swapchainKHR(swapchainKHR)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
SwapchainKHR& operator=(VkSwapchainKHR swapchainKHR)
|
SwapchainKHR& operator=(VkSwapchainKHR swapchainKHR)
|
||||||
{
|
{
|
||||||
m_swapchainKHR = swapchainKHR;
|
m_swapchainKHR = swapchainKHR;
|
||||||
@ -2804,10 +2734,7 @@ namespace vk
|
|||||||
return m_swapchainKHR < rhs.m_swapchainKHR;
|
return m_swapchainKHR < rhs.m_swapchainKHR;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkSwapchainKHR() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkSwapchainKHR() const
|
|
||||||
{
|
{
|
||||||
return m_swapchainKHR;
|
return m_swapchainKHR;
|
||||||
}
|
}
|
||||||
@ -2838,11 +2765,11 @@ namespace vk
|
|||||||
: m_debugReportCallbackEXT(VK_NULL_HANDLE)
|
: m_debugReportCallbackEXT(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT DebugReportCallbackEXT(VkDebugReportCallbackEXT debugReportCallbackEXT)
|
||||||
DebugReportCallbackEXT(VkDebugReportCallbackEXT debugReportCallbackEXT)
|
|
||||||
: m_debugReportCallbackEXT(debugReportCallbackEXT)
|
: m_debugReportCallbackEXT(debugReportCallbackEXT)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
DebugReportCallbackEXT& operator=(VkDebugReportCallbackEXT debugReportCallbackEXT)
|
DebugReportCallbackEXT& operator=(VkDebugReportCallbackEXT debugReportCallbackEXT)
|
||||||
{
|
{
|
||||||
m_debugReportCallbackEXT = debugReportCallbackEXT;
|
m_debugReportCallbackEXT = debugReportCallbackEXT;
|
||||||
@ -2871,10 +2798,7 @@ namespace vk
|
|||||||
return m_debugReportCallbackEXT < rhs.m_debugReportCallbackEXT;
|
return m_debugReportCallbackEXT < rhs.m_debugReportCallbackEXT;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkDebugReportCallbackEXT() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkDebugReportCallbackEXT() const
|
|
||||||
{
|
{
|
||||||
return m_debugReportCallbackEXT;
|
return m_debugReportCallbackEXT;
|
||||||
}
|
}
|
||||||
@ -17563,11 +17487,11 @@ namespace vk
|
|||||||
: m_commandBuffer(VK_NULL_HANDLE)
|
: m_commandBuffer(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT CommandBuffer(VkCommandBuffer commandBuffer)
|
||||||
CommandBuffer(VkCommandBuffer commandBuffer)
|
|
||||||
: m_commandBuffer(commandBuffer)
|
: m_commandBuffer(commandBuffer)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
CommandBuffer& operator=(VkCommandBuffer commandBuffer)
|
CommandBuffer& operator=(VkCommandBuffer commandBuffer)
|
||||||
{
|
{
|
||||||
m_commandBuffer = commandBuffer;
|
m_commandBuffer = commandBuffer;
|
||||||
@ -17786,10 +17710,7 @@ namespace vk
|
|||||||
void reserveSpaceForCommandsNVX( const CmdReserveSpaceForCommandsInfoNVX & reserveSpaceInfo ) const;
|
void reserveSpaceForCommandsNVX( const CmdReserveSpaceForCommandsInfoNVX & reserveSpaceInfo ) const;
|
||||||
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkCommandBuffer() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkCommandBuffer() const
|
|
||||||
{
|
{
|
||||||
return m_commandBuffer;
|
return m_commandBuffer;
|
||||||
}
|
}
|
||||||
@ -18376,11 +18297,11 @@ namespace vk
|
|||||||
: m_queue(VK_NULL_HANDLE)
|
: m_queue(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT Queue(VkQueue queue)
|
||||||
Queue(VkQueue queue)
|
|
||||||
: m_queue(queue)
|
: m_queue(queue)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
Queue& operator=(VkQueue queue)
|
Queue& operator=(VkQueue queue)
|
||||||
{
|
{
|
||||||
m_queue = queue;
|
m_queue = queue;
|
||||||
@ -18430,10 +18351,7 @@ namespace vk
|
|||||||
Result presentKHR( const PresentInfoKHR & presentInfo ) const;
|
Result presentKHR( const PresentInfoKHR & presentInfo ) const;
|
||||||
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkQueue() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkQueue() const
|
|
||||||
{
|
{
|
||||||
return m_queue;
|
return m_queue;
|
||||||
}
|
}
|
||||||
@ -18563,11 +18481,11 @@ namespace vk
|
|||||||
: m_device(VK_NULL_HANDLE)
|
: m_device(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT Device(VkDevice device)
|
||||||
Device(VkDevice device)
|
|
||||||
: m_device(device)
|
: m_device(device)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
Device& operator=(VkDevice device)
|
Device& operator=(VkDevice device)
|
||||||
{
|
{
|
||||||
m_device = device;
|
m_device = device;
|
||||||
@ -19149,10 +19067,7 @@ namespace vk
|
|||||||
ResultValue<uint64_t> getSwapchainCounterEXT( SwapchainKHR swapchain, SurfaceCounterFlagBitsEXT counter ) const;
|
ResultValue<uint64_t> getSwapchainCounterEXT( SwapchainKHR swapchain, SurfaceCounterFlagBitsEXT counter ) const;
|
||||||
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkDevice() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkDevice() const
|
|
||||||
{
|
{
|
||||||
return m_device;
|
return m_device;
|
||||||
}
|
}
|
||||||
@ -21022,11 +20937,11 @@ namespace vk
|
|||||||
: m_physicalDevice(VK_NULL_HANDLE)
|
: m_physicalDevice(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT PhysicalDevice(VkPhysicalDevice physicalDevice)
|
||||||
PhysicalDevice(VkPhysicalDevice physicalDevice)
|
|
||||||
: m_physicalDevice(physicalDevice)
|
: m_physicalDevice(physicalDevice)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
PhysicalDevice& operator=(VkPhysicalDevice physicalDevice)
|
PhysicalDevice& operator=(VkPhysicalDevice physicalDevice)
|
||||||
{
|
{
|
||||||
m_physicalDevice = physicalDevice;
|
m_physicalDevice = physicalDevice;
|
||||||
@ -21272,10 +21187,7 @@ namespace vk
|
|||||||
ResultValueType<SurfaceCapabilities2EXT>::type getSurfaceCapabilities2EXT( SurfaceKHR surface ) const;
|
ResultValueType<SurfaceCapabilities2EXT>::type getSurfaceCapabilities2EXT( SurfaceKHR surface ) const;
|
||||||
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkPhysicalDevice() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkPhysicalDevice() const
|
|
||||||
{
|
{
|
||||||
return m_physicalDevice;
|
return m_physicalDevice;
|
||||||
}
|
}
|
||||||
@ -21949,11 +21861,11 @@ namespace vk
|
|||||||
: m_instance(VK_NULL_HANDLE)
|
: m_instance(VK_NULL_HANDLE)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT Instance(VkInstance instance)
|
||||||
Instance(VkInstance instance)
|
|
||||||
: m_instance(instance)
|
: m_instance(instance)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#if defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
||||||
Instance& operator=(VkInstance instance)
|
Instance& operator=(VkInstance instance)
|
||||||
{
|
{
|
||||||
m_instance = instance;
|
m_instance = instance;
|
||||||
@ -22099,10 +22011,7 @@ namespace vk
|
|||||||
void debugReportMessageEXT( DebugReportFlagsEXT flags, DebugReportObjectTypeEXT objectType, uint64_t object, size_t location, int32_t messageCode, const std::string & layerPrefix, const std::string & message ) const;
|
void debugReportMessageEXT( DebugReportFlagsEXT flags, DebugReportObjectTypeEXT objectType, uint64_t object, size_t location, int32_t messageCode, const std::string & layerPrefix, const std::string & message ) const;
|
||||||
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||||
|
|
||||||
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
|
VULKAN_HPP_TYPESAFE_EXPLICIT operator VkInstance() const
|
||||||
explicit
|
|
||||||
#endif
|
|
||||||
operator VkInstance() const
|
|
||||||
{
|
{
|
||||||
return m_instance;
|
return m_instance;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user