diff options
| author | Mark Lobodzinski <mark@lunarg.com> | 2017-01-17 14:14:22 -0700 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2017-01-17 14:58:38 -0700 |
| commit | ee330efc7f8cfd06fa8afb3448e38f5721bc2533 (patch) | |
| tree | 9e4b0270bcd32d924a25930cfa1299104039d2b1 | |
| parent | dcfd0c25c7fff1c8ae231b234870027e913c08bf (diff) | |
| download | usermoji-ee330efc7f8cfd06fa8afb3448e38f5721bc2533.tar.xz | |
layers: Create buffer/image validation module
As image layer is folded into CV, image- and buffer-related
checks will reside in these modules.
Change-Id: Id261cc0d40eaa51211c36bb1fa82d0cbbaf1a6f5
| -rw-r--r-- | layers/buffer_validation.cpp | 24 | ||||
| -rw-r--r-- | layers/buffer_validation.h | 29 |
2 files changed, 53 insertions, 0 deletions
diff --git a/layers/buffer_validation.cpp b/layers/buffer_validation.cpp new file mode 100644 index 00000000..4bcbf13a --- /dev/null +++ b/layers/buffer_validation.cpp @@ -0,0 +1,24 @@ +/* Copyright (c) 2015-2017 The Khronos Group Inc. + * Copyright (c) 2015-2017 Valve Corporation + * Copyright (c) 2015-2017 LunarG, Inc. + * Copyright (C) 2015-2017 Google Inc. + * + * 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. + * + * Author: Mark Lobodzinski <mark@lunarg.com> + */ + +// Allow use of STL min and max functions in Windows +#define NOMINMAX + +#include "buffer_validation.h" diff --git a/layers/buffer_validation.h b/layers/buffer_validation.h new file mode 100644 index 00000000..0e53bbfc --- /dev/null +++ b/layers/buffer_validation.h @@ -0,0 +1,29 @@ +/* Copyright (c) 2015-2017 The Khronos Group Inc. + * Copyright (c) 2015-2017 Valve Corporation + * Copyright (c) 2015-2017 LunarG, Inc. + * Copyright (C) 2015-2017 Google Inc. + * + * 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. + * + * Mark Lobodzinski <mark@lunarg.com> + */ +#ifndef CORE_VALIDATION_BUFFER_VALIDATION_H_ +#define CORE_VALIDATION_BUFFER_VALIDATION_H_ + +#include "core_validation_types.h" +#include "vulkan/vk_layer.h" +#include <memory> +#include <unordered_map> +#include <vector> + +#endif // CORE_VALIDATION_BUFFER_VALIDATION_H_ |
