diff options
| author | Dave Houlton <daveh@lunarg.com> | 2018-02-07 10:51:23 -0700 |
|---|---|---|
| committer | Dave Houlton <daveh@lunarg.com> | 2018-02-16 09:31:58 -0700 |
| commit | b575cecc062ea5ff65df8002017f81fb05854622 (patch) | |
| tree | f2499673da4609d8bdf67b6ca6f4041fef823a00 /layers/unique_objects.h | |
| parent | 6ecf456fdf8132a38d8b599e7cf2756a7c09dddf (diff) | |
| download | usermoji-b575cecc062ea5ff65df8002017f81fb05854622.tar.xz | |
layers: clang-format only
Whole-file clang-format of layers .h and .cpp files
Change-Id: I683ad38fa9bced371a923b86d8cc916f2c2aa947
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); |
