mirror of
https://github.com/KhronosGroup/Vulkan-Hpp
synced 2024-11-21 20:00:11 +00:00
Simplify helper class vk::ArrayProxyNoTemporaries. (#1908)
This commit is contained in:
parent
dceddb7e31
commit
aac0b4d3ac
@ -3300,7 +3300,8 @@ std::string VulkanHppGenerator::generateCallSequence( std::string const &
|
||||
}
|
||||
else
|
||||
{
|
||||
std::string const callSequenceTemplate = R"(VULKAN_HPP_NAMESPACE::Result result = static_cast<VULKAN_HPP_NAMESPACE::Result>( ${dispatcher}${vkCommand}( ${firstCallArguments} ) );
|
||||
std::string const callSequenceTemplate =
|
||||
R"(VULKAN_HPP_NAMESPACE::Result result = static_cast<VULKAN_HPP_NAMESPACE::Result>( ${dispatcher}${vkCommand}( ${firstCallArguments} ) );
|
||||
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||
{
|
||||
${resizes}
|
||||
@ -10855,7 +10856,10 @@ std::string VulkanHppGenerator::generateStructConstructors( std::pair<std::strin
|
||||
{ "initializers", generateList( initializers, ": ", ", " ) },
|
||||
{ "structName", stripPrefix( structData.first, "Vk" ) } } );
|
||||
|
||||
if ( !structData.second.returnedOnly )
|
||||
{
|
||||
str += generateStructConstructorsEnhanced( structData );
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
|
@ -5,101 +5,60 @@
|
||||
VULKAN_HPP_CONSTEXPR ArrayProxyNoTemporaries() VULKAN_HPP_NOEXCEPT
|
||||
: m_count( 0 )
|
||||
, m_ptr( nullptr )
|
||||
{}
|
||||
{
|
||||
}
|
||||
|
||||
VULKAN_HPP_CONSTEXPR ArrayProxyNoTemporaries( std::nullptr_t ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( 0 )
|
||||
, m_ptr( nullptr )
|
||||
{}
|
||||
{
|
||||
}
|
||||
|
||||
ArrayProxyNoTemporaries( T & value ) VULKAN_HPP_NOEXCEPT
|
||||
template <typename B = T, typename std::enable_if<std::is_convertible<B, T>::value && std::is_lvalue_reference<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( B && value ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( 1 )
|
||||
, m_ptr( &value )
|
||||
{}
|
||||
|
||||
template <typename V>
|
||||
ArrayProxyNoTemporaries( V && value ) = delete;
|
||||
|
||||
template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( typename std::remove_const<T>::type & value ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( 1 )
|
||||
, m_ptr( &value )
|
||||
{}
|
||||
|
||||
template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( typename std::remove_const<T>::type && value ) = delete;
|
||||
{
|
||||
}
|
||||
|
||||
ArrayProxyNoTemporaries( uint32_t count, T * ptr ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( count )
|
||||
, m_ptr( ptr )
|
||||
{}
|
||||
|
||||
template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( uint32_t count, typename std::remove_const<T>::type * ptr ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( count )
|
||||
, m_ptr( ptr )
|
||||
{}
|
||||
{
|
||||
}
|
||||
|
||||
template <std::size_t C>
|
||||
ArrayProxyNoTemporaries( T (& ptr)[C] ) VULKAN_HPP_NOEXCEPT
|
||||
ArrayProxyNoTemporaries( T ( &ptr )[C] ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( C )
|
||||
, m_ptr( ptr )
|
||||
{}
|
||||
{
|
||||
}
|
||||
|
||||
template <std::size_t C>
|
||||
ArrayProxyNoTemporaries( T (&& ptr)[C] ) = delete;
|
||||
ArrayProxyNoTemporaries( T ( &&ptr )[C] ) = delete;
|
||||
|
||||
template <std::size_t C, typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( typename std::remove_const<T>::type (& ptr)[C] ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( C )
|
||||
, m_ptr( ptr )
|
||||
{}
|
||||
|
||||
template <std::size_t C, typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( typename std::remove_const<T>::type (&& ptr)[C] ) = delete;
|
||||
|
||||
ArrayProxyNoTemporaries( std::initializer_list<T> const & list ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( static_cast<uint32_t>( list.size() ) )
|
||||
, m_ptr( list.begin() )
|
||||
{}
|
||||
|
||||
ArrayProxyNoTemporaries( std::initializer_list<T> const && list ) = delete;
|
||||
|
||||
template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( std::initializer_list<typename std::remove_const<T>::type> const & list )
|
||||
VULKAN_HPP_NOEXCEPT
|
||||
: m_count( static_cast<uint32_t>( list.size() ) )
|
||||
, m_ptr( list.begin() )
|
||||
{}
|
||||
|
||||
template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( std::initializer_list<typename std::remove_const<T>::type> const && list ) = delete;
|
||||
|
||||
ArrayProxyNoTemporaries( std::initializer_list<T> & list ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( static_cast<uint32_t>( list.size() ) )
|
||||
, m_ptr( list.begin() )
|
||||
{}
|
||||
|
||||
ArrayProxyNoTemporaries( std::initializer_list<T> && list ) = delete;
|
||||
|
||||
template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( std::initializer_list<typename std::remove_const<T>::type> & list ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( static_cast<uint32_t>( list.size() ) )
|
||||
, m_ptr( list.begin() )
|
||||
{}
|
||||
|
||||
template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( std::initializer_list<typename std::remove_const<T>::type> && list ) = delete;
|
||||
|
||||
// Any type with a .data() return type implicitly convertible to T*, and a .size() return type implicitly convertible to size_t.
|
||||
// Any l-value reference with a .data() return type implicitly convertible to T*, and a .size() return type implicitly convertible to size_t.
|
||||
template <typename V,
|
||||
typename std::enable_if<
|
||||
typename std::enable_if<!std::is_convertible<decltype( std::declval<V>().begin() ), T *>::value &&
|
||||
std::is_convertible<decltype( std::declval<V>().data() ), T *>::value &&
|
||||
std::is_convertible<decltype( std::declval<V>().size() ), std::size_t>::value>::type * = nullptr>
|
||||
ArrayProxyNoTemporaries( V & v ) VULKAN_HPP_NOEXCEPT
|
||||
std::is_convertible<decltype( std::declval<V>().size() ), std::size_t>::value && std::is_lvalue_reference<V>::value,
|
||||
int>::type = 0>
|
||||
ArrayProxyNoTemporaries( V && v ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( static_cast<uint32_t>( v.size() ) )
|
||||
, m_ptr( v.data() )
|
||||
{}
|
||||
{
|
||||
}
|
||||
|
||||
// Any l-value reference with a .begin() return type implicitly convertible to T*, and a .size() return type implicitly convertible to size_t.
|
||||
template <typename V,
|
||||
typename std::enable_if<std::is_convertible<decltype( std::declval<V>().begin() ), T *>::value &&
|
||||
std::is_convertible<decltype( std::declval<V>().size() ), std::size_t>::value && std::is_lvalue_reference<V>::value,
|
||||
int>::type = 0>
|
||||
ArrayProxyNoTemporaries( V && v ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( static_cast<uint32_t>( v.size() ) )
|
||||
, m_ptr( v.begin() )
|
||||
{
|
||||
}
|
||||
|
||||
const T * begin() const VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
|
@ -37,13 +37,13 @@ int getInt()
|
||||
return 1;
|
||||
}
|
||||
|
||||
int( &&getArrayReference() )[2]
|
||||
int ( &&getArrayReference() )[2]
|
||||
{
|
||||
static int arr[2] = { 1, 2 };
|
||||
return std::move( arr );
|
||||
}
|
||||
|
||||
int const( &&getConstArrayReference() )[2]
|
||||
int const ( &&getConstArrayReference() )[2]
|
||||
{
|
||||
static int const arr[2] = { 1, 2 };
|
||||
return std::move( arr );
|
||||
@ -69,49 +69,54 @@ std::vector<int> const getConstVector()
|
||||
return { 1, 2 };
|
||||
}
|
||||
|
||||
//std::initializer_list<int> getInitializerList()
|
||||
//{
|
||||
// return { 1, 2 };
|
||||
//}
|
||||
std::initializer_list<int> getInitializerList()
|
||||
{
|
||||
return { 1, 2 };
|
||||
}
|
||||
|
||||
//std::initializer_list<int> const getConstInitializerList()
|
||||
//{
|
||||
// return { 1, 2 };
|
||||
//}
|
||||
std::initializer_list<int> const getConstInitializerList()
|
||||
{
|
||||
return { 1, 2 };
|
||||
}
|
||||
|
||||
int main( int /*argc*/, char ** /*argv*/ )
|
||||
{
|
||||
try
|
||||
{
|
||||
// no args
|
||||
fct( {} );
|
||||
fctc( {} );
|
||||
|
||||
// nullptr_t
|
||||
fct( nullptr );
|
||||
fctc( nullptr );
|
||||
|
||||
vk::ArrayProxyNoTemporaries<int> ap0 = nullptr;
|
||||
assert( ap0.size() == 0 );
|
||||
vk::ArrayProxyNoTemporaries<int> apnt1 = nullptr;
|
||||
assert( apnt1.size() == 0 );
|
||||
|
||||
// Type
|
||||
// fct(2); // not supported: attempting to reference a deleted function: ArrayProxyNoTemporaries<int>(int &&)
|
||||
// fctc(1); // not supported: attempting to reference a deleted function: ArrayProxyNoTemporaries<T,0>(int &&)
|
||||
// fct(2); // not supported: cannot convert argument 1 from 'int' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
// fctc(1); // not supported: cannot convert argument 1 from 'int' to 'vk::ArrayProxyNoTemporaries<const int32_t>'
|
||||
|
||||
// getInt()
|
||||
// fct( getInt() ); // not supported: attempting to reference a deleted function: ArrayProxyNoTemporaries<int>(int &&)
|
||||
// fctc( getInt() ); // not supported: attempting to reference a deleted function: ArrayProxyNoTemporaries<T,0>(int &&)
|
||||
// fct( getInt() ); // not supported: cannot convert argument 1 from 'int' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
// fctc( getInt() ); // not supported: cannot convert argument 1 from 'int' to 'vk::ArrayProxyNoTemporaries<const int32_t>'
|
||||
|
||||
int i0 = 1;
|
||||
fct( i0 );
|
||||
fctc( i0 );
|
||||
|
||||
const int i1 = 2;
|
||||
// fct(i1); // not supported: ArrayProxyNoTemporaries<const int&>(const int &)
|
||||
// fct(i1); // not supported: cannot convert from 'const int *' to 'T *
|
||||
fctc( i1 );
|
||||
|
||||
// vk::ArrayProxyNoTemporaries<const int> ap1 = 1; // not supported: ArrayProxyNoTemporaries<const int>::ArrayProxyNoTemporaries<T,0>(int &&)
|
||||
// vk::ArrayProxyNoTemporaries<int> apnt2 = 1; // not supported: cannot convert from 'int' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
// vk::ArrayProxyNoTemporaries<const int> apnt3 = 1; // not supported: cannot convert from 'int' to 'vk::ArrayProxyNoTemporaries<const int32_t>'
|
||||
|
||||
vk::ArrayProxyNoTemporaries<const int> ap2 = i0;
|
||||
assert( ap2.size() == 1 );
|
||||
vk::ArrayProxyNoTemporaries<const int> ap3 = i1;
|
||||
assert( ap3.size() == 1 );
|
||||
vk::ArrayProxyNoTemporaries<const int> apnt4 = i0;
|
||||
assert( apnt4.size() == 1 );
|
||||
vk::ArrayProxyNoTemporaries<const int> apnt5 = i1;
|
||||
assert( apnt5.size() == 1 );
|
||||
|
||||
// count, T *
|
||||
int * i0p = &i0;
|
||||
@ -120,13 +125,13 @@ int main( int /*argc*/, char ** /*argv*/ )
|
||||
|
||||
// count, T const*
|
||||
int const * i1p = &i1;
|
||||
// fct({ 1, i1p }); // not supported: cannot convert argument 1 from 'initializer list' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
// fct( { 1, i1p } ); // not supported: cannot convert argument 1 from 'initializer list' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
fctc( { 1, i1p } );
|
||||
|
||||
vk::ArrayProxyNoTemporaries<const int> ap4 = { 1, i0p };
|
||||
assert( ap4.size() == 1 );
|
||||
vk::ArrayProxyNoTemporaries<const int> ap5 = { 1, i1p };
|
||||
assert( ap5.size() == 1 );
|
||||
vk::ArrayProxyNoTemporaries<const int> apnt6 = { 1, i0p };
|
||||
assert( apnt6.size() == 1 );
|
||||
vk::ArrayProxyNoTemporaries<const int> apnt7 = { 1, i1p };
|
||||
assert( apnt7.size() == 1 );
|
||||
|
||||
// T[count]
|
||||
int ia0[2] = { 0, 1 };
|
||||
@ -138,16 +143,16 @@ int main( int /*argc*/, char ** /*argv*/ )
|
||||
// fct( ia1 ); // not supported: cannot convert argument 1 from 'const int [2]' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
fctc( ia1 );
|
||||
|
||||
vk::ArrayProxyNoTemporaries<const int> ap6 = ia0;
|
||||
assert( ap6.size() == 2 );
|
||||
vk::ArrayProxyNoTemporaries<const int> ap7 = ia1;
|
||||
assert( ap7.size() == 2 );
|
||||
vk::ArrayProxyNoTemporaries<const int> apnt8 = ia0;
|
||||
assert( apnt8.size() == 2 );
|
||||
vk::ArrayProxyNoTemporaries<const int> apnt9 = ia1;
|
||||
assert( apnt9.size() == 2 );
|
||||
|
||||
// getArrayReference
|
||||
// fct( getConstArrayReference() ); // not supported
|
||||
// fctc( getConstArrayReference() ); // not supported
|
||||
// fct( getArrayReference() ); // not supported
|
||||
// fctc( getArrayReference() ); // not supported
|
||||
// fct( getConstArrayReference() ); // not supported: cannot convert argument 1 from 'const int [2]' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
// fctc( getConstArrayReference() ); // not supported: attempting to reference a deleted function
|
||||
// fct( getArrayReference() ); // not supported: attempting to reference a deleted function
|
||||
// fctc( getArrayReference() ); // not supported: attempting to reference a deleted function
|
||||
|
||||
// std::array<T,N>
|
||||
std::array<int, 2> sa0 = { 0, 1 };
|
||||
@ -156,42 +161,42 @@ int main( int /*argc*/, char ** /*argv*/ )
|
||||
|
||||
// std::array<const T,N>
|
||||
std::array<const int, 2> sa1 = { 0, 1 };
|
||||
// fct(sa1); // not supported: attempting to reference a deleted function: ArrayProxyNoTemporaries<std::array<const int,2>&>(V)
|
||||
// fct( sa1 ); // not supported: cannot convert argument 1 from 'std::array<const int,2>' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
fctc( sa1 );
|
||||
|
||||
// std::array<T,N> const
|
||||
std::array<int, 2> const sa2 = { 1, 2 };
|
||||
// fct(sa2); // not supported: attempting to reference a deleted function: ArrayProxyNoTemporaries<const std::array<int,2>&>(V)
|
||||
// fct( sa2 ); // not supported: cannot convert argument 1 from 'const std::array<int,2>' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
fctc( sa2 );
|
||||
|
||||
// std::array<const T,N> const
|
||||
std::array<const int, 2> const sa3 = { 1, 2 };
|
||||
// fct(sa3); // not supported: attempting to reference a deleted function: ArrayProxyNoTemporaries<const std::array<const int,2>&>(V)
|
||||
// fct( sa3 ); // not supported: cannot convert argument 1 from 'const std::array<const int,2>' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
fctc( sa3 );
|
||||
|
||||
// getArray
|
||||
// fct( getConstArray() ); // not supported: attempting to reference a deleted function: ArrayProxyNoTemporaries<const std::array<int,2>>(V &&)
|
||||
// fctc( getConstArray() ); // not supported: attempting to reference a deleted function: ArrayProxyNoTemporaries<const std::array<int,2>>(V &&)
|
||||
// fct( getArray() ); // not supported: attempting to reference a deleted function: ArrayProxyNoTemporaries<std::array<int,2>>(V &&)
|
||||
// fctc( getArray() ); // not supported: attempting to reference a deleted function: ArrayProxyNoTemporaries<std::array<int,2>>(V &&)
|
||||
// fct( getConstArray() ); // not supported: cannot convert argument 1 from 'const std::array<int,2>' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
// fctc( getConstArray() ); // not supported: cannot convert argument 1 from 'const std::array<int,2>' to 'vk::ArrayProxyNoTemporaries<const int32_t>'
|
||||
// fct( getArray() ); // not supported: cannot convert argument 1 from 'std::array<int,2>' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
// fctc( getArray() ); // not supported: cannot convert argument 1 from 'std::array<int,2>' to 'vk::ArrayProxyNoTemporaries<const int32_t>'
|
||||
|
||||
// from std::array constructors
|
||||
vk::ArrayProxyNoTemporaries<int> ap8 = sa0;
|
||||
assert( ap8.size() == 2 );
|
||||
vk::ArrayProxyNoTemporaries<int> apnt10 = sa0;
|
||||
assert( apnt10.size() == 2 );
|
||||
|
||||
// vk::ArrayProxyNoTemporaries<int> ap9 = sa1; // not supported: attempting to reference a deleted function: ArrayProxyNoTemporaries<std::array<const
|
||||
// int,2>&>(V) vk::ArrayProxyNoTemporaries<int> ap10 = sa2; // not supported: attempting to reference a deleted function: ArrayProxyNoTemporaries<const
|
||||
// std::array<int,2>&>(V) vk::ArrayProxyNoTemporaries<int> ap11 = sa3; // not supported: attempting to reference a deleted function:
|
||||
// ArrayProxyNoTemporaries<const std::array<const int,2>&>(V)
|
||||
// vk::ArrayProxyNoTemporaries<int> apnt11 = sa1; // not supported: cannot convert from 'std::array<const int,2>' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
// vk::ArrayProxyNoTemporaries<int> apnt12 = sa2; // not supported: cannot convert from 'const std::array<int,2>' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
// vk::ArrayProxyNoTemporaries<int> apnt13 = sa3; // not supported: cannot convert from 'const std::array<const int,2>' to
|
||||
// 'vk::ArrayProxyNoTemporaries<int>'
|
||||
|
||||
vk::ArrayProxyNoTemporaries<const int> ap12 = sa0;
|
||||
assert( ap12.size() == 2 );
|
||||
vk::ArrayProxyNoTemporaries<const int> ap13 = sa1;
|
||||
assert( ap13.size() == 2 );
|
||||
vk::ArrayProxyNoTemporaries<const int> ap14 = sa2;
|
||||
assert( ap14.size() == 2 );
|
||||
vk::ArrayProxyNoTemporaries<const int> ap15 = sa3;
|
||||
assert( ap15.size() == 2 );
|
||||
vk::ArrayProxyNoTemporaries<const int> apnt14 = sa0;
|
||||
assert( apnt14.size() == 2 );
|
||||
vk::ArrayProxyNoTemporaries<const int> apnt15 = sa1;
|
||||
assert( apnt15.size() == 2 );
|
||||
vk::ArrayProxyNoTemporaries<const int> apnt16 = sa2;
|
||||
assert( apnt16.size() == 2 );
|
||||
vk::ArrayProxyNoTemporaries<const int> apnt17 = sa3;
|
||||
assert( apnt17.size() == 2 );
|
||||
|
||||
// std::vector<T>
|
||||
std::vector<int> sv0 = { 0, 1 };
|
||||
@ -200,85 +205,78 @@ int main( int /*argc*/, char ** /*argv*/ )
|
||||
|
||||
// std::vector<T> const
|
||||
std::vector<int> const sv1 = { 0, 1 };
|
||||
// fct(sv1); // not supported: attempting to reference a deleted function: ArrayProxyNoTemporaries<const std::vector<int,std::allocator<int>>&>(V)
|
||||
// fct( sv1 ); // not supported: cannot convert argument 1 from 'const std::vector<int,std::allocator<int>>' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
fctc( sv1 );
|
||||
|
||||
// getVector
|
||||
// fct( getConstVector() ); // not supported: attempting to reference a deleted function: ArrayProxyNoTemporaries<const
|
||||
// std::vector<int,std::allocator<int>>>(V &&) fctc( getConstVector() ); // not supported: attempting to reference a deleted function:
|
||||
// ArrayProxyNoTemporaries<const std::vector<int,std::allocator<int>>>(V &&) fct( getVector() ); // not supported: attempting to reference a deleted
|
||||
// function: ArrayProxyNoTemporaries<std::vector<int,std::allocator<int>>>(V &&) fctc( getVector() ); // not supported: attempting to reference a
|
||||
// deleted function: ArrayProxyNoTemporaries<std::vector<int,std::allocator<int>>>(V &&)
|
||||
// fct( getConstVector() ); // not supported: cannot convert argument 1 from 'const std::vector<int,std::allocator<int>>' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
// fctc( getConstVector() ); // not supported: cannot convert argument 1 from 'const std::vector<int,std::allocator<int>>' to 'vk::ArrayProxyNoTemporaries<const int32_t>'
|
||||
// fct( getVector() ); // not supported: cannot convert argument 1 from 'std::vector<int,std::allocator<int>>' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
// fctc( getVector() ); // not supported: cannot convert argument 1 from 'std::vector<int,std::allocator<int>>' to 'vk::ArrayProxyNoTemporaries<const int32_t>'
|
||||
|
||||
vk::ArrayProxyNoTemporaries<int> ap16 = sv0;
|
||||
assert( ap16.size() == 2 );
|
||||
vk::ArrayProxyNoTemporaries<int> apnt18 = sv0;
|
||||
assert( apnt18.size() == 2 );
|
||||
|
||||
// vk::ArrayProxyNoTemporaries<int> ap17 = sv1; // not supported: attempting to reference a deleted function: ArrayProxyNoTemporaries<const
|
||||
// std::vector<int,std::allocator<int>>&>(V)
|
||||
// vk::ArrayProxyNoTemporaries<int> apnt19 = sv1; // not supported: cannot convert from 'const std::vector<int,std::allocator<int>>' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
|
||||
vk::ArrayProxyNoTemporaries<const int> ap18 = sv0;
|
||||
assert( ap18.size() == 2 );
|
||||
vk::ArrayProxyNoTemporaries<const int> ap19 = sv1;
|
||||
assert( ap19.size() == 2 );
|
||||
vk::ArrayProxyNoTemporaries<const int> apnt20 = sv0;
|
||||
assert( apnt20.size() == 2 );
|
||||
vk::ArrayProxyNoTemporaries<const int> apnt21 = sv1;
|
||||
assert( apnt21.size() == 2 );
|
||||
|
||||
// std::initializer_list
|
||||
fct( {} );
|
||||
fctc( {} );
|
||||
|
||||
// fct({ 0, 1 }); // not supported: cannot convert argument 1 from 'initializer list' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
// fctc({ 0, 1 }); // not supported: cannot convert argument 1 from 'initializer list' to 'vk::ArrayProxyNoTemporaries<const int32_t>'
|
||||
// fct( { 0, 1 } ); // not supported: cannot convert argument 1 from 'initializer list' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
// fctc( { 0, 1 } ); // not supported: cannot convert argument 1 from 'initializer list' to 'vk::ArrayProxyNoTemporaries<const int32_t>'
|
||||
|
||||
// int a = 0;
|
||||
// int b = 1;
|
||||
// fct({ a, b }); // not supported: cannot convert argument 1 from 'initializer list' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
// fctc({ a,b }); // not supported: cannot convert argument 1 from 'initializer list' to 'vk::ArrayProxyNoTemporaries<const int32_t>'
|
||||
// fct( { a, b } ); // not supported: cannot convert argument 1 from 'initializer list' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
// fctc( { a, b } ); // not supported: cannot convert argument 1 from 'initializer list' to 'vk::ArrayProxyNoTemporaries<const int32_t>'
|
||||
|
||||
auto il0 = { 0, 1 }; // -> std::initializer_list<int>
|
||||
// fct(il0); // not supported: cannot convert from 'const int *' to 'int *'
|
||||
// fct( il0 ); // not supported: cannot convert from 'const int *' to 'int *'
|
||||
fctc( il0 );
|
||||
|
||||
std::initializer_list<int> il1 = { 0, 1 };
|
||||
// fct(il1); // not supported: cannot convert from 'const int *' to 'int *'
|
||||
// fct( il1 ); // not supported: cannot convert argument 1 from 'std::initializer_list<_Ty>' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
fctc( il1 );
|
||||
|
||||
std::initializer_list<const int> il2 = { 0, 1 };
|
||||
// fct(il2); // not supported: attempting to reference a deleted function : ArrayProxyNoTemporaries<std::initializer_list<T>&>(V)
|
||||
// fct( il2 ); // not supported: cannot convert argument 1 from 'std::initializer_list<const int>' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
fctc( il2 );
|
||||
|
||||
std::initializer_list<int> const il3 = { 0, 1 };
|
||||
// fct(il3); // not supported: cannot convert from 'const int *' to 'int *'
|
||||
// fct( il3 ); // not supported: cannot convert argument 1 from 'const std::initializer_list<_Ty>' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
fctc( il3 );
|
||||
|
||||
std::initializer_list<const int> const il4 = { 0, 1 };
|
||||
// fct(il4); // not supported: attempting to reference a deleted function: ArrayProxyNoTemporaries<const std::initializer_list<T>&>(V)
|
||||
// fct( il4 ); // not supported: cannot convert argument 1 from 'const std::initializer_list<const int>' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
fctc( il4 );
|
||||
|
||||
// getInitializerList
|
||||
// fct( getConstInitializerList() ); // not supported: attempting to reference a deleted function: ArrayProxyNoTemporaries(const
|
||||
// std::initializer_list<int> &&) fctc( getConstInitializerList() ); // not supported: attempting to reference a deleted function:
|
||||
// ArrayProxyNoTemporaries<T,0>(const std::initializer_list<int> &&) fct( getInitializerList() ); // not supported: attempting to reference a
|
||||
// deleted function: ArrayProxyNoTemporaries(std::initializer_list<int> &&) fctc( getInitializerList() ); // not supported: attempting to reference
|
||||
// a deleted function: ArrayProxyNoTemporaries<T,0>(std::initializer_list<int> &&)
|
||||
// fct( getConstInitializerList() ); // not supported: cannot convert argument 1 from 'const std::initializer_list<_Ty>' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
// fctc( getConstInitializerList() ); // not supported: cannot convert argument 1 from 'const std::initializer_list<_Ty>' to 'vk::ArrayProxyNoTemporaries<const int32_t>'
|
||||
// fct( getInitializerList() ); // not supported: cannot convert argument 1 from 'std::initializer_list<_Ty>' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
// fctc( getInitializerList() ); // not supported: cannot convert argument 1 from 'std::initializer_list<_Ty>' to 'vk::ArrayProxyNoTemporaries<const int32_t>'
|
||||
|
||||
// vk::ArrayProxyNoTemporaries<int> ap20 = il1; // not supported: cannot convert from 'const int *' to 'int *'
|
||||
// vk::ArrayProxyNoTemporaries<int> ap21 = il2; // not supported: attempting to reference a deleted function:
|
||||
// ArrayProxyNoTemporaries<std::initializer_list<T>&>(V) vk::ArrayProxyNoTemporaries<int> ap22 = il3; // not supported: cannot convert from 'const int *'
|
||||
// to 'int *' vk::ArrayProxyNoTemporaries<int> ap23 = il4; // not supported: attempting to reference a deleted function: ArrayProxyNoTemporaries<const
|
||||
// std::initializer_list<T>&>(V)
|
||||
// vk::ArrayProxyNoTemporaries<int> apnt22 = il1; // not supported: cannot convert from 'std::initializer_list<_Ty>' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
// vk::ArrayProxyNoTemporaries<int> apnt23 = il2; // not supported: cannot convert from 'std::initializer_list<const int>' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
// vk::ArrayProxyNoTemporaries<int> apnt24 = il3; // not supported: cannot convert from 'const std::initializer_list<_Ty>' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
// vk::ArrayProxyNoTemporaries<int> apnt25 = il4; // not supported: cannot convert from 'const std::initializer_list<const int>' to 'vk::ArrayProxyNoTemporaries<int>'
|
||||
|
||||
vk::ArrayProxyNoTemporaries<const int> ap24 = {};
|
||||
assert( ap24.size() == 0 );
|
||||
vk::ArrayProxyNoTemporaries<const int> apnt26 = {};
|
||||
assert( apnt26.size() == 0 );
|
||||
|
||||
// vk::ArrayProxyNoTemporaries<const int> ap25 = { 0, 1 }; // not supported
|
||||
// vk::ArrayProxyNoTemporaries<const int> apnt27 = { 0, 1 }; // not supported: cannot convert from 'initializer list' to 'vk::ArrayProxyNoTemporaries<const int32_t>'
|
||||
|
||||
vk::ArrayProxyNoTemporaries<const int> ap26 = il1;
|
||||
assert( ap26.size() == 2 );
|
||||
vk::ArrayProxyNoTemporaries<const int> ap27 = il2;
|
||||
assert( ap27.size() == 2 );
|
||||
vk::ArrayProxyNoTemporaries<const int> ap28 = il3;
|
||||
assert( ap28.size() == 2 );
|
||||
vk::ArrayProxyNoTemporaries<const int> ap29 = il4;
|
||||
assert( ap29.size() == 2 );
|
||||
vk::ArrayProxyNoTemporaries<const int> apnt28 = il1;
|
||||
assert( apnt28.size() == 2 );
|
||||
vk::ArrayProxyNoTemporaries<const int> apnt29 = il2;
|
||||
assert( apnt29.size() == 2 );
|
||||
vk::ArrayProxyNoTemporaries<const int> apnt30 = il3;
|
||||
assert( apnt30.size() == 2 );
|
||||
vk::ArrayProxyNoTemporaries<const int> apnt31 = il4;
|
||||
assert( apnt31.size() == 2 );
|
||||
}
|
||||
catch ( vk::SystemError const & err )
|
||||
{
|
||||
|
@ -13,5 +13,5 @@
|
||||
# limitations under the License.
|
||||
|
||||
if( NOT VULKAN_HPP_TESTS_BUILD_ONLY_DYNAMIC )
|
||||
vulkan_hpp__setup_test( NAME ArrayProxyNoTemporaries )
|
||||
vulkan_hpp__setup_test( NAME ArrayProxyNoTemporaries NO_UTILS )
|
||||
endif()
|
@ -388,38 +388,19 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
}
|
||||
|
||||
ArrayProxyNoTemporaries( T & value ) VULKAN_HPP_NOEXCEPT
|
||||
template <typename B = T, typename std::enable_if<std::is_convertible<B, T>::value && std::is_lvalue_reference<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( B && value ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( 1 )
|
||||
, m_ptr( &value )
|
||||
{
|
||||
}
|
||||
|
||||
template <typename V>
|
||||
ArrayProxyNoTemporaries( V && value ) = delete;
|
||||
|
||||
template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( typename std::remove_const<T>::type & value ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( 1 )
|
||||
, m_ptr( &value )
|
||||
{
|
||||
}
|
||||
|
||||
template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( typename std::remove_const<T>::type && value ) = delete;
|
||||
|
||||
ArrayProxyNoTemporaries( uint32_t count, T * ptr ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( count )
|
||||
, m_ptr( ptr )
|
||||
{
|
||||
}
|
||||
|
||||
template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( uint32_t count, typename std::remove_const<T>::type * ptr ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( count )
|
||||
, m_ptr( ptr )
|
||||
{
|
||||
}
|
||||
|
||||
template <std::size_t C>
|
||||
ArrayProxyNoTemporaries( T ( &ptr )[C] ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( C )
|
||||
@ -430,62 +411,29 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
template <std::size_t C>
|
||||
ArrayProxyNoTemporaries( T ( &&ptr )[C] ) = delete;
|
||||
|
||||
template <std::size_t C, typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( typename std::remove_const<T>::type ( &ptr )[C] ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( C )
|
||||
, m_ptr( ptr )
|
||||
{
|
||||
}
|
||||
|
||||
template <std::size_t C, typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( typename std::remove_const<T>::type ( &&ptr )[C] ) = delete;
|
||||
|
||||
ArrayProxyNoTemporaries( std::initializer_list<T> const & list ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( static_cast<uint32_t>( list.size() ) )
|
||||
, m_ptr( list.begin() )
|
||||
{
|
||||
}
|
||||
|
||||
ArrayProxyNoTemporaries( std::initializer_list<T> const && list ) = delete;
|
||||
|
||||
template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( std::initializer_list<typename std::remove_const<T>::type> const & list ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( static_cast<uint32_t>( list.size() ) )
|
||||
, m_ptr( list.begin() )
|
||||
{
|
||||
}
|
||||
|
||||
template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( std::initializer_list<typename std::remove_const<T>::type> const && list ) = delete;
|
||||
|
||||
ArrayProxyNoTemporaries( std::initializer_list<T> & list ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( static_cast<uint32_t>( list.size() ) )
|
||||
, m_ptr( list.begin() )
|
||||
{
|
||||
}
|
||||
|
||||
ArrayProxyNoTemporaries( std::initializer_list<T> && list ) = delete;
|
||||
|
||||
template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( std::initializer_list<typename std::remove_const<T>::type> & list ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( static_cast<uint32_t>( list.size() ) )
|
||||
, m_ptr( list.begin() )
|
||||
{
|
||||
}
|
||||
|
||||
template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( std::initializer_list<typename std::remove_const<T>::type> && list ) = delete;
|
||||
|
||||
// Any type with a .data() return type implicitly convertible to T*, and a .size() return type implicitly convertible to size_t.
|
||||
// Any l-value reference with a .data() return type implicitly convertible to T*, and a .size() return type implicitly convertible to size_t.
|
||||
template <typename V,
|
||||
typename std::enable_if<std::is_convertible<decltype( std::declval<V>().data() ), T *>::value &&
|
||||
std::is_convertible<decltype( std::declval<V>().size() ), std::size_t>::value>::type * = nullptr>
|
||||
ArrayProxyNoTemporaries( V & v ) VULKAN_HPP_NOEXCEPT
|
||||
typename std::enable_if<!std::is_convertible<decltype( std::declval<V>().begin() ), T *>::value &&
|
||||
std::is_convertible<decltype( std::declval<V>().data() ), T *>::value &&
|
||||
std::is_convertible<decltype( std::declval<V>().size() ), std::size_t>::value && std::is_lvalue_reference<V>::value,
|
||||
int>::type = 0>
|
||||
ArrayProxyNoTemporaries( V && v ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( static_cast<uint32_t>( v.size() ) )
|
||||
, m_ptr( v.data() )
|
||||
{
|
||||
}
|
||||
|
||||
// Any l-value reference with a .begin() return type implicitly convertible to T*, and a .size() return type implicitly convertible to size_t.
|
||||
template <typename V,
|
||||
typename std::enable_if<std::is_convertible<decltype( std::declval<V>().begin() ), T *>::value &&
|
||||
std::is_convertible<decltype( std::declval<V>().size() ), std::size_t>::value && std::is_lvalue_reference<V>::value,
|
||||
int>::type = 0>
|
||||
ArrayProxyNoTemporaries( V && v ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( static_cast<uint32_t>( v.size() ) )
|
||||
, m_ptr( v.begin() )
|
||||
{
|
||||
}
|
||||
|
||||
const T * begin() const VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
return m_ptr;
|
||||
|
@ -33235,17 +33235,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
}
|
||||
|
||||
# if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
DrmFormatModifierPropertiesList2EXT(
|
||||
VULKAN_HPP_NAMESPACE::ArrayProxyNoTemporaries<VULKAN_HPP_NAMESPACE::DrmFormatModifierProperties2EXT> const & drmFormatModifierProperties_,
|
||||
void * pNext_ = nullptr )
|
||||
: pNext( pNext_ )
|
||||
, drmFormatModifierCount( static_cast<uint32_t>( drmFormatModifierProperties_.size() ) )
|
||||
, pDrmFormatModifierProperties( drmFormatModifierProperties_.data() )
|
||||
{
|
||||
}
|
||||
# endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
DrmFormatModifierPropertiesList2EXT & operator=( DrmFormatModifierPropertiesList2EXT const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||
#endif /*VULKAN_HPP_NO_STRUCT_CONSTRUCTORS*/
|
||||
|
||||
@ -33333,17 +33322,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
}
|
||||
|
||||
# if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
DrmFormatModifierPropertiesListEXT(
|
||||
VULKAN_HPP_NAMESPACE::ArrayProxyNoTemporaries<VULKAN_HPP_NAMESPACE::DrmFormatModifierPropertiesEXT> const & drmFormatModifierProperties_,
|
||||
void * pNext_ = nullptr )
|
||||
: pNext( pNext_ )
|
||||
, drmFormatModifierCount( static_cast<uint32_t>( drmFormatModifierProperties_.size() ) )
|
||||
, pDrmFormatModifierProperties( drmFormatModifierProperties_.data() )
|
||||
{
|
||||
}
|
||||
# endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
DrmFormatModifierPropertiesListEXT & operator=( DrmFormatModifierPropertiesListEXT const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||
#endif /*VULKAN_HPP_NO_STRUCT_CONSTRUCTORS*/
|
||||
|
||||
@ -35664,18 +35642,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
}
|
||||
|
||||
# if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
ExtensionProperties( std::string const & extensionName_, uint32_t specVersion_ = {} ) : specVersion( specVersion_ )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( extensionName_.size() < VK_MAX_EXTENSION_NAME_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( extensionName, VK_MAX_EXTENSION_NAME_SIZE, extensionName_.data(), extensionName_.size() );
|
||||
# else
|
||||
strncpy( extensionName, extensionName_.data(), std::min<size_t>( VK_MAX_EXTENSION_NAME_SIZE, extensionName_.size() ) );
|
||||
# endif
|
||||
}
|
||||
# endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
ExtensionProperties & operator=( ExtensionProperties const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||
#endif /*VULKAN_HPP_NO_STRUCT_CONSTRUCTORS*/
|
||||
|
||||
@ -49778,26 +49744,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
|
||||
LayerProperties( VkLayerProperties const & rhs ) VULKAN_HPP_NOEXCEPT : LayerProperties( *reinterpret_cast<LayerProperties const *>( &rhs ) ) {}
|
||||
|
||||
# if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
LayerProperties( std::string const & layerName_, uint32_t specVersion_ = {}, uint32_t implementationVersion_ = {}, std::string const & description_ = {} )
|
||||
: specVersion( specVersion_ ), implementationVersion( implementationVersion_ )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( layerName_.size() < VK_MAX_EXTENSION_NAME_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( layerName, VK_MAX_EXTENSION_NAME_SIZE, layerName_.data(), layerName_.size() );
|
||||
# else
|
||||
strncpy( layerName, layerName_.data(), std::min<size_t>( VK_MAX_EXTENSION_NAME_SIZE, layerName_.size() ) );
|
||||
# endif
|
||||
|
||||
VULKAN_HPP_ASSERT( description_.size() < VK_MAX_DESCRIPTION_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( description, VK_MAX_DESCRIPTION_SIZE, description_.data(), description_.size() );
|
||||
# else
|
||||
strncpy( description, description_.data(), std::min<size_t>( VK_MAX_DESCRIPTION_SIZE, description_.size() ) );
|
||||
# endif
|
||||
}
|
||||
# endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
LayerProperties & operator=( LayerProperties const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||
#endif /*VULKAN_HPP_NO_STRUCT_CONSTRUCTORS*/
|
||||
|
||||
@ -55257,37 +55203,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
}
|
||||
|
||||
# if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
PerformanceCounterDescriptionKHR( VULKAN_HPP_NAMESPACE::PerformanceCounterDescriptionFlagsKHR flags_,
|
||||
std::string const & name_,
|
||||
std::string const & category_ = {},
|
||||
std::string const & description_ = {},
|
||||
void * pNext_ = nullptr )
|
||||
: pNext( pNext_ ), flags( flags_ )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( name_.size() < VK_MAX_DESCRIPTION_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( name, VK_MAX_DESCRIPTION_SIZE, name_.data(), name_.size() );
|
||||
# else
|
||||
strncpy( name, name_.data(), std::min<size_t>( VK_MAX_DESCRIPTION_SIZE, name_.size() ) );
|
||||
# endif
|
||||
|
||||
VULKAN_HPP_ASSERT( category_.size() < VK_MAX_DESCRIPTION_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( category, VK_MAX_DESCRIPTION_SIZE, category_.data(), category_.size() );
|
||||
# else
|
||||
strncpy( category, category_.data(), std::min<size_t>( VK_MAX_DESCRIPTION_SIZE, category_.size() ) );
|
||||
# endif
|
||||
|
||||
VULKAN_HPP_ASSERT( description_.size() < VK_MAX_DESCRIPTION_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( description, VK_MAX_DESCRIPTION_SIZE, description_.data(), description_.size() );
|
||||
# else
|
||||
strncpy( description, description_.data(), std::min<size_t>( VK_MAX_DESCRIPTION_SIZE, description_.size() ) );
|
||||
# endif
|
||||
}
|
||||
# endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
PerformanceCounterDescriptionKHR & operator=( PerformanceCounterDescriptionKHR const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||
#endif /*VULKAN_HPP_NO_STRUCT_CONSTRUCTORS*/
|
||||
|
||||
@ -62758,30 +62673,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
}
|
||||
|
||||
# if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
PhysicalDeviceDriverProperties( VULKAN_HPP_NAMESPACE::DriverId driverID_,
|
||||
std::string const & driverName_,
|
||||
std::string const & driverInfo_ = {},
|
||||
VULKAN_HPP_NAMESPACE::ConformanceVersion conformanceVersion_ = {},
|
||||
void * pNext_ = nullptr )
|
||||
: pNext( pNext_ ), driverID( driverID_ ), conformanceVersion( conformanceVersion_ )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( driverName_.size() < VK_MAX_DRIVER_NAME_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( driverName, VK_MAX_DRIVER_NAME_SIZE, driverName_.data(), driverName_.size() );
|
||||
# else
|
||||
strncpy( driverName, driverName_.data(), std::min<size_t>( VK_MAX_DRIVER_NAME_SIZE, driverName_.size() ) );
|
||||
# endif
|
||||
|
||||
VULKAN_HPP_ASSERT( driverInfo_.size() < VK_MAX_DRIVER_INFO_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( driverInfo, VK_MAX_DRIVER_INFO_SIZE, driverInfo_.data(), driverInfo_.size() );
|
||||
# else
|
||||
strncpy( driverInfo, driverInfo_.data(), std::min<size_t>( VK_MAX_DRIVER_INFO_SIZE, driverInfo_.size() ) );
|
||||
# endif
|
||||
}
|
||||
# endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
PhysicalDeviceDriverProperties & operator=( PhysicalDeviceDriverProperties const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||
#endif /*VULKAN_HPP_NO_STRUCT_CONSTRUCTORS*/
|
||||
|
||||
@ -67656,19 +67547,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
}
|
||||
|
||||
# if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
PhysicalDeviceGroupProperties( VULKAN_HPP_NAMESPACE::ArrayProxy<VULKAN_HPP_NAMESPACE::PhysicalDevice> const & physicalDevices_,
|
||||
VULKAN_HPP_NAMESPACE::Bool32 subsetAllocation_ = {},
|
||||
void * pNext_ = nullptr )
|
||||
: pNext( pNext_ )
|
||||
, physicalDeviceCount( ( std::min )( static_cast<uint32_t>( physicalDevices_.size() ), VK_MAX_DEVICE_GROUP_SIZE ) )
|
||||
, subsetAllocation( subsetAllocation_ )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( physicalDevices_.size() < VK_MAX_DEVICE_GROUP_SIZE );
|
||||
memcpy( physicalDevices, physicalDevices_.data(), physicalDeviceCount * sizeof( VULKAN_HPP_NAMESPACE::PhysicalDevice ) );
|
||||
}
|
||||
# endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
PhysicalDeviceGroupProperties & operator=( PhysicalDeviceGroupProperties const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||
#endif /*VULKAN_HPP_NO_STRUCT_CONSTRUCTORS*/
|
||||
|
||||
@ -73115,19 +72993,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
}
|
||||
|
||||
# if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
PhysicalDeviceMemoryProperties( VULKAN_HPP_NAMESPACE::ArrayProxy<VULKAN_HPP_NAMESPACE::MemoryType> const & memoryTypes_,
|
||||
VULKAN_HPP_NAMESPACE::ArrayProxy<VULKAN_HPP_NAMESPACE::MemoryHeap> const & memoryHeaps_ = {} )
|
||||
: memoryTypeCount( ( std::min )( static_cast<uint32_t>( memoryTypes_.size() ), VK_MAX_MEMORY_TYPES ) )
|
||||
, memoryHeapCount( ( std::min )( static_cast<uint32_t>( memoryHeaps_.size() ), VK_MAX_MEMORY_HEAPS ) )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( memoryTypes_.size() < VK_MAX_MEMORY_TYPES );
|
||||
memcpy( memoryTypes, memoryTypes_.data(), memoryTypeCount * sizeof( VULKAN_HPP_NAMESPACE::MemoryType ) );
|
||||
VULKAN_HPP_ASSERT( memoryHeaps_.size() < VK_MAX_MEMORY_HEAPS );
|
||||
memcpy( memoryHeaps, memoryHeaps_.data(), memoryHeapCount * sizeof( VULKAN_HPP_NAMESPACE::MemoryHeap ) );
|
||||
}
|
||||
# endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
PhysicalDeviceMemoryProperties & operator=( PhysicalDeviceMemoryProperties const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||
#endif /*VULKAN_HPP_NO_STRUCT_CONSTRUCTORS*/
|
||||
|
||||
@ -77986,34 +77851,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
}
|
||||
|
||||
# if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
PhysicalDeviceProperties( uint32_t apiVersion_,
|
||||
uint32_t driverVersion_,
|
||||
uint32_t vendorID_,
|
||||
uint32_t deviceID_,
|
||||
VULKAN_HPP_NAMESPACE::PhysicalDeviceType deviceType_,
|
||||
std::string const & deviceName_,
|
||||
std::array<uint8_t, VK_UUID_SIZE> const & pipelineCacheUUID_ = {},
|
||||
VULKAN_HPP_NAMESPACE::PhysicalDeviceLimits limits_ = {},
|
||||
VULKAN_HPP_NAMESPACE::PhysicalDeviceSparseProperties sparseProperties_ = {} )
|
||||
: apiVersion( apiVersion_ )
|
||||
, driverVersion( driverVersion_ )
|
||||
, vendorID( vendorID_ )
|
||||
, deviceID( deviceID_ )
|
||||
, deviceType( deviceType_ )
|
||||
, pipelineCacheUUID( pipelineCacheUUID_ )
|
||||
, limits( limits_ )
|
||||
, sparseProperties( sparseProperties_ )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( deviceName_.size() < VK_MAX_PHYSICAL_DEVICE_NAME_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( deviceName, VK_MAX_PHYSICAL_DEVICE_NAME_SIZE, deviceName_.data(), deviceName_.size() );
|
||||
# else
|
||||
strncpy( deviceName, deviceName_.data(), std::min<size_t>( VK_MAX_PHYSICAL_DEVICE_NAME_SIZE, deviceName_.size() ) );
|
||||
# endif
|
||||
}
|
||||
# endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
PhysicalDeviceProperties & operator=( PhysicalDeviceProperties const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||
#endif /*VULKAN_HPP_NO_STRUCT_CONSTRUCTORS*/
|
||||
|
||||
@ -87669,45 +87506,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
}
|
||||
|
||||
# if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
PhysicalDeviceToolProperties( std::string const & name_,
|
||||
std::string const & version_ = {},
|
||||
VULKAN_HPP_NAMESPACE::ToolPurposeFlags purposes_ = {},
|
||||
std::string const & description_ = {},
|
||||
std::string const & layer_ = {},
|
||||
void * pNext_ = nullptr )
|
||||
: pNext( pNext_ ), purposes( purposes_ )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( name_.size() < VK_MAX_EXTENSION_NAME_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( name, VK_MAX_EXTENSION_NAME_SIZE, name_.data(), name_.size() );
|
||||
# else
|
||||
strncpy( name, name_.data(), std::min<size_t>( VK_MAX_EXTENSION_NAME_SIZE, name_.size() ) );
|
||||
# endif
|
||||
|
||||
VULKAN_HPP_ASSERT( version_.size() < VK_MAX_EXTENSION_NAME_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( version, VK_MAX_EXTENSION_NAME_SIZE, version_.data(), version_.size() );
|
||||
# else
|
||||
strncpy( version, version_.data(), std::min<size_t>( VK_MAX_EXTENSION_NAME_SIZE, version_.size() ) );
|
||||
# endif
|
||||
|
||||
VULKAN_HPP_ASSERT( description_.size() < VK_MAX_DESCRIPTION_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( description, VK_MAX_DESCRIPTION_SIZE, description_.data(), description_.size() );
|
||||
# else
|
||||
strncpy( description, description_.data(), std::min<size_t>( VK_MAX_DESCRIPTION_SIZE, description_.size() ) );
|
||||
# endif
|
||||
|
||||
VULKAN_HPP_ASSERT( layer_.size() < VK_MAX_EXTENSION_NAME_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( layer, VK_MAX_EXTENSION_NAME_SIZE, layer_.data(), layer_.size() );
|
||||
# else
|
||||
strncpy( layer, layer_.data(), std::min<size_t>( VK_MAX_EXTENSION_NAME_SIZE, layer_.size() ) );
|
||||
# endif
|
||||
}
|
||||
# endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
PhysicalDeviceToolProperties & operator=( PhysicalDeviceToolProperties const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||
#endif /*VULKAN_HPP_NO_STRUCT_CONSTRUCTORS*/
|
||||
|
||||
@ -90274,129 +90072,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
}
|
||||
|
||||
# if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
PhysicalDeviceVulkan12Properties(
|
||||
VULKAN_HPP_NAMESPACE::DriverId driverID_,
|
||||
std::string const & driverName_,
|
||||
std::string const & driverInfo_ = {},
|
||||
VULKAN_HPP_NAMESPACE::ConformanceVersion conformanceVersion_ = {},
|
||||
VULKAN_HPP_NAMESPACE::ShaderFloatControlsIndependence denormBehaviorIndependence_ = VULKAN_HPP_NAMESPACE::ShaderFloatControlsIndependence::e32BitOnly,
|
||||
VULKAN_HPP_NAMESPACE::ShaderFloatControlsIndependence roundingModeIndependence_ = VULKAN_HPP_NAMESPACE::ShaderFloatControlsIndependence::e32BitOnly,
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderSignedZeroInfNanPreserveFloat16_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderSignedZeroInfNanPreserveFloat32_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderSignedZeroInfNanPreserveFloat64_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderDenormPreserveFloat16_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderDenormPreserveFloat32_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderDenormPreserveFloat64_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderDenormFlushToZeroFloat16_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderDenormFlushToZeroFloat32_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderDenormFlushToZeroFloat64_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderRoundingModeRTEFloat16_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderRoundingModeRTEFloat32_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderRoundingModeRTEFloat64_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderRoundingModeRTZFloat16_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderRoundingModeRTZFloat32_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderRoundingModeRTZFloat64_ = {},
|
||||
uint32_t maxUpdateAfterBindDescriptorsInAllPools_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderUniformBufferArrayNonUniformIndexingNative_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderSampledImageArrayNonUniformIndexingNative_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderStorageBufferArrayNonUniformIndexingNative_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderStorageImageArrayNonUniformIndexingNative_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderInputAttachmentArrayNonUniformIndexingNative_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 robustBufferAccessUpdateAfterBind_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 quadDivergentImplicitLod_ = {},
|
||||
uint32_t maxPerStageDescriptorUpdateAfterBindSamplers_ = {},
|
||||
uint32_t maxPerStageDescriptorUpdateAfterBindUniformBuffers_ = {},
|
||||
uint32_t maxPerStageDescriptorUpdateAfterBindStorageBuffers_ = {},
|
||||
uint32_t maxPerStageDescriptorUpdateAfterBindSampledImages_ = {},
|
||||
uint32_t maxPerStageDescriptorUpdateAfterBindStorageImages_ = {},
|
||||
uint32_t maxPerStageDescriptorUpdateAfterBindInputAttachments_ = {},
|
||||
uint32_t maxPerStageUpdateAfterBindResources_ = {},
|
||||
uint32_t maxDescriptorSetUpdateAfterBindSamplers_ = {},
|
||||
uint32_t maxDescriptorSetUpdateAfterBindUniformBuffers_ = {},
|
||||
uint32_t maxDescriptorSetUpdateAfterBindUniformBuffersDynamic_ = {},
|
||||
uint32_t maxDescriptorSetUpdateAfterBindStorageBuffers_ = {},
|
||||
uint32_t maxDescriptorSetUpdateAfterBindStorageBuffersDynamic_ = {},
|
||||
uint32_t maxDescriptorSetUpdateAfterBindSampledImages_ = {},
|
||||
uint32_t maxDescriptorSetUpdateAfterBindStorageImages_ = {},
|
||||
uint32_t maxDescriptorSetUpdateAfterBindInputAttachments_ = {},
|
||||
VULKAN_HPP_NAMESPACE::ResolveModeFlags supportedDepthResolveModes_ = {},
|
||||
VULKAN_HPP_NAMESPACE::ResolveModeFlags supportedStencilResolveModes_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 independentResolveNone_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 independentResolve_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 filterMinmaxSingleComponentFormats_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 filterMinmaxImageComponentMapping_ = {},
|
||||
uint64_t maxTimelineSemaphoreValueDifference_ = {},
|
||||
VULKAN_HPP_NAMESPACE::SampleCountFlags framebufferIntegerColorSampleCounts_ = {},
|
||||
void * pNext_ = nullptr )
|
||||
: pNext( pNext_ )
|
||||
, driverID( driverID_ )
|
||||
, conformanceVersion( conformanceVersion_ )
|
||||
, denormBehaviorIndependence( denormBehaviorIndependence_ )
|
||||
, roundingModeIndependence( roundingModeIndependence_ )
|
||||
, shaderSignedZeroInfNanPreserveFloat16( shaderSignedZeroInfNanPreserveFloat16_ )
|
||||
, shaderSignedZeroInfNanPreserveFloat32( shaderSignedZeroInfNanPreserveFloat32_ )
|
||||
, shaderSignedZeroInfNanPreserveFloat64( shaderSignedZeroInfNanPreserveFloat64_ )
|
||||
, shaderDenormPreserveFloat16( shaderDenormPreserveFloat16_ )
|
||||
, shaderDenormPreserveFloat32( shaderDenormPreserveFloat32_ )
|
||||
, shaderDenormPreserveFloat64( shaderDenormPreserveFloat64_ )
|
||||
, shaderDenormFlushToZeroFloat16( shaderDenormFlushToZeroFloat16_ )
|
||||
, shaderDenormFlushToZeroFloat32( shaderDenormFlushToZeroFloat32_ )
|
||||
, shaderDenormFlushToZeroFloat64( shaderDenormFlushToZeroFloat64_ )
|
||||
, shaderRoundingModeRTEFloat16( shaderRoundingModeRTEFloat16_ )
|
||||
, shaderRoundingModeRTEFloat32( shaderRoundingModeRTEFloat32_ )
|
||||
, shaderRoundingModeRTEFloat64( shaderRoundingModeRTEFloat64_ )
|
||||
, shaderRoundingModeRTZFloat16( shaderRoundingModeRTZFloat16_ )
|
||||
, shaderRoundingModeRTZFloat32( shaderRoundingModeRTZFloat32_ )
|
||||
, shaderRoundingModeRTZFloat64( shaderRoundingModeRTZFloat64_ )
|
||||
, maxUpdateAfterBindDescriptorsInAllPools( maxUpdateAfterBindDescriptorsInAllPools_ )
|
||||
, shaderUniformBufferArrayNonUniformIndexingNative( shaderUniformBufferArrayNonUniformIndexingNative_ )
|
||||
, shaderSampledImageArrayNonUniformIndexingNative( shaderSampledImageArrayNonUniformIndexingNative_ )
|
||||
, shaderStorageBufferArrayNonUniformIndexingNative( shaderStorageBufferArrayNonUniformIndexingNative_ )
|
||||
, shaderStorageImageArrayNonUniformIndexingNative( shaderStorageImageArrayNonUniformIndexingNative_ )
|
||||
, shaderInputAttachmentArrayNonUniformIndexingNative( shaderInputAttachmentArrayNonUniformIndexingNative_ )
|
||||
, robustBufferAccessUpdateAfterBind( robustBufferAccessUpdateAfterBind_ )
|
||||
, quadDivergentImplicitLod( quadDivergentImplicitLod_ )
|
||||
, maxPerStageDescriptorUpdateAfterBindSamplers( maxPerStageDescriptorUpdateAfterBindSamplers_ )
|
||||
, maxPerStageDescriptorUpdateAfterBindUniformBuffers( maxPerStageDescriptorUpdateAfterBindUniformBuffers_ )
|
||||
, maxPerStageDescriptorUpdateAfterBindStorageBuffers( maxPerStageDescriptorUpdateAfterBindStorageBuffers_ )
|
||||
, maxPerStageDescriptorUpdateAfterBindSampledImages( maxPerStageDescriptorUpdateAfterBindSampledImages_ )
|
||||
, maxPerStageDescriptorUpdateAfterBindStorageImages( maxPerStageDescriptorUpdateAfterBindStorageImages_ )
|
||||
, maxPerStageDescriptorUpdateAfterBindInputAttachments( maxPerStageDescriptorUpdateAfterBindInputAttachments_ )
|
||||
, maxPerStageUpdateAfterBindResources( maxPerStageUpdateAfterBindResources_ )
|
||||
, maxDescriptorSetUpdateAfterBindSamplers( maxDescriptorSetUpdateAfterBindSamplers_ )
|
||||
, maxDescriptorSetUpdateAfterBindUniformBuffers( maxDescriptorSetUpdateAfterBindUniformBuffers_ )
|
||||
, maxDescriptorSetUpdateAfterBindUniformBuffersDynamic( maxDescriptorSetUpdateAfterBindUniformBuffersDynamic_ )
|
||||
, maxDescriptorSetUpdateAfterBindStorageBuffers( maxDescriptorSetUpdateAfterBindStorageBuffers_ )
|
||||
, maxDescriptorSetUpdateAfterBindStorageBuffersDynamic( maxDescriptorSetUpdateAfterBindStorageBuffersDynamic_ )
|
||||
, maxDescriptorSetUpdateAfterBindSampledImages( maxDescriptorSetUpdateAfterBindSampledImages_ )
|
||||
, maxDescriptorSetUpdateAfterBindStorageImages( maxDescriptorSetUpdateAfterBindStorageImages_ )
|
||||
, maxDescriptorSetUpdateAfterBindInputAttachments( maxDescriptorSetUpdateAfterBindInputAttachments_ )
|
||||
, supportedDepthResolveModes( supportedDepthResolveModes_ )
|
||||
, supportedStencilResolveModes( supportedStencilResolveModes_ )
|
||||
, independentResolveNone( independentResolveNone_ )
|
||||
, independentResolve( independentResolve_ )
|
||||
, filterMinmaxSingleComponentFormats( filterMinmaxSingleComponentFormats_ )
|
||||
, filterMinmaxImageComponentMapping( filterMinmaxImageComponentMapping_ )
|
||||
, maxTimelineSemaphoreValueDifference( maxTimelineSemaphoreValueDifference_ )
|
||||
, framebufferIntegerColorSampleCounts( framebufferIntegerColorSampleCounts_ )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( driverName_.size() < VK_MAX_DRIVER_NAME_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( driverName, VK_MAX_DRIVER_NAME_SIZE, driverName_.data(), driverName_.size() );
|
||||
# else
|
||||
strncpy( driverName, driverName_.data(), std::min<size_t>( VK_MAX_DRIVER_NAME_SIZE, driverName_.size() ) );
|
||||
# endif
|
||||
|
||||
VULKAN_HPP_ASSERT( driverInfo_.size() < VK_MAX_DRIVER_INFO_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( driverInfo, VK_MAX_DRIVER_INFO_SIZE, driverInfo_.data(), driverInfo_.size() );
|
||||
# else
|
||||
strncpy( driverInfo, driverInfo_.data(), std::min<size_t>( VK_MAX_DRIVER_INFO_SIZE, driverInfo_.size() ) );
|
||||
# endif
|
||||
}
|
||||
# endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
PhysicalDeviceVulkan12Properties & operator=( PhysicalDeviceVulkan12Properties const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||
#endif /*VULKAN_HPP_NO_STRUCT_CONSTRUCTORS*/
|
||||
|
||||
@ -93687,31 +93362,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
}
|
||||
|
||||
# if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
template <typename T>
|
||||
PipelineExecutableInternalRepresentationKHR( std::string const & name_,
|
||||
std::string const & description_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 isText_ = {},
|
||||
VULKAN_HPP_NAMESPACE::ArrayProxyNoTemporaries<T> const & data_ = {},
|
||||
void * pNext_ = nullptr )
|
||||
: pNext( pNext_ ), isText( isText_ ), dataSize( data_.size() * sizeof( T ) ), pData( data_.data() )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( name_.size() < VK_MAX_DESCRIPTION_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( name, VK_MAX_DESCRIPTION_SIZE, name_.data(), name_.size() );
|
||||
# else
|
||||
strncpy( name, name_.data(), std::min<size_t>( VK_MAX_DESCRIPTION_SIZE, name_.size() ) );
|
||||
# endif
|
||||
|
||||
VULKAN_HPP_ASSERT( description_.size() < VK_MAX_DESCRIPTION_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( description, VK_MAX_DESCRIPTION_SIZE, description_.data(), description_.size() );
|
||||
# else
|
||||
strncpy( description, description_.data(), std::min<size_t>( VK_MAX_DESCRIPTION_SIZE, description_.size() ) );
|
||||
# endif
|
||||
}
|
||||
# endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
PipelineExecutableInternalRepresentationKHR & operator=( PipelineExecutableInternalRepresentationKHR const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||
#endif /*VULKAN_HPP_NO_STRUCT_CONSTRUCTORS*/
|
||||
|
||||
@ -93826,30 +93476,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
}
|
||||
|
||||
# if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
PipelineExecutablePropertiesKHR( VULKAN_HPP_NAMESPACE::ShaderStageFlags stages_,
|
||||
std::string const & name_,
|
||||
std::string const & description_ = {},
|
||||
uint32_t subgroupSize_ = {},
|
||||
void * pNext_ = nullptr )
|
||||
: pNext( pNext_ ), stages( stages_ ), subgroupSize( subgroupSize_ )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( name_.size() < VK_MAX_DESCRIPTION_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( name, VK_MAX_DESCRIPTION_SIZE, name_.data(), name_.size() );
|
||||
# else
|
||||
strncpy( name, name_.data(), std::min<size_t>( VK_MAX_DESCRIPTION_SIZE, name_.size() ) );
|
||||
# endif
|
||||
|
||||
VULKAN_HPP_ASSERT( description_.size() < VK_MAX_DESCRIPTION_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( description, VK_MAX_DESCRIPTION_SIZE, description_.data(), description_.size() );
|
||||
# else
|
||||
strncpy( description, description_.data(), std::min<size_t>( VK_MAX_DESCRIPTION_SIZE, description_.size() ) );
|
||||
# endif
|
||||
}
|
||||
# endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
PipelineExecutablePropertiesKHR & operator=( PipelineExecutablePropertiesKHR const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||
#endif /*VULKAN_HPP_NO_STRUCT_CONSTRUCTORS*/
|
||||
|
||||
@ -94024,31 +93650,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
}
|
||||
|
||||
# if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
PipelineExecutableStatisticKHR(
|
||||
std::string const & name_,
|
||||
std::string const & description_ = {},
|
||||
VULKAN_HPP_NAMESPACE::PipelineExecutableStatisticFormatKHR format_ = VULKAN_HPP_NAMESPACE::PipelineExecutableStatisticFormatKHR::eBool32,
|
||||
VULKAN_HPP_NAMESPACE::PipelineExecutableStatisticValueKHR value_ = {},
|
||||
void * pNext_ = nullptr )
|
||||
: pNext( pNext_ ), format( format_ ), value( value_ )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( name_.size() < VK_MAX_DESCRIPTION_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( name, VK_MAX_DESCRIPTION_SIZE, name_.data(), name_.size() );
|
||||
# else
|
||||
strncpy( name, name_.data(), std::min<size_t>( VK_MAX_DESCRIPTION_SIZE, name_.size() ) );
|
||||
# endif
|
||||
|
||||
VULKAN_HPP_ASSERT( description_.size() < VK_MAX_DESCRIPTION_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( description, VK_MAX_DESCRIPTION_SIZE, description_.data(), description_.size() );
|
||||
# else
|
||||
strncpy( description, description_.data(), std::min<size_t>( VK_MAX_DESCRIPTION_SIZE, description_.size() ) );
|
||||
# endif
|
||||
}
|
||||
# endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
PipelineExecutableStatisticKHR & operator=( PipelineExecutableStatisticKHR const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||
#endif /*VULKAN_HPP_NO_STRUCT_CONSTRUCTORS*/
|
||||
|
||||
@ -100489,16 +100090,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
}
|
||||
|
||||
# if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
QueueFamilyGlobalPriorityPropertiesKHR( VULKAN_HPP_NAMESPACE::ArrayProxy<VULKAN_HPP_NAMESPACE::QueueGlobalPriorityKHR> const & priorities_,
|
||||
void * pNext_ = nullptr )
|
||||
: pNext( pNext_ ), priorityCount( ( std::min )( static_cast<uint32_t>( priorities_.size() ), VK_MAX_GLOBAL_PRIORITY_SIZE_KHR ) )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( priorities_.size() < VK_MAX_GLOBAL_PRIORITY_SIZE_KHR );
|
||||
memcpy( priorities, priorities_.data(), priorityCount * sizeof( VULKAN_HPP_NAMESPACE::QueueGlobalPriorityKHR ) );
|
||||
}
|
||||
# endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
QueueFamilyGlobalPriorityPropertiesKHR & operator=( QueueFamilyGlobalPriorityPropertiesKHR const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||
#endif /*VULKAN_HPP_NO_STRUCT_CONSTRUCTORS*/
|
||||
|
||||
@ -105090,21 +104681,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
}
|
||||
|
||||
# if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
RenderPassSubpassFeedbackInfoEXT( VULKAN_HPP_NAMESPACE::SubpassMergeStatusEXT subpassMergeStatus_,
|
||||
std::string const & description_,
|
||||
uint32_t postMergeIndex_ = {} )
|
||||
: subpassMergeStatus( subpassMergeStatus_ ), postMergeIndex( postMergeIndex_ )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( description_.size() < VK_MAX_DESCRIPTION_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( description, VK_MAX_DESCRIPTION_SIZE, description_.data(), description_.size() );
|
||||
# else
|
||||
strncpy( description, description_.data(), std::min<size_t>( VK_MAX_DESCRIPTION_SIZE, description_.size() ) );
|
||||
# endif
|
||||
}
|
||||
# endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
RenderPassSubpassFeedbackInfoEXT & operator=( RenderPassSubpassFeedbackInfoEXT const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||
#endif /*VULKAN_HPP_NO_STRUCT_CONSTRUCTORS*/
|
||||
|
||||
@ -109940,15 +109516,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
}
|
||||
|
||||
# if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
ShaderModuleIdentifierEXT( VULKAN_HPP_NAMESPACE::ArrayProxy<uint8_t> const & identifier_, void * pNext_ = nullptr )
|
||||
: pNext( pNext_ ), identifierSize( ( std::min )( static_cast<uint32_t>( identifier_.size() ), VK_MAX_SHADER_MODULE_IDENTIFIER_SIZE_EXT ) )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( identifier_.size() < VK_MAX_SHADER_MODULE_IDENTIFIER_SIZE_EXT );
|
||||
memcpy( identifier, identifier_.data(), identifierSize * sizeof( uint8_t ) );
|
||||
}
|
||||
# endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
ShaderModuleIdentifierEXT & operator=( ShaderModuleIdentifierEXT const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||
#endif /*VULKAN_HPP_NO_STRUCT_CONSTRUCTORS*/
|
||||
|
||||
|
@ -388,38 +388,19 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
}
|
||||
|
||||
ArrayProxyNoTemporaries( T & value ) VULKAN_HPP_NOEXCEPT
|
||||
template <typename B = T, typename std::enable_if<std::is_convertible<B, T>::value && std::is_lvalue_reference<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( B && value ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( 1 )
|
||||
, m_ptr( &value )
|
||||
{
|
||||
}
|
||||
|
||||
template <typename V>
|
||||
ArrayProxyNoTemporaries( V && value ) = delete;
|
||||
|
||||
template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( typename std::remove_const<T>::type & value ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( 1 )
|
||||
, m_ptr( &value )
|
||||
{
|
||||
}
|
||||
|
||||
template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( typename std::remove_const<T>::type && value ) = delete;
|
||||
|
||||
ArrayProxyNoTemporaries( uint32_t count, T * ptr ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( count )
|
||||
, m_ptr( ptr )
|
||||
{
|
||||
}
|
||||
|
||||
template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( uint32_t count, typename std::remove_const<T>::type * ptr ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( count )
|
||||
, m_ptr( ptr )
|
||||
{
|
||||
}
|
||||
|
||||
template <std::size_t C>
|
||||
ArrayProxyNoTemporaries( T ( &ptr )[C] ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( C )
|
||||
@ -430,62 +411,29 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
template <std::size_t C>
|
||||
ArrayProxyNoTemporaries( T ( &&ptr )[C] ) = delete;
|
||||
|
||||
template <std::size_t C, typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( typename std::remove_const<T>::type ( &ptr )[C] ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( C )
|
||||
, m_ptr( ptr )
|
||||
{
|
||||
}
|
||||
|
||||
template <std::size_t C, typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( typename std::remove_const<T>::type ( &&ptr )[C] ) = delete;
|
||||
|
||||
ArrayProxyNoTemporaries( std::initializer_list<T> const & list ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( static_cast<uint32_t>( list.size() ) )
|
||||
, m_ptr( list.begin() )
|
||||
{
|
||||
}
|
||||
|
||||
ArrayProxyNoTemporaries( std::initializer_list<T> const && list ) = delete;
|
||||
|
||||
template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( std::initializer_list<typename std::remove_const<T>::type> const & list ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( static_cast<uint32_t>( list.size() ) )
|
||||
, m_ptr( list.begin() )
|
||||
{
|
||||
}
|
||||
|
||||
template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( std::initializer_list<typename std::remove_const<T>::type> const && list ) = delete;
|
||||
|
||||
ArrayProxyNoTemporaries( std::initializer_list<T> & list ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( static_cast<uint32_t>( list.size() ) )
|
||||
, m_ptr( list.begin() )
|
||||
{
|
||||
}
|
||||
|
||||
ArrayProxyNoTemporaries( std::initializer_list<T> && list ) = delete;
|
||||
|
||||
template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( std::initializer_list<typename std::remove_const<T>::type> & list ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( static_cast<uint32_t>( list.size() ) )
|
||||
, m_ptr( list.begin() )
|
||||
{
|
||||
}
|
||||
|
||||
template <typename B = T, typename std::enable_if<std::is_const<B>::value, int>::type = 0>
|
||||
ArrayProxyNoTemporaries( std::initializer_list<typename std::remove_const<T>::type> && list ) = delete;
|
||||
|
||||
// Any type with a .data() return type implicitly convertible to T*, and a .size() return type implicitly convertible to size_t.
|
||||
// Any l-value reference with a .data() return type implicitly convertible to T*, and a .size() return type implicitly convertible to size_t.
|
||||
template <typename V,
|
||||
typename std::enable_if<std::is_convertible<decltype( std::declval<V>().data() ), T *>::value &&
|
||||
std::is_convertible<decltype( std::declval<V>().size() ), std::size_t>::value>::type * = nullptr>
|
||||
ArrayProxyNoTemporaries( V & v ) VULKAN_HPP_NOEXCEPT
|
||||
typename std::enable_if<!std::is_convertible<decltype( std::declval<V>().begin() ), T *>::value &&
|
||||
std::is_convertible<decltype( std::declval<V>().data() ), T *>::value &&
|
||||
std::is_convertible<decltype( std::declval<V>().size() ), std::size_t>::value && std::is_lvalue_reference<V>::value,
|
||||
int>::type = 0>
|
||||
ArrayProxyNoTemporaries( V && v ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( static_cast<uint32_t>( v.size() ) )
|
||||
, m_ptr( v.data() )
|
||||
{
|
||||
}
|
||||
|
||||
// Any l-value reference with a .begin() return type implicitly convertible to T*, and a .size() return type implicitly convertible to size_t.
|
||||
template <typename V,
|
||||
typename std::enable_if<std::is_convertible<decltype( std::declval<V>().begin() ), T *>::value &&
|
||||
std::is_convertible<decltype( std::declval<V>().size() ), std::size_t>::value && std::is_lvalue_reference<V>::value,
|
||||
int>::type = 0>
|
||||
ArrayProxyNoTemporaries( V && v ) VULKAN_HPP_NOEXCEPT
|
||||
: m_count( static_cast<uint32_t>( v.size() ) )
|
||||
, m_ptr( v.begin() )
|
||||
{
|
||||
}
|
||||
|
||||
const T * begin() const VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
return m_ptr;
|
||||
|
@ -16858,17 +16858,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
}
|
||||
|
||||
# if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
DrmFormatModifierPropertiesList2EXT(
|
||||
VULKAN_HPP_NAMESPACE::ArrayProxyNoTemporaries<VULKAN_HPP_NAMESPACE::DrmFormatModifierProperties2EXT> const & drmFormatModifierProperties_,
|
||||
void * pNext_ = nullptr )
|
||||
: pNext( pNext_ )
|
||||
, drmFormatModifierCount( static_cast<uint32_t>( drmFormatModifierProperties_.size() ) )
|
||||
, pDrmFormatModifierProperties( drmFormatModifierProperties_.data() )
|
||||
{
|
||||
}
|
||||
# endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
DrmFormatModifierPropertiesList2EXT & operator=( DrmFormatModifierPropertiesList2EXT const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||
#endif /*VULKAN_HPP_NO_STRUCT_CONSTRUCTORS*/
|
||||
|
||||
@ -16956,17 +16945,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
}
|
||||
|
||||
# if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
DrmFormatModifierPropertiesListEXT(
|
||||
VULKAN_HPP_NAMESPACE::ArrayProxyNoTemporaries<VULKAN_HPP_NAMESPACE::DrmFormatModifierPropertiesEXT> const & drmFormatModifierProperties_,
|
||||
void * pNext_ = nullptr )
|
||||
: pNext( pNext_ )
|
||||
, drmFormatModifierCount( static_cast<uint32_t>( drmFormatModifierProperties_.size() ) )
|
||||
, pDrmFormatModifierProperties( drmFormatModifierProperties_.data() )
|
||||
{
|
||||
}
|
||||
# endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
DrmFormatModifierPropertiesListEXT & operator=( DrmFormatModifierPropertiesListEXT const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||
#endif /*VULKAN_HPP_NO_STRUCT_CONSTRUCTORS*/
|
||||
|
||||
@ -17751,18 +17729,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
}
|
||||
|
||||
# if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
ExtensionProperties( std::string const & extensionName_, uint32_t specVersion_ = {} ) : specVersion( specVersion_ )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( extensionName_.size() < VK_MAX_EXTENSION_NAME_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( extensionName, VK_MAX_EXTENSION_NAME_SIZE, extensionName_.data(), extensionName_.size() );
|
||||
# else
|
||||
strncpy( extensionName, extensionName_.data(), std::min<size_t>( VK_MAX_EXTENSION_NAME_SIZE, extensionName_.size() ) );
|
||||
# endif
|
||||
}
|
||||
# endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
ExtensionProperties & operator=( ExtensionProperties const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||
#endif /*VULKAN_HPP_NO_STRUCT_CONSTRUCTORS*/
|
||||
|
||||
@ -26380,26 +26346,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
|
||||
LayerProperties( VkLayerProperties const & rhs ) VULKAN_HPP_NOEXCEPT : LayerProperties( *reinterpret_cast<LayerProperties const *>( &rhs ) ) {}
|
||||
|
||||
# if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
LayerProperties( std::string const & layerName_, uint32_t specVersion_ = {}, uint32_t implementationVersion_ = {}, std::string const & description_ = {} )
|
||||
: specVersion( specVersion_ ), implementationVersion( implementationVersion_ )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( layerName_.size() < VK_MAX_EXTENSION_NAME_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( layerName, VK_MAX_EXTENSION_NAME_SIZE, layerName_.data(), layerName_.size() );
|
||||
# else
|
||||
strncpy( layerName, layerName_.data(), std::min<size_t>( VK_MAX_EXTENSION_NAME_SIZE, layerName_.size() ) );
|
||||
# endif
|
||||
|
||||
VULKAN_HPP_ASSERT( description_.size() < VK_MAX_DESCRIPTION_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( description, VK_MAX_DESCRIPTION_SIZE, description_.data(), description_.size() );
|
||||
# else
|
||||
strncpy( description, description_.data(), std::min<size_t>( VK_MAX_DESCRIPTION_SIZE, description_.size() ) );
|
||||
# endif
|
||||
}
|
||||
# endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
LayerProperties & operator=( LayerProperties const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||
#endif /*VULKAN_HPP_NO_STRUCT_CONSTRUCTORS*/
|
||||
|
||||
@ -28081,37 +28027,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
}
|
||||
|
||||
# if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
PerformanceCounterDescriptionKHR( VULKAN_HPP_NAMESPACE::PerformanceCounterDescriptionFlagsKHR flags_,
|
||||
std::string const & name_,
|
||||
std::string const & category_ = {},
|
||||
std::string const & description_ = {},
|
||||
void * pNext_ = nullptr )
|
||||
: pNext( pNext_ ), flags( flags_ )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( name_.size() < VK_MAX_DESCRIPTION_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( name, VK_MAX_DESCRIPTION_SIZE, name_.data(), name_.size() );
|
||||
# else
|
||||
strncpy( name, name_.data(), std::min<size_t>( VK_MAX_DESCRIPTION_SIZE, name_.size() ) );
|
||||
# endif
|
||||
|
||||
VULKAN_HPP_ASSERT( category_.size() < VK_MAX_DESCRIPTION_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( category, VK_MAX_DESCRIPTION_SIZE, category_.data(), category_.size() );
|
||||
# else
|
||||
strncpy( category, category_.data(), std::min<size_t>( VK_MAX_DESCRIPTION_SIZE, category_.size() ) );
|
||||
# endif
|
||||
|
||||
VULKAN_HPP_ASSERT( description_.size() < VK_MAX_DESCRIPTION_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( description, VK_MAX_DESCRIPTION_SIZE, description_.data(), description_.size() );
|
||||
# else
|
||||
strncpy( description, description_.data(), std::min<size_t>( VK_MAX_DESCRIPTION_SIZE, description_.size() ) );
|
||||
# endif
|
||||
}
|
||||
# endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
PerformanceCounterDescriptionKHR & operator=( PerformanceCounterDescriptionKHR const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||
#endif /*VULKAN_HPP_NO_STRUCT_CONSTRUCTORS*/
|
||||
|
||||
@ -30674,30 +30589,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
}
|
||||
|
||||
# if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
PhysicalDeviceDriverProperties( VULKAN_HPP_NAMESPACE::DriverId driverID_,
|
||||
std::string const & driverName_,
|
||||
std::string const & driverInfo_ = {},
|
||||
VULKAN_HPP_NAMESPACE::ConformanceVersion conformanceVersion_ = {},
|
||||
void * pNext_ = nullptr )
|
||||
: pNext( pNext_ ), driverID( driverID_ ), conformanceVersion( conformanceVersion_ )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( driverName_.size() < VK_MAX_DRIVER_NAME_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( driverName, VK_MAX_DRIVER_NAME_SIZE, driverName_.data(), driverName_.size() );
|
||||
# else
|
||||
strncpy( driverName, driverName_.data(), std::min<size_t>( VK_MAX_DRIVER_NAME_SIZE, driverName_.size() ) );
|
||||
# endif
|
||||
|
||||
VULKAN_HPP_ASSERT( driverInfo_.size() < VK_MAX_DRIVER_INFO_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( driverInfo, VK_MAX_DRIVER_INFO_SIZE, driverInfo_.data(), driverInfo_.size() );
|
||||
# else
|
||||
strncpy( driverInfo, driverInfo_.data(), std::min<size_t>( VK_MAX_DRIVER_INFO_SIZE, driverInfo_.size() ) );
|
||||
# endif
|
||||
}
|
||||
# endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
PhysicalDeviceDriverProperties & operator=( PhysicalDeviceDriverProperties const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||
#endif /*VULKAN_HPP_NO_STRUCT_CONSTRUCTORS*/
|
||||
|
||||
@ -32918,19 +32809,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
}
|
||||
|
||||
# if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
PhysicalDeviceGroupProperties( VULKAN_HPP_NAMESPACE::ArrayProxy<VULKAN_HPP_NAMESPACE::PhysicalDevice> const & physicalDevices_,
|
||||
VULKAN_HPP_NAMESPACE::Bool32 subsetAllocation_ = {},
|
||||
void * pNext_ = nullptr )
|
||||
: pNext( pNext_ )
|
||||
, physicalDeviceCount( ( std::min )( static_cast<uint32_t>( physicalDevices_.size() ), VK_MAX_DEVICE_GROUP_SIZE ) )
|
||||
, subsetAllocation( subsetAllocation_ )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( physicalDevices_.size() < VK_MAX_DEVICE_GROUP_SIZE );
|
||||
memcpy( physicalDevices, physicalDevices_.data(), physicalDeviceCount * sizeof( VULKAN_HPP_NAMESPACE::PhysicalDevice ) );
|
||||
}
|
||||
# endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
PhysicalDeviceGroupProperties & operator=( PhysicalDeviceGroupProperties const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||
#endif /*VULKAN_HPP_NO_STRUCT_CONSTRUCTORS*/
|
||||
|
||||
@ -35077,19 +34955,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
}
|
||||
|
||||
# if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
PhysicalDeviceMemoryProperties( VULKAN_HPP_NAMESPACE::ArrayProxy<VULKAN_HPP_NAMESPACE::MemoryType> const & memoryTypes_,
|
||||
VULKAN_HPP_NAMESPACE::ArrayProxy<VULKAN_HPP_NAMESPACE::MemoryHeap> const & memoryHeaps_ = {} )
|
||||
: memoryTypeCount( ( std::min )( static_cast<uint32_t>( memoryTypes_.size() ), VK_MAX_MEMORY_TYPES ) )
|
||||
, memoryHeapCount( ( std::min )( static_cast<uint32_t>( memoryHeaps_.size() ), VK_MAX_MEMORY_HEAPS ) )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( memoryTypes_.size() < VK_MAX_MEMORY_TYPES );
|
||||
memcpy( memoryTypes, memoryTypes_.data(), memoryTypeCount * sizeof( VULKAN_HPP_NAMESPACE::MemoryType ) );
|
||||
VULKAN_HPP_ASSERT( memoryHeaps_.size() < VK_MAX_MEMORY_HEAPS );
|
||||
memcpy( memoryHeaps, memoryHeaps_.data(), memoryHeapCount * sizeof( VULKAN_HPP_NAMESPACE::MemoryHeap ) );
|
||||
}
|
||||
# endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
PhysicalDeviceMemoryProperties & operator=( PhysicalDeviceMemoryProperties const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||
#endif /*VULKAN_HPP_NO_STRUCT_CONSTRUCTORS*/
|
||||
|
||||
@ -36158,34 +36023,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
}
|
||||
|
||||
# if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
PhysicalDeviceProperties( uint32_t apiVersion_,
|
||||
uint32_t driverVersion_,
|
||||
uint32_t vendorID_,
|
||||
uint32_t deviceID_,
|
||||
VULKAN_HPP_NAMESPACE::PhysicalDeviceType deviceType_,
|
||||
std::string const & deviceName_,
|
||||
std::array<uint8_t, VK_UUID_SIZE> const & pipelineCacheUUID_ = {},
|
||||
VULKAN_HPP_NAMESPACE::PhysicalDeviceLimits limits_ = {},
|
||||
VULKAN_HPP_NAMESPACE::PhysicalDeviceSparseProperties sparseProperties_ = {} )
|
||||
: apiVersion( apiVersion_ )
|
||||
, driverVersion( driverVersion_ )
|
||||
, vendorID( vendorID_ )
|
||||
, deviceID( deviceID_ )
|
||||
, deviceType( deviceType_ )
|
||||
, pipelineCacheUUID( pipelineCacheUUID_ )
|
||||
, limits( limits_ )
|
||||
, sparseProperties( sparseProperties_ )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( deviceName_.size() < VK_MAX_PHYSICAL_DEVICE_NAME_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( deviceName, VK_MAX_PHYSICAL_DEVICE_NAME_SIZE, deviceName_.data(), deviceName_.size() );
|
||||
# else
|
||||
strncpy( deviceName, deviceName_.data(), std::min<size_t>( VK_MAX_PHYSICAL_DEVICE_NAME_SIZE, deviceName_.size() ) );
|
||||
# endif
|
||||
}
|
||||
# endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
PhysicalDeviceProperties & operator=( PhysicalDeviceProperties const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||
#endif /*VULKAN_HPP_NO_STRUCT_CONSTRUCTORS*/
|
||||
|
||||
@ -39730,45 +39567,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
}
|
||||
|
||||
# if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
PhysicalDeviceToolProperties( std::string const & name_,
|
||||
std::string const & version_ = {},
|
||||
VULKAN_HPP_NAMESPACE::ToolPurposeFlags purposes_ = {},
|
||||
std::string const & description_ = {},
|
||||
std::string const & layer_ = {},
|
||||
void * pNext_ = nullptr )
|
||||
: pNext( pNext_ ), purposes( purposes_ )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( name_.size() < VK_MAX_EXTENSION_NAME_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( name, VK_MAX_EXTENSION_NAME_SIZE, name_.data(), name_.size() );
|
||||
# else
|
||||
strncpy( name, name_.data(), std::min<size_t>( VK_MAX_EXTENSION_NAME_SIZE, name_.size() ) );
|
||||
# endif
|
||||
|
||||
VULKAN_HPP_ASSERT( version_.size() < VK_MAX_EXTENSION_NAME_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( version, VK_MAX_EXTENSION_NAME_SIZE, version_.data(), version_.size() );
|
||||
# else
|
||||
strncpy( version, version_.data(), std::min<size_t>( VK_MAX_EXTENSION_NAME_SIZE, version_.size() ) );
|
||||
# endif
|
||||
|
||||
VULKAN_HPP_ASSERT( description_.size() < VK_MAX_DESCRIPTION_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( description, VK_MAX_DESCRIPTION_SIZE, description_.data(), description_.size() );
|
||||
# else
|
||||
strncpy( description, description_.data(), std::min<size_t>( VK_MAX_DESCRIPTION_SIZE, description_.size() ) );
|
||||
# endif
|
||||
|
||||
VULKAN_HPP_ASSERT( layer_.size() < VK_MAX_EXTENSION_NAME_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( layer, VK_MAX_EXTENSION_NAME_SIZE, layer_.data(), layer_.size() );
|
||||
# else
|
||||
strncpy( layer, layer_.data(), std::min<size_t>( VK_MAX_EXTENSION_NAME_SIZE, layer_.size() ) );
|
||||
# endif
|
||||
}
|
||||
# endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
PhysicalDeviceToolProperties & operator=( PhysicalDeviceToolProperties const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||
#endif /*VULKAN_HPP_NO_STRUCT_CONSTRUCTORS*/
|
||||
|
||||
@ -41453,129 +41251,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
}
|
||||
|
||||
# if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
PhysicalDeviceVulkan12Properties(
|
||||
VULKAN_HPP_NAMESPACE::DriverId driverID_,
|
||||
std::string const & driverName_,
|
||||
std::string const & driverInfo_ = {},
|
||||
VULKAN_HPP_NAMESPACE::ConformanceVersion conformanceVersion_ = {},
|
||||
VULKAN_HPP_NAMESPACE::ShaderFloatControlsIndependence denormBehaviorIndependence_ = VULKAN_HPP_NAMESPACE::ShaderFloatControlsIndependence::e32BitOnly,
|
||||
VULKAN_HPP_NAMESPACE::ShaderFloatControlsIndependence roundingModeIndependence_ = VULKAN_HPP_NAMESPACE::ShaderFloatControlsIndependence::e32BitOnly,
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderSignedZeroInfNanPreserveFloat16_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderSignedZeroInfNanPreserveFloat32_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderSignedZeroInfNanPreserveFloat64_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderDenormPreserveFloat16_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderDenormPreserveFloat32_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderDenormPreserveFloat64_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderDenormFlushToZeroFloat16_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderDenormFlushToZeroFloat32_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderDenormFlushToZeroFloat64_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderRoundingModeRTEFloat16_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderRoundingModeRTEFloat32_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderRoundingModeRTEFloat64_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderRoundingModeRTZFloat16_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderRoundingModeRTZFloat32_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderRoundingModeRTZFloat64_ = {},
|
||||
uint32_t maxUpdateAfterBindDescriptorsInAllPools_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderUniformBufferArrayNonUniformIndexingNative_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderSampledImageArrayNonUniformIndexingNative_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderStorageBufferArrayNonUniformIndexingNative_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderStorageImageArrayNonUniformIndexingNative_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 shaderInputAttachmentArrayNonUniformIndexingNative_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 robustBufferAccessUpdateAfterBind_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 quadDivergentImplicitLod_ = {},
|
||||
uint32_t maxPerStageDescriptorUpdateAfterBindSamplers_ = {},
|
||||
uint32_t maxPerStageDescriptorUpdateAfterBindUniformBuffers_ = {},
|
||||
uint32_t maxPerStageDescriptorUpdateAfterBindStorageBuffers_ = {},
|
||||
uint32_t maxPerStageDescriptorUpdateAfterBindSampledImages_ = {},
|
||||
uint32_t maxPerStageDescriptorUpdateAfterBindStorageImages_ = {},
|
||||
uint32_t maxPerStageDescriptorUpdateAfterBindInputAttachments_ = {},
|
||||
uint32_t maxPerStageUpdateAfterBindResources_ = {},
|
||||
uint32_t maxDescriptorSetUpdateAfterBindSamplers_ = {},
|
||||
uint32_t maxDescriptorSetUpdateAfterBindUniformBuffers_ = {},
|
||||
uint32_t maxDescriptorSetUpdateAfterBindUniformBuffersDynamic_ = {},
|
||||
uint32_t maxDescriptorSetUpdateAfterBindStorageBuffers_ = {},
|
||||
uint32_t maxDescriptorSetUpdateAfterBindStorageBuffersDynamic_ = {},
|
||||
uint32_t maxDescriptorSetUpdateAfterBindSampledImages_ = {},
|
||||
uint32_t maxDescriptorSetUpdateAfterBindStorageImages_ = {},
|
||||
uint32_t maxDescriptorSetUpdateAfterBindInputAttachments_ = {},
|
||||
VULKAN_HPP_NAMESPACE::ResolveModeFlags supportedDepthResolveModes_ = {},
|
||||
VULKAN_HPP_NAMESPACE::ResolveModeFlags supportedStencilResolveModes_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 independentResolveNone_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 independentResolve_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 filterMinmaxSingleComponentFormats_ = {},
|
||||
VULKAN_HPP_NAMESPACE::Bool32 filterMinmaxImageComponentMapping_ = {},
|
||||
uint64_t maxTimelineSemaphoreValueDifference_ = {},
|
||||
VULKAN_HPP_NAMESPACE::SampleCountFlags framebufferIntegerColorSampleCounts_ = {},
|
||||
void * pNext_ = nullptr )
|
||||
: pNext( pNext_ )
|
||||
, driverID( driverID_ )
|
||||
, conformanceVersion( conformanceVersion_ )
|
||||
, denormBehaviorIndependence( denormBehaviorIndependence_ )
|
||||
, roundingModeIndependence( roundingModeIndependence_ )
|
||||
, shaderSignedZeroInfNanPreserveFloat16( shaderSignedZeroInfNanPreserveFloat16_ )
|
||||
, shaderSignedZeroInfNanPreserveFloat32( shaderSignedZeroInfNanPreserveFloat32_ )
|
||||
, shaderSignedZeroInfNanPreserveFloat64( shaderSignedZeroInfNanPreserveFloat64_ )
|
||||
, shaderDenormPreserveFloat16( shaderDenormPreserveFloat16_ )
|
||||
, shaderDenormPreserveFloat32( shaderDenormPreserveFloat32_ )
|
||||
, shaderDenormPreserveFloat64( shaderDenormPreserveFloat64_ )
|
||||
, shaderDenormFlushToZeroFloat16( shaderDenormFlushToZeroFloat16_ )
|
||||
, shaderDenormFlushToZeroFloat32( shaderDenormFlushToZeroFloat32_ )
|
||||
, shaderDenormFlushToZeroFloat64( shaderDenormFlushToZeroFloat64_ )
|
||||
, shaderRoundingModeRTEFloat16( shaderRoundingModeRTEFloat16_ )
|
||||
, shaderRoundingModeRTEFloat32( shaderRoundingModeRTEFloat32_ )
|
||||
, shaderRoundingModeRTEFloat64( shaderRoundingModeRTEFloat64_ )
|
||||
, shaderRoundingModeRTZFloat16( shaderRoundingModeRTZFloat16_ )
|
||||
, shaderRoundingModeRTZFloat32( shaderRoundingModeRTZFloat32_ )
|
||||
, shaderRoundingModeRTZFloat64( shaderRoundingModeRTZFloat64_ )
|
||||
, maxUpdateAfterBindDescriptorsInAllPools( maxUpdateAfterBindDescriptorsInAllPools_ )
|
||||
, shaderUniformBufferArrayNonUniformIndexingNative( shaderUniformBufferArrayNonUniformIndexingNative_ )
|
||||
, shaderSampledImageArrayNonUniformIndexingNative( shaderSampledImageArrayNonUniformIndexingNative_ )
|
||||
, shaderStorageBufferArrayNonUniformIndexingNative( shaderStorageBufferArrayNonUniformIndexingNative_ )
|
||||
, shaderStorageImageArrayNonUniformIndexingNative( shaderStorageImageArrayNonUniformIndexingNative_ )
|
||||
, shaderInputAttachmentArrayNonUniformIndexingNative( shaderInputAttachmentArrayNonUniformIndexingNative_ )
|
||||
, robustBufferAccessUpdateAfterBind( robustBufferAccessUpdateAfterBind_ )
|
||||
, quadDivergentImplicitLod( quadDivergentImplicitLod_ )
|
||||
, maxPerStageDescriptorUpdateAfterBindSamplers( maxPerStageDescriptorUpdateAfterBindSamplers_ )
|
||||
, maxPerStageDescriptorUpdateAfterBindUniformBuffers( maxPerStageDescriptorUpdateAfterBindUniformBuffers_ )
|
||||
, maxPerStageDescriptorUpdateAfterBindStorageBuffers( maxPerStageDescriptorUpdateAfterBindStorageBuffers_ )
|
||||
, maxPerStageDescriptorUpdateAfterBindSampledImages( maxPerStageDescriptorUpdateAfterBindSampledImages_ )
|
||||
, maxPerStageDescriptorUpdateAfterBindStorageImages( maxPerStageDescriptorUpdateAfterBindStorageImages_ )
|
||||
, maxPerStageDescriptorUpdateAfterBindInputAttachments( maxPerStageDescriptorUpdateAfterBindInputAttachments_ )
|
||||
, maxPerStageUpdateAfterBindResources( maxPerStageUpdateAfterBindResources_ )
|
||||
, maxDescriptorSetUpdateAfterBindSamplers( maxDescriptorSetUpdateAfterBindSamplers_ )
|
||||
, maxDescriptorSetUpdateAfterBindUniformBuffers( maxDescriptorSetUpdateAfterBindUniformBuffers_ )
|
||||
, maxDescriptorSetUpdateAfterBindUniformBuffersDynamic( maxDescriptorSetUpdateAfterBindUniformBuffersDynamic_ )
|
||||
, maxDescriptorSetUpdateAfterBindStorageBuffers( maxDescriptorSetUpdateAfterBindStorageBuffers_ )
|
||||
, maxDescriptorSetUpdateAfterBindStorageBuffersDynamic( maxDescriptorSetUpdateAfterBindStorageBuffersDynamic_ )
|
||||
, maxDescriptorSetUpdateAfterBindSampledImages( maxDescriptorSetUpdateAfterBindSampledImages_ )
|
||||
, maxDescriptorSetUpdateAfterBindStorageImages( maxDescriptorSetUpdateAfterBindStorageImages_ )
|
||||
, maxDescriptorSetUpdateAfterBindInputAttachments( maxDescriptorSetUpdateAfterBindInputAttachments_ )
|
||||
, supportedDepthResolveModes( supportedDepthResolveModes_ )
|
||||
, supportedStencilResolveModes( supportedStencilResolveModes_ )
|
||||
, independentResolveNone( independentResolveNone_ )
|
||||
, independentResolve( independentResolve_ )
|
||||
, filterMinmaxSingleComponentFormats( filterMinmaxSingleComponentFormats_ )
|
||||
, filterMinmaxImageComponentMapping( filterMinmaxImageComponentMapping_ )
|
||||
, maxTimelineSemaphoreValueDifference( maxTimelineSemaphoreValueDifference_ )
|
||||
, framebufferIntegerColorSampleCounts( framebufferIntegerColorSampleCounts_ )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( driverName_.size() < VK_MAX_DRIVER_NAME_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( driverName, VK_MAX_DRIVER_NAME_SIZE, driverName_.data(), driverName_.size() );
|
||||
# else
|
||||
strncpy( driverName, driverName_.data(), std::min<size_t>( VK_MAX_DRIVER_NAME_SIZE, driverName_.size() ) );
|
||||
# endif
|
||||
|
||||
VULKAN_HPP_ASSERT( driverInfo_.size() < VK_MAX_DRIVER_INFO_SIZE );
|
||||
# if defined( WIN32 )
|
||||
strncpy_s( driverInfo, VK_MAX_DRIVER_INFO_SIZE, driverInfo_.data(), driverInfo_.size() );
|
||||
# else
|
||||
strncpy( driverInfo, driverInfo_.data(), std::min<size_t>( VK_MAX_DRIVER_INFO_SIZE, driverInfo_.size() ) );
|
||||
# endif
|
||||
}
|
||||
# endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
PhysicalDeviceVulkan12Properties & operator=( PhysicalDeviceVulkan12Properties const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||
#endif /*VULKAN_HPP_NO_STRUCT_CONSTRUCTORS*/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user