Merge pull request #790 from asuessenbach/refactor
Refactor commands that enumerate some oqaque data behind a void pointer.
This commit is contained in:
@@ -55095,20 +55095,21 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
VULKAN_HPP_NODISCARD Result
|
||||
getPipelineCacheData( VULKAN_HPP_NAMESPACE::PipelineCache pipelineCache,
|
||||
size_t * pDataSize,
|
||||
void * pData,
|
||||
void * pData VULKAN_HPP_DEFAULT_ARGUMENT_ASSIGNMENT,
|
||||
Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT;
|
||||
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||
template <typename Allocator = std::allocator<uint8_t>, typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE>
|
||||
VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<uint8_t, Allocator>>::type
|
||||
template <typename Uint8_tAllocator = std::allocator<uint8_t>,
|
||||
typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE>
|
||||
VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type
|
||||
getPipelineCacheData( VULKAN_HPP_NAMESPACE::PipelineCache pipelineCache,
|
||||
Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const;
|
||||
template <typename Allocator = std::allocator<uint8_t>,
|
||||
typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE,
|
||||
typename B = Allocator,
|
||||
template <typename Uint8_tAllocator = std::allocator<uint8_t>,
|
||||
typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE,
|
||||
typename B = Uint8_tAllocator,
|
||||
typename std::enable_if<std::is_same<typename B::value_type, uint8_t>::value, int>::type = 0>
|
||||
VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<uint8_t, Allocator>>::type
|
||||
VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type
|
||||
getPipelineCacheData( VULKAN_HPP_NAMESPACE::PipelineCache pipelineCache,
|
||||
Allocator const & vectorAllocator,
|
||||
Uint8_tAllocator & uint8_tAllocator,
|
||||
Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const;
|
||||
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
@@ -55440,24 +55441,25 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
VULKAN_HPP_NAMESPACE::ShaderStageFlagBits shaderStage,
|
||||
VULKAN_HPP_NAMESPACE::ShaderInfoTypeAMD infoType,
|
||||
size_t * pInfoSize,
|
||||
void * pInfo,
|
||||
void * pInfo VULKAN_HPP_DEFAULT_ARGUMENT_ASSIGNMENT,
|
||||
Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT;
|
||||
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||
template <typename Allocator = std::allocator<uint8_t>, typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE>
|
||||
VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<uint8_t, Allocator>>::type
|
||||
template <typename Uint8_tAllocator = std::allocator<uint8_t>,
|
||||
typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE>
|
||||
VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type
|
||||
getShaderInfoAMD( VULKAN_HPP_NAMESPACE::Pipeline pipeline,
|
||||
VULKAN_HPP_NAMESPACE::ShaderStageFlagBits shaderStage,
|
||||
VULKAN_HPP_NAMESPACE::ShaderInfoTypeAMD infoType,
|
||||
Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const;
|
||||
template <typename Allocator = std::allocator<uint8_t>,
|
||||
typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE,
|
||||
typename B = Allocator,
|
||||
template <typename Uint8_tAllocator = std::allocator<uint8_t>,
|
||||
typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE,
|
||||
typename B = Uint8_tAllocator,
|
||||
typename std::enable_if<std::is_same<typename B::value_type, uint8_t>::value, int>::type = 0>
|
||||
VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<uint8_t, Allocator>>::type
|
||||
VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type
|
||||
getShaderInfoAMD( VULKAN_HPP_NAMESPACE::Pipeline pipeline,
|
||||
VULKAN_HPP_NAMESPACE::ShaderStageFlagBits shaderStage,
|
||||
VULKAN_HPP_NAMESPACE::ShaderInfoTypeAMD infoType,
|
||||
Allocator const & vectorAllocator,
|
||||
Uint8_tAllocator & uint8_tAllocator,
|
||||
Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const;
|
||||
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
@@ -55511,20 +55513,21 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
VULKAN_HPP_NODISCARD Result getValidationCacheDataEXT(
|
||||
VULKAN_HPP_NAMESPACE::ValidationCacheEXT validationCache,
|
||||
size_t * pDataSize,
|
||||
void * pData,
|
||||
void * pData VULKAN_HPP_DEFAULT_ARGUMENT_ASSIGNMENT,
|
||||
Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT;
|
||||
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||
template <typename Allocator = std::allocator<uint8_t>, typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE>
|
||||
VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<uint8_t, Allocator>>::type
|
||||
template <typename Uint8_tAllocator = std::allocator<uint8_t>,
|
||||
typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE>
|
||||
VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type
|
||||
getValidationCacheDataEXT( VULKAN_HPP_NAMESPACE::ValidationCacheEXT validationCache,
|
||||
Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const;
|
||||
template <typename Allocator = std::allocator<uint8_t>,
|
||||
typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE,
|
||||
typename B = Allocator,
|
||||
template <typename Uint8_tAllocator = std::allocator<uint8_t>,
|
||||
typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE,
|
||||
typename B = Uint8_tAllocator,
|
||||
typename std::enable_if<std::is_same<typename B::value_type, uint8_t>::value, int>::type = 0>
|
||||
VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<uint8_t, Allocator>>::type
|
||||
VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type
|
||||
getValidationCacheDataEXT( VULKAN_HPP_NAMESPACE::ValidationCacheEXT validationCache,
|
||||
Allocator const & vectorAllocator,
|
||||
Uint8_tAllocator & uint8_tAllocator,
|
||||
Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const;
|
||||
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
@@ -99806,14 +99809,15 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
return static_cast<Result>(
|
||||
d.vkGetPipelineCacheData( m_device, static_cast<VkPipelineCache>( pipelineCache ), pDataSize, pData ) );
|
||||
}
|
||||
|
||||
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||
template <typename Allocator, typename Dispatch>
|
||||
VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Allocator>>::type
|
||||
template <typename Uint8_tAllocator, typename Dispatch>
|
||||
VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type
|
||||
Device::getPipelineCacheData( VULKAN_HPP_NAMESPACE::PipelineCache pipelineCache, Dispatch const & d ) const
|
||||
{
|
||||
std::vector<uint8_t, Allocator> data;
|
||||
size_t dataSize;
|
||||
Result result;
|
||||
std::vector<uint8_t, Uint8_tAllocator> data;
|
||||
size_t dataSize;
|
||||
Result result;
|
||||
do
|
||||
{
|
||||
result = static_cast<Result>(
|
||||
@@ -99825,27 +99829,28 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
static_cast<VkPipelineCache>( pipelineCache ),
|
||||
&dataSize,
|
||||
reinterpret_cast<void *>( data.data() ) ) );
|
||||
VULKAN_HPP_ASSERT( dataSize <= data.size() );
|
||||
}
|
||||
} while ( result == Result::eIncomplete );
|
||||
if ( result == Result::eSuccess )
|
||||
if ( ( result == Result::eSuccess ) && ( dataSize < data.size() ) )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( dataSize <= data.size() );
|
||||
data.resize( dataSize );
|
||||
}
|
||||
return createResultValue( result, data, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineCacheData" );
|
||||
}
|
||||
template <typename Allocator,
|
||||
|
||||
template <typename Uint8_tAllocator,
|
||||
typename Dispatch,
|
||||
typename B,
|
||||
typename std::enable_if<std::is_same<typename B::value_type, uint8_t>::value, int>::type>
|
||||
VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Allocator>>::type
|
||||
VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type
|
||||
Device::getPipelineCacheData( VULKAN_HPP_NAMESPACE::PipelineCache pipelineCache,
|
||||
Allocator const & vectorAllocator,
|
||||
Uint8_tAllocator & uint8_tAllocator,
|
||||
Dispatch const & d ) const
|
||||
{
|
||||
std::vector<uint8_t, Allocator> data( vectorAllocator );
|
||||
size_t dataSize;
|
||||
Result result;
|
||||
std::vector<uint8_t, Uint8_tAllocator> data( uint8_tAllocator );
|
||||
size_t dataSize;
|
||||
Result result;
|
||||
do
|
||||
{
|
||||
result = static_cast<Result>(
|
||||
@@ -99857,11 +99862,11 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
static_cast<VkPipelineCache>( pipelineCache ),
|
||||
&dataSize,
|
||||
reinterpret_cast<void *>( data.data() ) ) );
|
||||
VULKAN_HPP_ASSERT( dataSize <= data.size() );
|
||||
}
|
||||
} while ( result == Result::eIncomplete );
|
||||
if ( result == Result::eSuccess )
|
||||
if ( ( result == Result::eSuccess ) && ( dataSize < data.size() ) )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( dataSize <= data.size() );
|
||||
data.resize( dataSize );
|
||||
}
|
||||
return createResultValue( result, data, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineCacheData" );
|
||||
@@ -100652,17 +100657,18 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
pInfoSize,
|
||||
pInfo ) );
|
||||
}
|
||||
|
||||
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||
template <typename Allocator, typename Dispatch>
|
||||
VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Allocator>>::type
|
||||
template <typename Uint8_tAllocator, typename Dispatch>
|
||||
VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type
|
||||
Device::getShaderInfoAMD( VULKAN_HPP_NAMESPACE::Pipeline pipeline,
|
||||
VULKAN_HPP_NAMESPACE::ShaderStageFlagBits shaderStage,
|
||||
VULKAN_HPP_NAMESPACE::ShaderInfoTypeAMD infoType,
|
||||
Dispatch const & d ) const
|
||||
{
|
||||
std::vector<uint8_t, Allocator> info;
|
||||
size_t infoSize;
|
||||
Result result;
|
||||
std::vector<uint8_t, Uint8_tAllocator> info;
|
||||
size_t infoSize;
|
||||
Result result;
|
||||
do
|
||||
{
|
||||
result = static_cast<Result>( d.vkGetShaderInfoAMD( m_device,
|
||||
@@ -100680,29 +100686,30 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
static_cast<VkShaderInfoTypeAMD>( infoType ),
|
||||
&infoSize,
|
||||
reinterpret_cast<void *>( info.data() ) ) );
|
||||
VULKAN_HPP_ASSERT( infoSize <= info.size() );
|
||||
}
|
||||
} while ( result == Result::eIncomplete );
|
||||
if ( result == Result::eSuccess )
|
||||
if ( ( result == Result::eSuccess ) && ( infoSize < info.size() ) )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( infoSize <= info.size() );
|
||||
info.resize( infoSize );
|
||||
}
|
||||
return createResultValue( result, info, VULKAN_HPP_NAMESPACE_STRING "::Device::getShaderInfoAMD" );
|
||||
}
|
||||
template <typename Allocator,
|
||||
|
||||
template <typename Uint8_tAllocator,
|
||||
typename Dispatch,
|
||||
typename B,
|
||||
typename std::enable_if<std::is_same<typename B::value_type, uint8_t>::value, int>::type>
|
||||
VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Allocator>>::type
|
||||
VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type
|
||||
Device::getShaderInfoAMD( VULKAN_HPP_NAMESPACE::Pipeline pipeline,
|
||||
VULKAN_HPP_NAMESPACE::ShaderStageFlagBits shaderStage,
|
||||
VULKAN_HPP_NAMESPACE::ShaderInfoTypeAMD infoType,
|
||||
Allocator const & vectorAllocator,
|
||||
Uint8_tAllocator & uint8_tAllocator,
|
||||
Dispatch const & d ) const
|
||||
{
|
||||
std::vector<uint8_t, Allocator> info( vectorAllocator );
|
||||
size_t infoSize;
|
||||
Result result;
|
||||
std::vector<uint8_t, Uint8_tAllocator> info( uint8_tAllocator );
|
||||
size_t infoSize;
|
||||
Result result;
|
||||
do
|
||||
{
|
||||
result = static_cast<Result>( d.vkGetShaderInfoAMD( m_device,
|
||||
@@ -100720,11 +100727,11 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
static_cast<VkShaderInfoTypeAMD>( infoType ),
|
||||
&infoSize,
|
||||
reinterpret_cast<void *>( info.data() ) ) );
|
||||
VULKAN_HPP_ASSERT( infoSize <= info.size() );
|
||||
}
|
||||
} while ( result == Result::eIncomplete );
|
||||
if ( result == Result::eSuccess )
|
||||
if ( ( result == Result::eSuccess ) && ( infoSize < info.size() ) )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( infoSize <= info.size() );
|
||||
info.resize( infoSize );
|
||||
}
|
||||
return createResultValue( result, info, VULKAN_HPP_NAMESPACE_STRING "::Device::getShaderInfoAMD" );
|
||||
@@ -100868,15 +100875,16 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
return static_cast<Result>( d.vkGetValidationCacheDataEXT(
|
||||
m_device, static_cast<VkValidationCacheEXT>( validationCache ), pDataSize, pData ) );
|
||||
}
|
||||
|
||||
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||
template <typename Allocator, typename Dispatch>
|
||||
VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Allocator>>::type
|
||||
template <typename Uint8_tAllocator, typename Dispatch>
|
||||
VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type
|
||||
Device::getValidationCacheDataEXT( VULKAN_HPP_NAMESPACE::ValidationCacheEXT validationCache,
|
||||
Dispatch const & d ) const
|
||||
{
|
||||
std::vector<uint8_t, Allocator> data;
|
||||
size_t dataSize;
|
||||
Result result;
|
||||
std::vector<uint8_t, Uint8_tAllocator> data;
|
||||
size_t dataSize;
|
||||
Result result;
|
||||
do
|
||||
{
|
||||
result = static_cast<Result>( d.vkGetValidationCacheDataEXT(
|
||||
@@ -100889,27 +100897,28 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
static_cast<VkValidationCacheEXT>( validationCache ),
|
||||
&dataSize,
|
||||
reinterpret_cast<void *>( data.data() ) ) );
|
||||
VULKAN_HPP_ASSERT( dataSize <= data.size() );
|
||||
}
|
||||
} while ( result == Result::eIncomplete );
|
||||
if ( result == Result::eSuccess )
|
||||
if ( ( result == Result::eSuccess ) && ( dataSize < data.size() ) )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( dataSize <= data.size() );
|
||||
data.resize( dataSize );
|
||||
}
|
||||
return createResultValue( result, data, VULKAN_HPP_NAMESPACE_STRING "::Device::getValidationCacheDataEXT" );
|
||||
}
|
||||
template <typename Allocator,
|
||||
|
||||
template <typename Uint8_tAllocator,
|
||||
typename Dispatch,
|
||||
typename B,
|
||||
typename std::enable_if<std::is_same<typename B::value_type, uint8_t>::value, int>::type>
|
||||
VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Allocator>>::type
|
||||
VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type
|
||||
Device::getValidationCacheDataEXT( VULKAN_HPP_NAMESPACE::ValidationCacheEXT validationCache,
|
||||
Allocator const & vectorAllocator,
|
||||
Uint8_tAllocator & uint8_tAllocator,
|
||||
Dispatch const & d ) const
|
||||
{
|
||||
std::vector<uint8_t, Allocator> data( vectorAllocator );
|
||||
size_t dataSize;
|
||||
Result result;
|
||||
std::vector<uint8_t, Uint8_tAllocator> data( uint8_tAllocator );
|
||||
size_t dataSize;
|
||||
Result result;
|
||||
do
|
||||
{
|
||||
result = static_cast<Result>( d.vkGetValidationCacheDataEXT(
|
||||
@@ -100922,11 +100931,11 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
static_cast<VkValidationCacheEXT>( validationCache ),
|
||||
&dataSize,
|
||||
reinterpret_cast<void *>( data.data() ) ) );
|
||||
VULKAN_HPP_ASSERT( dataSize <= data.size() );
|
||||
}
|
||||
} while ( result == Result::eIncomplete );
|
||||
if ( result == Result::eSuccess )
|
||||
if ( ( result == Result::eSuccess ) && ( dataSize < data.size() ) )
|
||||
{
|
||||
VULKAN_HPP_ASSERT( dataSize <= data.size() );
|
||||
data.resize( dataSize );
|
||||
}
|
||||
return createResultValue( result, data, VULKAN_HPP_NAMESPACE_STRING "::Device::getValidationCacheDataEXT" );
|
||||
|
||||
Reference in New Issue
Block a user