Mark vk::ResultValue::asTuple() & as deprecated, introduce vk::ResultValue::asTuple() && (#1605)
This commit is contained in:
committed by
GitHub
parent
3d95b910da
commit
5d8c550b0d
@@ -262,6 +262,13 @@ int main( int /*argc*/, char ** /*argv*/ )
|
||||
);
|
||||
|
||||
// create a GraphicsPipeline
|
||||
vk::ResultValue<vk::UniquePipeline> rv = device->createGraphicsPipelineUnique( *pipelineCache, graphicsPipelineCreateInfo );
|
||||
#if 17 <= VULKAN_HPP_CPP_VERSION
|
||||
auto [r, v] = std::move( rv );
|
||||
#endif
|
||||
// auto trv = rv.asTuple(); // asTuple() on an l-value is deprecated !!
|
||||
auto trv1 = std::move( rv ).asTuple();
|
||||
|
||||
vk::UniquePipeline graphicsPipeline = device->createGraphicsPipelineUnique( *pipelineCache, graphicsPipelineCreateInfo ).value;
|
||||
|
||||
vk::UniquePipeline graphicsPipeline2 =
|
||||
|
||||
Reference in New Issue
Block a user