mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Change default for template non-type parameter value of struct CppType from 0 to Type{}. (#1868)
This commit is contained in:
parent
8d46db6965
commit
d3f062dd68
@ -870,7 +870,7 @@ When this is defined before including `vulkan.hpp`, you essentially disable all
|
|||||||
* the helper class `vk::StructureChain` for compile-time construction of structure chains.
|
* the helper class `vk::StructureChain` for compile-time construction of structure chains.
|
||||||
|
|
||||||
If this is not defined, you additionally get:
|
If this is not defined, you additionally get:
|
||||||
* enhanced versions of the commands (consuming `vk::ArrayProxy<>`, simplifying handling of array data; returning requested data; throwing exceptions on errors (as long as `VULKAN_HPP_NO_EXCEPTIONS` is not defined);
|
* enhanced versions of the commands (consuming `vk::ArrayProxy<>`), simplifying handling of array data; returning requested data; throwing exceptions on errors (as long as `VULKAN_HPP_NO_EXCEPTIONS` is not defined);
|
||||||
* enhanced structure constructors (as long as `VULKAN_HPP_NO_STRUCT_CONSTRUCTORS` is not defined) (consuming `vk::ArrayProxyNoTemporaries<>`);
|
* enhanced structure constructors (as long as `VULKAN_HPP_NO_STRUCT_CONSTRUCTORS` is not defined) (consuming `vk::ArrayProxyNoTemporaries<>`);
|
||||||
* enhanced setter functions on some members of structs (consuming `vk::ArrayProxyNoTemporaries<>`);
|
* enhanced setter functions on some members of structs (consuming `vk::ArrayProxyNoTemporaries<>`);
|
||||||
* the helper classes `vk::ArrayProxy<>` and `vk::ArrayProxyNoTemporaries<>`
|
* the helper classes `vk::ArrayProxy<>` and `vk::ArrayProxyNoTemporaries<>`
|
||||||
|
@ -466,7 +466,7 @@ ${PoolFree}
|
|||||||
#endif // !VULKAN_HPP_NO_SMART_HANDLE
|
#endif // !VULKAN_HPP_NO_SMART_HANDLE
|
||||||
${baseTypes}
|
${baseTypes}
|
||||||
|
|
||||||
template <typename Type, Type value = 0>
|
template <typename Type, Type value = Type{}>
|
||||||
struct CppType
|
struct CppType
|
||||||
{};
|
{};
|
||||||
} // namespace VULKAN_HPP_NAMESPACE
|
} // namespace VULKAN_HPP_NAMESPACE
|
||||||
|
@ -6144,7 +6144,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
using RemoteAddressNV = void *;
|
using RemoteAddressNV = void *;
|
||||||
using SampleMask = uint32_t;
|
using SampleMask = uint32_t;
|
||||||
|
|
||||||
template <typename Type, Type value = 0>
|
template <typename Type, Type value = Type{}>
|
||||||
struct CppType
|
struct CppType
|
||||||
{
|
{
|
||||||
};
|
};
|
||||||
|
@ -3392,7 +3392,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
using RemoteAddressNV = void *;
|
using RemoteAddressNV = void *;
|
||||||
using SampleMask = uint32_t;
|
using SampleMask = uint32_t;
|
||||||
|
|
||||||
template <typename Type, Type value = 0>
|
template <typename Type, Type value = Type{}>
|
||||||
struct CppType
|
struct CppType
|
||||||
{
|
{
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user