mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Corrected functions dealing with StructureChains. (#253)
+ adjusted readme.md accordingly + added (a first!) test project
This commit is contained in:
parent
1944b56b9f
commit
1ddafc1c56
@ -78,7 +78,11 @@ set_property(TARGET VulkanHppGenerator PROPERTY CXX_STANDARD 11)
|
||||
target_include_directories(VulkanHppGenerator PRIVATE "${CMAKE_SOURCE_DIR}/tinyxml2")
|
||||
|
||||
option (SAMPLES_BUILD OFF)
|
||||
|
||||
if (SAMPLES_BUILD)
|
||||
add_subdirectory(samples)
|
||||
endif (SAMPLES_BUILD)
|
||||
endif (SAMPLES_BUILD)
|
||||
|
||||
option (TESTS_BUILD OFF)
|
||||
if (TESTS_BUILD)
|
||||
add_subdirectory(tests)
|
||||
endif (TESTS_BUILD)
|
11
README.md
11
README.md
@ -191,15 +191,22 @@ vk::StructureChain<vk::MemoryAllocateInfo, vk::MemoryDedicatedAllocateInfo> c =
|
||||
};
|
||||
```
|
||||
|
||||
Sometimes the user has to pass a preallocated structure chain to query information. In those cases the corresponding query functions are variadic templates and do accept a structure chain to construct the return value:
|
||||
Sometimes the user has to pass a preallocated structure chain to query information. For those cases there are two corresponding getter functions. One with a variadic template generating a structure chain of at least two elements to construct the return value:
|
||||
|
||||
```
|
||||
// Query vk::MemoryRequirements2KHR and vk::MemoryDedicatedRequirementsKHR when calling Device::getBufferMemoryRequirements2KHR:
|
||||
// Query vk::MemoryRequirements2HR and vk::MemoryDedicatedRequirementsKHR when calling Device::getBufferMemoryRequirements2KHR:
|
||||
auto result = device.getBufferMemoryRequirements2KHR<vk::MemoryRequirements2KHR, vk::MemoryDedicatedRequirementsKHR>({});
|
||||
vk::MemoryRequirements2KHR &memReqs = result.get<vk::MemoryRequirements2KHR>();
|
||||
vk::MemoryDedicatedRequirementsKHR &dedMemReqs = result.get<vk::MemoryDedicatedRequirementsKHR>();
|
||||
```
|
||||
|
||||
To get just the base structure, without chaining, the other getter function provided does not need a template argument for the structure to get:
|
||||
|
||||
```
|
||||
// Query just vk::MemoryRequirements2KHR
|
||||
vk::MemoryRequirements2KHR memoryRequirements = device.getBufferMemoryRequirements2KHR({});
|
||||
```
|
||||
|
||||
### Return values, Error Codes & Exceptions
|
||||
|
||||
By default Vulkan-Hpp has exceptions enabled. This means that Vulkan-Hpp checks the return code of each function call which returns a Vk::Result. If Vk::Result is a failure a std::runtime_error will be thrown. Since there is no need to return the error code anymore the C++ bindings can now return the actual desired return value, i.e. a vulkan handle. In those cases ResultValue <SomeType>::type is defined as the returned type.
|
||||
|
@ -3425,7 +3425,7 @@ std::string VulkanHppGenerator::writeFunctionBodyEnhancedLocalReturnVariable(std
|
||||
{
|
||||
std::string const &pureType = commandData.params[commandData.returnParam].pureType;
|
||||
// For StructureChains use the template parameters
|
||||
os << "StructureChain<T...> structureChain;" << std::endl;
|
||||
os << "StructureChain<X, Y, Z...> structureChain;" << std::endl;
|
||||
returnName = stripPluralS(returnName);
|
||||
os << indentation << " " << pureType << "& " << returnName << " = structureChain.template get<" << pureType << ">()";
|
||||
returnName = "structureChain";
|
||||
@ -3444,7 +3444,7 @@ std::string VulkanHppGenerator::writeFunctionBodyEnhancedLocalReturnVariable(std
|
||||
{
|
||||
std::string const &returnType = commandData.enhancedReturnType;
|
||||
// For StructureChains use the template parameters
|
||||
os << "StructureChain<T...> structureChain;" << std::endl;
|
||||
os << "StructureChain<X, Y, Z...> structureChain;" << std::endl;
|
||||
os << indentation << " " << returnType << "& " << returnName << " = structureChain.template get<" << returnType << ">()";
|
||||
returnName = "structureChain";
|
||||
}
|
||||
@ -3963,7 +3963,7 @@ void VulkanHppGenerator::writeFunctionHeaderReturnType(std::ostream & os, Comman
|
||||
bool returnsVector = !singular && (commandData.vectorParams.find(commandData.returnParam) != commandData.vectorParams.end());
|
||||
|
||||
templateString += returnsVector ? "ResultValueType<std::vector<UniqueHandle<${returnType},Dispatch>,Allocator>>::type " : "typename ResultValueType<UniqueHandle<${returnType},Dispatch>>::type ";
|
||||
returnType = isStructureChain ? "StructureChain<T...>" : commandData.params[commandData.returnParam].pureType;
|
||||
returnType = isStructureChain ? "StructureChain<X, Y, Z...>" : commandData.params[commandData.returnParam].pureType;
|
||||
}
|
||||
else if ((commandData.enhancedReturnType != commandData.returnType) && (commandData.returnType != "void"))
|
||||
{
|
||||
@ -3974,7 +3974,7 @@ void VulkanHppGenerator::writeFunctionHeaderReturnType(std::ostream & os, Comman
|
||||
// in singular case, we create the ResultValueType from the pure return type, otherwise from the enhanced return type
|
||||
if (isStructureChain)
|
||||
{
|
||||
returnType = "StructureChain<T...>";
|
||||
returnType = "StructureChain<X, Y, Z...>";
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -3986,13 +3986,13 @@ void VulkanHppGenerator::writeFunctionHeaderReturnType(std::ostream & os, Comman
|
||||
// if there is a return parameter at all, and there are multiple success codes, we return a ResultValue<...> with the pure return type
|
||||
assert(commandData.returnType == "Result");
|
||||
templateString = "ResultValue<${returnType}> ";
|
||||
returnType = isStructureChain ? "StructureChain<T...>" : commandData.params[commandData.returnParam].pureType;
|
||||
returnType = isStructureChain ? "StructureChain<X, Y, Z...>" : commandData.params[commandData.returnParam].pureType;
|
||||
}
|
||||
else
|
||||
{
|
||||
// and in every other case, we just return the enhanced return type.
|
||||
templateString = "${returnType} ";
|
||||
returnType = isStructureChain ? "StructureChain<T...>" : commandData.enhancedReturnType;
|
||||
returnType = isStructureChain ? "StructureChain<X, Y, Z...>" : commandData.enhancedReturnType;
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -4009,7 +4009,7 @@ void VulkanHppGenerator::writeFunctionHeaderTemplate(std::ostream & os, std::str
|
||||
std::string dispatch = withDefault ? std::string("typename Dispatch = DispatchLoaderStatic") : std::string("typename Dispatch");
|
||||
if (enhanced && isStructureChain)
|
||||
{
|
||||
os << indentation << "template <typename ...T, " << dispatch << ">" << std::endl;
|
||||
os << indentation << "template <typename X, typename Y, typename ...Z, " << dispatch << ">" << std::endl;
|
||||
}
|
||||
else if (enhanced && (commandData.templateParam != ~0) && ((commandData.templateParam != commandData.returnParam) || (commandData.enhancedReturnType == "Result")))
|
||||
{
|
||||
|
45
tests/CMakeLists.txt
Normal file
45
tests/CMakeLists.txt
Normal file
@ -0,0 +1,45 @@
|
||||
# Copyright(c) 2018, NVIDIA CORPORATION. All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
cmake_minimum_required(VERSION 3.2)
|
||||
|
||||
project(Vulkan-Hpp_Tests)
|
||||
|
||||
option (TESTS_BUILD_WITH_LOCAL_VULKAN_HPP OFF)
|
||||
|
||||
if (CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||
add_definitions(-DNOMINMAX -DVK_USE_PLATFORM_WIN32_KHR)
|
||||
else()
|
||||
error("unhandled platform !")
|
||||
endif()
|
||||
|
||||
FILE (GLOB linkunits ${CMAKE_CURRENT_SOURCE_DIR}/*)
|
||||
|
||||
if (TESTS_BUILD_WITH_LOCAL_VULKAN_HPP)
|
||||
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../Vulkan-Docs/include")
|
||||
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/..")
|
||||
else()
|
||||
include_directories("$ENV{VK_SDK_PATH}/include")
|
||||
endif()
|
||||
|
||||
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../glm")
|
||||
|
||||
FOREACH( linkunit ${linkunits} )
|
||||
if( IS_DIRECTORY ${linkunit} )
|
||||
if( EXISTS ${linkunit}/CMakeLists.txt )
|
||||
string( REGEX REPLACE "^.*/([^/]*)$" "\\1" LINK_NAME ${linkunit} )
|
||||
add_subdirectory( ${LINK_NAME} )
|
||||
endif()
|
||||
endif()
|
||||
ENDFOREACH( linkunit ${linkunits} )
|
35
tests/StructureChain/CMakeLists.txt
Normal file
35
tests/StructureChain/CMakeLists.txt
Normal file
@ -0,0 +1,35 @@
|
||||
# Copyright(c) 2018, NVIDIA CORPORATION. All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
cmake_minimum_required(VERSION 3.2)
|
||||
|
||||
project(StructureChain)
|
||||
|
||||
set(HEADERS
|
||||
)
|
||||
|
||||
set(SOURCES
|
||||
StructureChain.cpp
|
||||
)
|
||||
|
||||
source_group(headers FILES ${HEADERS})
|
||||
source_group(sources FILES ${SOURCES})
|
||||
|
||||
add_executable(StructureChain
|
||||
${HEADERS}
|
||||
${SOURCES}
|
||||
)
|
||||
|
||||
set_target_properties(StructureChain PROPERTIES FOLDER "Tests")
|
||||
target_link_libraries(StructureChain "$ENV{VK_SDK_PATH}/Lib/vulkan-1.lib")
|
72
tests/StructureChain/StructureChain.cpp
Normal file
72
tests/StructureChain/StructureChain.cpp
Normal file
@ -0,0 +1,72 @@
|
||||
// Copyright(c) 2018, NVIDIA CORPORATION. All rights reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
// VulkanHpp Tests : StructureChain
|
||||
// Compile-test for StructureChains
|
||||
|
||||
#include "vulkan/vulkan.hpp"
|
||||
#include <iostream>
|
||||
|
||||
static char const* AppName = "StructureChain";
|
||||
static char const* EngineName = "Vulkan.hpp";
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning( disable : 4189 )
|
||||
#elif defined(__GNUC__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-variable"
|
||||
#else
|
||||
// unknow compiler... just ignore the warnings for yourselves ;)
|
||||
#endif
|
||||
|
||||
int main(int /*argc*/, char * /*argv[]*/)
|
||||
{
|
||||
try
|
||||
{
|
||||
vk::ApplicationInfo appInfo(AppName, 1, EngineName, 1, VK_API_VERSION_1_1);
|
||||
vk::UniqueInstance instance = vk::createInstanceUnique(vk::InstanceCreateInfo({}, &appInfo));
|
||||
std::vector<vk::PhysicalDevice> physicalDevices = instance->enumeratePhysicalDevices();
|
||||
|
||||
vk::PhysicalDevice & pd = physicalDevices[0];
|
||||
|
||||
// simple call, passing structures in
|
||||
vk::PhysicalDeviceFeatures2 pdf;
|
||||
pd.getFeatures2(&pdf);
|
||||
|
||||
vk::StructureChain<vk::PhysicalDeviceFeatures2, vk::PhysicalDeviceVariablePointerFeatures> z;
|
||||
|
||||
// simple calls, getting structure back
|
||||
vk::PhysicalDeviceFeatures2 a = pd.getFeatures2();
|
||||
vk::PhysicalDeviceFeatures2 b = pd.getFeatures2(vk::DispatchLoaderStatic());
|
||||
|
||||
// complex calls, getting StructureChain back
|
||||
auto c = pd.getFeatures2<vk::PhysicalDeviceFeatures2, vk::PhysicalDeviceVariablePointerFeatures>();
|
||||
vk::PhysicalDeviceFeatures2 & c0 = c.get<vk::PhysicalDeviceFeatures2>();
|
||||
vk::PhysicalDeviceVariablePointerFeatures & c1 = c.get<vk::PhysicalDeviceVariablePointerFeatures>();
|
||||
|
||||
auto d = pd.getFeatures2<vk::PhysicalDeviceFeatures2, vk::PhysicalDeviceVariablePointerFeatures>(vk::DispatchLoaderStatic());
|
||||
vk::PhysicalDeviceFeatures2 & d0 = d.get<vk::PhysicalDeviceFeatures2>();
|
||||
vk::PhysicalDeviceVariablePointerFeatures & d1 = d.get<vk::PhysicalDeviceVariablePointerFeatures>();
|
||||
}
|
||||
catch (vk::SystemError err)
|
||||
{
|
||||
std::cout << "vk::SystemError: " << err.what() << std::endl;
|
||||
exit(-1);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
std::cout << "unknown error\n";
|
||||
exit(-1);
|
||||
}
|
||||
return 0;
|
||||
}
|
@ -36488,8 +36488,8 @@ public:
|
||||
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||
template<typename Dispatch = DispatchLoaderStatic>
|
||||
MemoryRequirements2 getBufferMemoryRequirements2( const BufferMemoryRequirementsInfo2 & info, Dispatch const &d = Dispatch() ) const;
|
||||
template <typename ...T, typename Dispatch = DispatchLoaderStatic>
|
||||
StructureChain<T...> getBufferMemoryRequirements2( const BufferMemoryRequirementsInfo2 & info, Dispatch const &d = Dispatch() ) const;
|
||||
template <typename X, typename Y, typename ...Z, typename Dispatch = DispatchLoaderStatic>
|
||||
StructureChain<X, Y, Z...> getBufferMemoryRequirements2( const BufferMemoryRequirementsInfo2 & info, Dispatch const &d = Dispatch() ) const;
|
||||
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
template<typename Dispatch = DispatchLoaderStatic>
|
||||
@ -36497,8 +36497,8 @@ public:
|
||||
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||
template<typename Dispatch = DispatchLoaderStatic>
|
||||
MemoryRequirements2 getBufferMemoryRequirements2KHR( const BufferMemoryRequirementsInfo2 & info, Dispatch const &d = Dispatch() ) const;
|
||||
template <typename ...T, typename Dispatch = DispatchLoaderStatic>
|
||||
StructureChain<T...> getBufferMemoryRequirements2KHR( const BufferMemoryRequirementsInfo2 & info, Dispatch const &d = Dispatch() ) const;
|
||||
template <typename X, typename Y, typename ...Z, typename Dispatch = DispatchLoaderStatic>
|
||||
StructureChain<X, Y, Z...> getBufferMemoryRequirements2KHR( const BufferMemoryRequirementsInfo2 & info, Dispatch const &d = Dispatch() ) const;
|
||||
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
template<typename Dispatch = DispatchLoaderStatic>
|
||||
@ -36506,8 +36506,8 @@ public:
|
||||
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||
template<typename Dispatch = DispatchLoaderStatic>
|
||||
MemoryRequirements2 getImageMemoryRequirements2( const ImageMemoryRequirementsInfo2 & info, Dispatch const &d = Dispatch() ) const;
|
||||
template <typename ...T, typename Dispatch = DispatchLoaderStatic>
|
||||
StructureChain<T...> getImageMemoryRequirements2( const ImageMemoryRequirementsInfo2 & info, Dispatch const &d = Dispatch() ) const;
|
||||
template <typename X, typename Y, typename ...Z, typename Dispatch = DispatchLoaderStatic>
|
||||
StructureChain<X, Y, Z...> getImageMemoryRequirements2( const ImageMemoryRequirementsInfo2 & info, Dispatch const &d = Dispatch() ) const;
|
||||
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
template<typename Dispatch = DispatchLoaderStatic>
|
||||
@ -36515,8 +36515,8 @@ public:
|
||||
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||
template<typename Dispatch = DispatchLoaderStatic>
|
||||
MemoryRequirements2 getImageMemoryRequirements2KHR( const ImageMemoryRequirementsInfo2 & info, Dispatch const &d = Dispatch() ) const;
|
||||
template <typename ...T, typename Dispatch = DispatchLoaderStatic>
|
||||
StructureChain<T...> getImageMemoryRequirements2KHR( const ImageMemoryRequirementsInfo2 & info, Dispatch const &d = Dispatch() ) const;
|
||||
template <typename X, typename Y, typename ...Z, typename Dispatch = DispatchLoaderStatic>
|
||||
StructureChain<X, Y, Z...> getImageMemoryRequirements2KHR( const ImageMemoryRequirementsInfo2 & info, Dispatch const &d = Dispatch() ) const;
|
||||
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
template<typename Dispatch = DispatchLoaderStatic>
|
||||
@ -36627,8 +36627,8 @@ public:
|
||||
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||
template<typename Dispatch = DispatchLoaderStatic>
|
||||
DescriptorSetLayoutSupport getDescriptorSetLayoutSupport( const DescriptorSetLayoutCreateInfo & createInfo, Dispatch const &d = Dispatch() ) const;
|
||||
template <typename ...T, typename Dispatch = DispatchLoaderStatic>
|
||||
StructureChain<T...> getDescriptorSetLayoutSupport( const DescriptorSetLayoutCreateInfo & createInfo, Dispatch const &d = Dispatch() ) const;
|
||||
template <typename X, typename Y, typename ...Z, typename Dispatch = DispatchLoaderStatic>
|
||||
StructureChain<X, Y, Z...> getDescriptorSetLayoutSupport( const DescriptorSetLayoutCreateInfo & createInfo, Dispatch const &d = Dispatch() ) const;
|
||||
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
template<typename Dispatch = DispatchLoaderStatic>
|
||||
@ -36636,8 +36636,8 @@ public:
|
||||
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||
template<typename Dispatch = DispatchLoaderStatic>
|
||||
DescriptorSetLayoutSupport getDescriptorSetLayoutSupportKHR( const DescriptorSetLayoutCreateInfo & createInfo, Dispatch const &d = Dispatch() ) const;
|
||||
template <typename ...T, typename Dispatch = DispatchLoaderStatic>
|
||||
StructureChain<T...> getDescriptorSetLayoutSupportKHR( const DescriptorSetLayoutCreateInfo & createInfo, Dispatch const &d = Dispatch() ) const;
|
||||
template <typename X, typename Y, typename ...Z, typename Dispatch = DispatchLoaderStatic>
|
||||
StructureChain<X, Y, Z...> getDescriptorSetLayoutSupportKHR( const DescriptorSetLayoutCreateInfo & createInfo, Dispatch const &d = Dispatch() ) const;
|
||||
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
template<typename Dispatch = DispatchLoaderStatic>
|
||||
@ -36685,8 +36685,8 @@ public:
|
||||
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||
template<typename Dispatch = DispatchLoaderStatic>
|
||||
ResultValueType<AndroidHardwareBufferPropertiesANDROID>::type getAndroidHardwareBufferPropertiesANDROID( const struct AHardwareBuffer & buffer, Dispatch const &d = Dispatch() ) const;
|
||||
template <typename ...T, typename Dispatch = DispatchLoaderStatic>
|
||||
typename ResultValueType<StructureChain<T...>>::type getAndroidHardwareBufferPropertiesANDROID( const struct AHardwareBuffer & buffer, Dispatch const &d = Dispatch() ) const;
|
||||
template <typename X, typename Y, typename ...Z, typename Dispatch = DispatchLoaderStatic>
|
||||
typename ResultValueType<StructureChain<X, Y, Z...>>::type getAndroidHardwareBufferPropertiesANDROID( const struct AHardwareBuffer & buffer, Dispatch const &d = Dispatch() ) const;
|
||||
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
#endif /*VK_USE_PLATFORM_ANDROID_ANDROID*/
|
||||
|
||||
@ -39281,10 +39281,10 @@ public:
|
||||
d.vkGetBufferMemoryRequirements2( m_device, reinterpret_cast<const VkBufferMemoryRequirementsInfo2*>( &info ), reinterpret_cast<VkMemoryRequirements2*>( &memoryRequirements ) );
|
||||
return memoryRequirements;
|
||||
}
|
||||
template <typename ...T, typename Dispatch>
|
||||
VULKAN_HPP_INLINE StructureChain<T...> Device::getBufferMemoryRequirements2( const BufferMemoryRequirementsInfo2 & info, Dispatch const &d ) const
|
||||
template <typename X, typename Y, typename ...Z, typename Dispatch>
|
||||
VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getBufferMemoryRequirements2( const BufferMemoryRequirementsInfo2 & info, Dispatch const &d ) const
|
||||
{
|
||||
StructureChain<T...> structureChain;
|
||||
StructureChain<X, Y, Z...> structureChain;
|
||||
MemoryRequirements2& memoryRequirements = structureChain.template get<MemoryRequirements2>();
|
||||
d.vkGetBufferMemoryRequirements2( m_device, reinterpret_cast<const VkBufferMemoryRequirementsInfo2*>( &info ), reinterpret_cast<VkMemoryRequirements2*>( &memoryRequirements ) );
|
||||
return structureChain;
|
||||
@ -39304,10 +39304,10 @@ public:
|
||||
d.vkGetBufferMemoryRequirements2KHR( m_device, reinterpret_cast<const VkBufferMemoryRequirementsInfo2*>( &info ), reinterpret_cast<VkMemoryRequirements2*>( &memoryRequirements ) );
|
||||
return memoryRequirements;
|
||||
}
|
||||
template <typename ...T, typename Dispatch>
|
||||
VULKAN_HPP_INLINE StructureChain<T...> Device::getBufferMemoryRequirements2KHR( const BufferMemoryRequirementsInfo2 & info, Dispatch const &d ) const
|
||||
template <typename X, typename Y, typename ...Z, typename Dispatch>
|
||||
VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getBufferMemoryRequirements2KHR( const BufferMemoryRequirementsInfo2 & info, Dispatch const &d ) const
|
||||
{
|
||||
StructureChain<T...> structureChain;
|
||||
StructureChain<X, Y, Z...> structureChain;
|
||||
MemoryRequirements2& memoryRequirements = structureChain.template get<MemoryRequirements2>();
|
||||
d.vkGetBufferMemoryRequirements2KHR( m_device, reinterpret_cast<const VkBufferMemoryRequirementsInfo2*>( &info ), reinterpret_cast<VkMemoryRequirements2*>( &memoryRequirements ) );
|
||||
return structureChain;
|
||||
@ -39327,10 +39327,10 @@ public:
|
||||
d.vkGetImageMemoryRequirements2( m_device, reinterpret_cast<const VkImageMemoryRequirementsInfo2*>( &info ), reinterpret_cast<VkMemoryRequirements2*>( &memoryRequirements ) );
|
||||
return memoryRequirements;
|
||||
}
|
||||
template <typename ...T, typename Dispatch>
|
||||
VULKAN_HPP_INLINE StructureChain<T...> Device::getImageMemoryRequirements2( const ImageMemoryRequirementsInfo2 & info, Dispatch const &d ) const
|
||||
template <typename X, typename Y, typename ...Z, typename Dispatch>
|
||||
VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getImageMemoryRequirements2( const ImageMemoryRequirementsInfo2 & info, Dispatch const &d ) const
|
||||
{
|
||||
StructureChain<T...> structureChain;
|
||||
StructureChain<X, Y, Z...> structureChain;
|
||||
MemoryRequirements2& memoryRequirements = structureChain.template get<MemoryRequirements2>();
|
||||
d.vkGetImageMemoryRequirements2( m_device, reinterpret_cast<const VkImageMemoryRequirementsInfo2*>( &info ), reinterpret_cast<VkMemoryRequirements2*>( &memoryRequirements ) );
|
||||
return structureChain;
|
||||
@ -39350,10 +39350,10 @@ public:
|
||||
d.vkGetImageMemoryRequirements2KHR( m_device, reinterpret_cast<const VkImageMemoryRequirementsInfo2*>( &info ), reinterpret_cast<VkMemoryRequirements2*>( &memoryRequirements ) );
|
||||
return memoryRequirements;
|
||||
}
|
||||
template <typename ...T, typename Dispatch>
|
||||
VULKAN_HPP_INLINE StructureChain<T...> Device::getImageMemoryRequirements2KHR( const ImageMemoryRequirementsInfo2 & info, Dispatch const &d ) const
|
||||
template <typename X, typename Y, typename ...Z, typename Dispatch>
|
||||
VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getImageMemoryRequirements2KHR( const ImageMemoryRequirementsInfo2 & info, Dispatch const &d ) const
|
||||
{
|
||||
StructureChain<T...> structureChain;
|
||||
StructureChain<X, Y, Z...> structureChain;
|
||||
MemoryRequirements2& memoryRequirements = structureChain.template get<MemoryRequirements2>();
|
||||
d.vkGetImageMemoryRequirements2KHR( m_device, reinterpret_cast<const VkImageMemoryRequirementsInfo2*>( &info ), reinterpret_cast<VkMemoryRequirements2*>( &memoryRequirements ) );
|
||||
return structureChain;
|
||||
@ -39608,10 +39608,10 @@ public:
|
||||
d.vkGetDescriptorSetLayoutSupport( m_device, reinterpret_cast<const VkDescriptorSetLayoutCreateInfo*>( &createInfo ), reinterpret_cast<VkDescriptorSetLayoutSupport*>( &support ) );
|
||||
return support;
|
||||
}
|
||||
template <typename ...T, typename Dispatch>
|
||||
VULKAN_HPP_INLINE StructureChain<T...> Device::getDescriptorSetLayoutSupport( const DescriptorSetLayoutCreateInfo & createInfo, Dispatch const &d ) const
|
||||
template <typename X, typename Y, typename ...Z, typename Dispatch>
|
||||
VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getDescriptorSetLayoutSupport( const DescriptorSetLayoutCreateInfo & createInfo, Dispatch const &d ) const
|
||||
{
|
||||
StructureChain<T...> structureChain;
|
||||
StructureChain<X, Y, Z...> structureChain;
|
||||
DescriptorSetLayoutSupport& support = structureChain.template get<DescriptorSetLayoutSupport>();
|
||||
d.vkGetDescriptorSetLayoutSupport( m_device, reinterpret_cast<const VkDescriptorSetLayoutCreateInfo*>( &createInfo ), reinterpret_cast<VkDescriptorSetLayoutSupport*>( &support ) );
|
||||
return structureChain;
|
||||
@ -39631,10 +39631,10 @@ public:
|
||||
d.vkGetDescriptorSetLayoutSupportKHR( m_device, reinterpret_cast<const VkDescriptorSetLayoutCreateInfo*>( &createInfo ), reinterpret_cast<VkDescriptorSetLayoutSupport*>( &support ) );
|
||||
return support;
|
||||
}
|
||||
template <typename ...T, typename Dispatch>
|
||||
VULKAN_HPP_INLINE StructureChain<T...> Device::getDescriptorSetLayoutSupportKHR( const DescriptorSetLayoutCreateInfo & createInfo, Dispatch const &d ) const
|
||||
template <typename X, typename Y, typename ...Z, typename Dispatch>
|
||||
VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getDescriptorSetLayoutSupportKHR( const DescriptorSetLayoutCreateInfo & createInfo, Dispatch const &d ) const
|
||||
{
|
||||
StructureChain<T...> structureChain;
|
||||
StructureChain<X, Y, Z...> structureChain;
|
||||
DescriptorSetLayoutSupport& support = structureChain.template get<DescriptorSetLayoutSupport>();
|
||||
d.vkGetDescriptorSetLayoutSupportKHR( m_device, reinterpret_cast<const VkDescriptorSetLayoutCreateInfo*>( &createInfo ), reinterpret_cast<VkDescriptorSetLayoutSupport*>( &support ) );
|
||||
return structureChain;
|
||||
@ -39751,10 +39751,10 @@ public:
|
||||
Result result = static_cast<Result>( d.vkGetAndroidHardwareBufferPropertiesANDROID( m_device, buffer, reinterpret_cast<VkAndroidHardwareBufferPropertiesANDROID*>( &properties ) ) );
|
||||
return createResultValue( result, properties, VULKAN_HPP_NAMESPACE_STRING"::Device::getAndroidHardwareBufferPropertiesANDROID" );
|
||||
}
|
||||
template <typename ...T, typename Dispatch>
|
||||
VULKAN_HPP_INLINE typename ResultValueType<StructureChain<T...>>::type Device::getAndroidHardwareBufferPropertiesANDROID( const struct AHardwareBuffer & buffer, Dispatch const &d ) const
|
||||
template <typename X, typename Y, typename ...Z, typename Dispatch>
|
||||
VULKAN_HPP_INLINE typename ResultValueType<StructureChain<X, Y, Z...>>::type Device::getAndroidHardwareBufferPropertiesANDROID( const struct AHardwareBuffer & buffer, Dispatch const &d ) const
|
||||
{
|
||||
StructureChain<T...> structureChain;
|
||||
StructureChain<X, Y, Z...> structureChain;
|
||||
AndroidHardwareBufferPropertiesANDROID& properties = structureChain.template get<AndroidHardwareBufferPropertiesANDROID>();
|
||||
Result result = static_cast<Result>( d.vkGetAndroidHardwareBufferPropertiesANDROID( m_device, buffer, reinterpret_cast<VkAndroidHardwareBufferPropertiesANDROID*>( &properties ) ) );
|
||||
return createResultValue( result, structureChain, VULKAN_HPP_NAMESPACE_STRING"::Device::getAndroidHardwareBufferPropertiesANDROID" );
|
||||
@ -40033,8 +40033,8 @@ public:
|
||||
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||
template<typename Dispatch = DispatchLoaderStatic>
|
||||
PhysicalDeviceFeatures2 getFeatures2(Dispatch const &d = Dispatch() ) const;
|
||||
template <typename ...T, typename Dispatch = DispatchLoaderStatic>
|
||||
StructureChain<T...> getFeatures2(Dispatch const &d = Dispatch() ) const;
|
||||
template <typename X, typename Y, typename ...Z, typename Dispatch = DispatchLoaderStatic>
|
||||
StructureChain<X, Y, Z...> getFeatures2(Dispatch const &d = Dispatch() ) const;
|
||||
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
template<typename Dispatch = DispatchLoaderStatic>
|
||||
@ -40042,8 +40042,8 @@ public:
|
||||
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||
template<typename Dispatch = DispatchLoaderStatic>
|
||||
PhysicalDeviceFeatures2 getFeatures2KHR(Dispatch const &d = Dispatch() ) const;
|
||||
template <typename ...T, typename Dispatch = DispatchLoaderStatic>
|
||||
StructureChain<T...> getFeatures2KHR(Dispatch const &d = Dispatch() ) const;
|
||||
template <typename X, typename Y, typename ...Z, typename Dispatch = DispatchLoaderStatic>
|
||||
StructureChain<X, Y, Z...> getFeatures2KHR(Dispatch const &d = Dispatch() ) const;
|
||||
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
template<typename Dispatch = DispatchLoaderStatic>
|
||||
@ -40051,8 +40051,8 @@ public:
|
||||
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||
template<typename Dispatch = DispatchLoaderStatic>
|
||||
PhysicalDeviceProperties2 getProperties2(Dispatch const &d = Dispatch() ) const;
|
||||
template <typename ...T, typename Dispatch = DispatchLoaderStatic>
|
||||
StructureChain<T...> getProperties2(Dispatch const &d = Dispatch() ) const;
|
||||
template <typename X, typename Y, typename ...Z, typename Dispatch = DispatchLoaderStatic>
|
||||
StructureChain<X, Y, Z...> getProperties2(Dispatch const &d = Dispatch() ) const;
|
||||
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
template<typename Dispatch = DispatchLoaderStatic>
|
||||
@ -40060,8 +40060,8 @@ public:
|
||||
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||
template<typename Dispatch = DispatchLoaderStatic>
|
||||
PhysicalDeviceProperties2 getProperties2KHR(Dispatch const &d = Dispatch() ) const;
|
||||
template <typename ...T, typename Dispatch = DispatchLoaderStatic>
|
||||
StructureChain<T...> getProperties2KHR(Dispatch const &d = Dispatch() ) const;
|
||||
template <typename X, typename Y, typename ...Z, typename Dispatch = DispatchLoaderStatic>
|
||||
StructureChain<X, Y, Z...> getProperties2KHR(Dispatch const &d = Dispatch() ) const;
|
||||
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
template<typename Dispatch = DispatchLoaderStatic>
|
||||
@ -40083,8 +40083,8 @@ public:
|
||||
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||
template<typename Dispatch = DispatchLoaderStatic>
|
||||
ResultValueType<ImageFormatProperties2>::type getImageFormatProperties2( const PhysicalDeviceImageFormatInfo2 & imageFormatInfo, Dispatch const &d = Dispatch() ) const;
|
||||
template <typename ...T, typename Dispatch = DispatchLoaderStatic>
|
||||
typename ResultValueType<StructureChain<T...>>::type getImageFormatProperties2( const PhysicalDeviceImageFormatInfo2 & imageFormatInfo, Dispatch const &d = Dispatch() ) const;
|
||||
template <typename X, typename Y, typename ...Z, typename Dispatch = DispatchLoaderStatic>
|
||||
typename ResultValueType<StructureChain<X, Y, Z...>>::type getImageFormatProperties2( const PhysicalDeviceImageFormatInfo2 & imageFormatInfo, Dispatch const &d = Dispatch() ) const;
|
||||
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
template<typename Dispatch = DispatchLoaderStatic>
|
||||
@ -40092,8 +40092,8 @@ public:
|
||||
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||
template<typename Dispatch = DispatchLoaderStatic>
|
||||
ResultValueType<ImageFormatProperties2>::type getImageFormatProperties2KHR( const PhysicalDeviceImageFormatInfo2 & imageFormatInfo, Dispatch const &d = Dispatch() ) const;
|
||||
template <typename ...T, typename Dispatch = DispatchLoaderStatic>
|
||||
typename ResultValueType<StructureChain<T...>>::type getImageFormatProperties2KHR( const PhysicalDeviceImageFormatInfo2 & imageFormatInfo, Dispatch const &d = Dispatch() ) const;
|
||||
template <typename X, typename Y, typename ...Z, typename Dispatch = DispatchLoaderStatic>
|
||||
typename ResultValueType<StructureChain<X, Y, Z...>>::type getImageFormatProperties2KHR( const PhysicalDeviceImageFormatInfo2 & imageFormatInfo, Dispatch const &d = Dispatch() ) const;
|
||||
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
template<typename Dispatch = DispatchLoaderStatic>
|
||||
@ -40232,8 +40232,8 @@ public:
|
||||
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||
template<typename Dispatch = DispatchLoaderStatic>
|
||||
ResultValueType<SurfaceCapabilities2KHR>::type getSurfaceCapabilities2KHR( const PhysicalDeviceSurfaceInfo2KHR & surfaceInfo, Dispatch const &d = Dispatch() ) const;
|
||||
template <typename ...T, typename Dispatch = DispatchLoaderStatic>
|
||||
typename ResultValueType<StructureChain<T...>>::type getSurfaceCapabilities2KHR( const PhysicalDeviceSurfaceInfo2KHR & surfaceInfo, Dispatch const &d = Dispatch() ) const;
|
||||
template <typename X, typename Y, typename ...Z, typename Dispatch = DispatchLoaderStatic>
|
||||
typename ResultValueType<StructureChain<X, Y, Z...>>::type getSurfaceCapabilities2KHR( const PhysicalDeviceSurfaceInfo2KHR & surfaceInfo, Dispatch const &d = Dispatch() ) const;
|
||||
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
|
||||
template<typename Dispatch = DispatchLoaderStatic>
|
||||
@ -40826,10 +40826,10 @@ public:
|
||||
d.vkGetPhysicalDeviceFeatures2( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceFeatures2*>( &features ) );
|
||||
return features;
|
||||
}
|
||||
template <typename ...T, typename Dispatch>
|
||||
VULKAN_HPP_INLINE StructureChain<T...> PhysicalDevice::getFeatures2(Dispatch const &d ) const
|
||||
template <typename X, typename Y, typename ...Z, typename Dispatch>
|
||||
VULKAN_HPP_INLINE StructureChain<X, Y, Z...> PhysicalDevice::getFeatures2(Dispatch const &d ) const
|
||||
{
|
||||
StructureChain<T...> structureChain;
|
||||
StructureChain<X, Y, Z...> structureChain;
|
||||
PhysicalDeviceFeatures2& features = structureChain.template get<PhysicalDeviceFeatures2>();
|
||||
d.vkGetPhysicalDeviceFeatures2( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceFeatures2*>( &features ) );
|
||||
return structureChain;
|
||||
@ -40849,10 +40849,10 @@ public:
|
||||
d.vkGetPhysicalDeviceFeatures2KHR( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceFeatures2*>( &features ) );
|
||||
return features;
|
||||
}
|
||||
template <typename ...T, typename Dispatch>
|
||||
VULKAN_HPP_INLINE StructureChain<T...> PhysicalDevice::getFeatures2KHR(Dispatch const &d ) const
|
||||
template <typename X, typename Y, typename ...Z, typename Dispatch>
|
||||
VULKAN_HPP_INLINE StructureChain<X, Y, Z...> PhysicalDevice::getFeatures2KHR(Dispatch const &d ) const
|
||||
{
|
||||
StructureChain<T...> structureChain;
|
||||
StructureChain<X, Y, Z...> structureChain;
|
||||
PhysicalDeviceFeatures2& features = structureChain.template get<PhysicalDeviceFeatures2>();
|
||||
d.vkGetPhysicalDeviceFeatures2KHR( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceFeatures2*>( &features ) );
|
||||
return structureChain;
|
||||
@ -40872,10 +40872,10 @@ public:
|
||||
d.vkGetPhysicalDeviceProperties2( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceProperties2*>( &properties ) );
|
||||
return properties;
|
||||
}
|
||||
template <typename ...T, typename Dispatch>
|
||||
VULKAN_HPP_INLINE StructureChain<T...> PhysicalDevice::getProperties2(Dispatch const &d ) const
|
||||
template <typename X, typename Y, typename ...Z, typename Dispatch>
|
||||
VULKAN_HPP_INLINE StructureChain<X, Y, Z...> PhysicalDevice::getProperties2(Dispatch const &d ) const
|
||||
{
|
||||
StructureChain<T...> structureChain;
|
||||
StructureChain<X, Y, Z...> structureChain;
|
||||
PhysicalDeviceProperties2& properties = structureChain.template get<PhysicalDeviceProperties2>();
|
||||
d.vkGetPhysicalDeviceProperties2( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceProperties2*>( &properties ) );
|
||||
return structureChain;
|
||||
@ -40895,10 +40895,10 @@ public:
|
||||
d.vkGetPhysicalDeviceProperties2KHR( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceProperties2*>( &properties ) );
|
||||
return properties;
|
||||
}
|
||||
template <typename ...T, typename Dispatch>
|
||||
VULKAN_HPP_INLINE StructureChain<T...> PhysicalDevice::getProperties2KHR(Dispatch const &d ) const
|
||||
template <typename X, typename Y, typename ...Z, typename Dispatch>
|
||||
VULKAN_HPP_INLINE StructureChain<X, Y, Z...> PhysicalDevice::getProperties2KHR(Dispatch const &d ) const
|
||||
{
|
||||
StructureChain<T...> structureChain;
|
||||
StructureChain<X, Y, Z...> structureChain;
|
||||
PhysicalDeviceProperties2& properties = structureChain.template get<PhysicalDeviceProperties2>();
|
||||
d.vkGetPhysicalDeviceProperties2KHR( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceProperties2*>( &properties ) );
|
||||
return structureChain;
|
||||
@ -40948,10 +40948,10 @@ public:
|
||||
Result result = static_cast<Result>( d.vkGetPhysicalDeviceImageFormatProperties2( m_physicalDevice, reinterpret_cast<const VkPhysicalDeviceImageFormatInfo2*>( &imageFormatInfo ), reinterpret_cast<VkImageFormatProperties2*>( &imageFormatProperties ) ) );
|
||||
return createResultValue( result, imageFormatProperties, VULKAN_HPP_NAMESPACE_STRING"::PhysicalDevice::getImageFormatProperties2" );
|
||||
}
|
||||
template <typename ...T, typename Dispatch>
|
||||
VULKAN_HPP_INLINE typename ResultValueType<StructureChain<T...>>::type PhysicalDevice::getImageFormatProperties2( const PhysicalDeviceImageFormatInfo2 & imageFormatInfo, Dispatch const &d ) const
|
||||
template <typename X, typename Y, typename ...Z, typename Dispatch>
|
||||
VULKAN_HPP_INLINE typename ResultValueType<StructureChain<X, Y, Z...>>::type PhysicalDevice::getImageFormatProperties2( const PhysicalDeviceImageFormatInfo2 & imageFormatInfo, Dispatch const &d ) const
|
||||
{
|
||||
StructureChain<T...> structureChain;
|
||||
StructureChain<X, Y, Z...> structureChain;
|
||||
ImageFormatProperties2& imageFormatProperties = structureChain.template get<ImageFormatProperties2>();
|
||||
Result result = static_cast<Result>( d.vkGetPhysicalDeviceImageFormatProperties2( m_physicalDevice, reinterpret_cast<const VkPhysicalDeviceImageFormatInfo2*>( &imageFormatInfo ), reinterpret_cast<VkImageFormatProperties2*>( &imageFormatProperties ) ) );
|
||||
return createResultValue( result, structureChain, VULKAN_HPP_NAMESPACE_STRING"::PhysicalDevice::getImageFormatProperties2" );
|
||||
@ -40971,10 +40971,10 @@ public:
|
||||
Result result = static_cast<Result>( d.vkGetPhysicalDeviceImageFormatProperties2KHR( m_physicalDevice, reinterpret_cast<const VkPhysicalDeviceImageFormatInfo2*>( &imageFormatInfo ), reinterpret_cast<VkImageFormatProperties2*>( &imageFormatProperties ) ) );
|
||||
return createResultValue( result, imageFormatProperties, VULKAN_HPP_NAMESPACE_STRING"::PhysicalDevice::getImageFormatProperties2KHR" );
|
||||
}
|
||||
template <typename ...T, typename Dispatch>
|
||||
VULKAN_HPP_INLINE typename ResultValueType<StructureChain<T...>>::type PhysicalDevice::getImageFormatProperties2KHR( const PhysicalDeviceImageFormatInfo2 & imageFormatInfo, Dispatch const &d ) const
|
||||
template <typename X, typename Y, typename ...Z, typename Dispatch>
|
||||
VULKAN_HPP_INLINE typename ResultValueType<StructureChain<X, Y, Z...>>::type PhysicalDevice::getImageFormatProperties2KHR( const PhysicalDeviceImageFormatInfo2 & imageFormatInfo, Dispatch const &d ) const
|
||||
{
|
||||
StructureChain<T...> structureChain;
|
||||
StructureChain<X, Y, Z...> structureChain;
|
||||
ImageFormatProperties2& imageFormatProperties = structureChain.template get<ImageFormatProperties2>();
|
||||
Result result = static_cast<Result>( d.vkGetPhysicalDeviceImageFormatProperties2KHR( m_physicalDevice, reinterpret_cast<const VkPhysicalDeviceImageFormatInfo2*>( &imageFormatInfo ), reinterpret_cast<VkImageFormatProperties2*>( &imageFormatProperties ) ) );
|
||||
return createResultValue( result, structureChain, VULKAN_HPP_NAMESPACE_STRING"::PhysicalDevice::getImageFormatProperties2KHR" );
|
||||
@ -41292,10 +41292,10 @@ public:
|
||||
Result result = static_cast<Result>( d.vkGetPhysicalDeviceSurfaceCapabilities2KHR( m_physicalDevice, reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR*>( &surfaceInfo ), reinterpret_cast<VkSurfaceCapabilities2KHR*>( &surfaceCapabilities ) ) );
|
||||
return createResultValue( result, surfaceCapabilities, VULKAN_HPP_NAMESPACE_STRING"::PhysicalDevice::getSurfaceCapabilities2KHR" );
|
||||
}
|
||||
template <typename ...T, typename Dispatch>
|
||||
VULKAN_HPP_INLINE typename ResultValueType<StructureChain<T...>>::type PhysicalDevice::getSurfaceCapabilities2KHR( const PhysicalDeviceSurfaceInfo2KHR & surfaceInfo, Dispatch const &d ) const
|
||||
template <typename X, typename Y, typename ...Z, typename Dispatch>
|
||||
VULKAN_HPP_INLINE typename ResultValueType<StructureChain<X, Y, Z...>>::type PhysicalDevice::getSurfaceCapabilities2KHR( const PhysicalDeviceSurfaceInfo2KHR & surfaceInfo, Dispatch const &d ) const
|
||||
{
|
||||
StructureChain<T...> structureChain;
|
||||
StructureChain<X, Y, Z...> structureChain;
|
||||
SurfaceCapabilities2KHR& surfaceCapabilities = structureChain.template get<SurfaceCapabilities2KHR>();
|
||||
Result result = static_cast<Result>( d.vkGetPhysicalDeviceSurfaceCapabilities2KHR( m_physicalDevice, reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR*>( &surfaceInfo ), reinterpret_cast<VkSurfaceCapabilities2KHR*>( &surfaceCapabilities ) ) );
|
||||
return createResultValue( result, structureChain, VULKAN_HPP_NAMESPACE_STRING"::PhysicalDevice::getSurfaceCapabilities2KHR" );
|
||||
|
Loading…
Reference in New Issue
Block a user