Fix license, add it to source, fix readme.

Delete .gitmodules, update readme to mention that enabling testing
automatically gets the dependencies, no more git submodules.
Add license to top of source files.
This commit is contained in:
Charles Giessen 2020-06-10 13:39:14 -06:00
parent 5e2b9e6827
commit 511cac8db4
4 changed files with 47 additions and 22 deletions

View File

@ -1,4 +1,4 @@
Copyright © 2020 Charles Giessen (charles-lunarg@gmail.com) Copyright © 2020 Charles Giessen (charles@lunarg.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

View File

@ -1,20 +1,21 @@
# Vk-Bootstrap # vk-bootstrap
A Vulkan utility library meant to jump start any Vulkan Application A utility library meant to jump start developing a Vulkan Application
This library simplifies the tedious process of: This library simplifies the tedious process of:
* Instance Creation * Instance creation
* Picking a Physical Device * Physical Device selection
* Device Creation * Device creation
* Getting Queues * Getting queues
* Swapchain Creation * Swapchain creation
It also adds several conveniences for: It also adds several conveniences for:
* Enabling validation layers * Enabling validation layers
* Adding a debug callback * Adding a debug callback messenger
* Select a gpu based on a set of criteria like features, extensions, memory, etc. * Enabling extensions on a physical device
* Select a gpu based on a set of criteria like features, extensions, memory, etc
Read the [Getting Started](docs/getting_started.md) guide for a quick start on using `vk-bootstrap` Read the [Getting Started](docs/getting_started.md) guide for a quick start on using `vk-bootstrap`
@ -82,7 +83,7 @@ See `example/triangle.cpp` for an example that renders a triangle to the screen.
This library has no external dependencies beyond C++11 and the standard library. This library has no external dependencies beyond C++11 and the standard library.
Simply copy the `src/VkBootstrap.h` and `src/VkBootstrap.cpp` files into your project and compile them as you normally would Simply copy the `src/VkBootstrap.h` and `src/VkBootstrap.cpp` files into your project, include them, compile as you normally would.
### With git-submodule + CMake ### With git-submodule + CMake
@ -112,17 +113,9 @@ cmake ..
## Testing ## Testing
To test, glfw and Catch2 are automatically included using git submodules. Testing requires GLFW and Catch2 but are acquired automatically using cmake.
Tests will be enabled if you open this project standalone. If you include this project as a subdirectory, you can force enable tests by setting the option `VK_BOOTSTRAP_TEST` to `ON`, otherwise it won't be built.
In the project directory, run the following to get the required dependencies to test.
```bash ```bash
git submodule update --init cmake ../path/to/your_project/ -DVK_BOOTSTRAP_TEST=ON
```
Tests will be enabled by default if you open this project standalone. If you include this project as a subdirectory,
you can force enable tests by adding `-DVK_BOOTSTRAP_TEST` to the cmake command line arguments
```bash
cmake ../path/to/your-project/ -DVK_BOOTSTRAP_TEST=ON
``` ```

View File

@ -1,3 +1,19 @@
/*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the Software), to deal in the Software without restriction, including without
* limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
* of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
* LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* Copyright © 2020 Charles Giessen (charles@lunarg.com)
*/
#include "VkBootstrap.h" #include "VkBootstrap.h"
#include <stdio.h> #include <stdio.h>

View File

@ -1,3 +1,19 @@
/*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the Software), to deal in the Software without restriction, including without
* limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
* of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
* LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* Copyright © 2020 Charles Giessen (charles@lunarg.com)
*/
#pragma once #pragma once
#include <cassert> #include <cassert>