diff options
Diffstat (limited to 'layers/unique_objects.h')
| -rw-r--r-- | layers/unique_objects.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/layers/unique_objects.h b/layers/unique_objects.h index e604e915..d8d33935 100644 --- a/layers/unique_objects.h +++ b/layers/unique_objects.h @@ -109,10 +109,9 @@ bool ContainsExtStruct(const T *target, VkStructureType ext_type) { return false; } - /* Unwrap a handle. */ // must hold lock! -template<typename HandleType, typename MapType> +template <typename HandleType, typename MapType> HandleType Unwrap(MapType *layer_data, HandleType wrappedHandle) { // TODO: don't use operator[] here. return (HandleType)layer_data->unique_id_mapping[reinterpret_cast<uint64_t const &>(wrappedHandle)]; @@ -120,7 +119,7 @@ HandleType Unwrap(MapType *layer_data, HandleType wrappedHandle) { /* Wrap a newly created handle with a new unique ID, and return the new ID. */ // must hold lock! -template<typename HandleType, typename MapType> +template <typename HandleType, typename MapType> HandleType WrapNew(MapType *layer_data, HandleType newlyCreatedHandle) { auto unique_id = global_unique_id++; layer_data->unique_id_mapping[unique_id] = reinterpret_cast<uint64_t const &>(newlyCreatedHandle); |
