mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-10 02:41:47 +00:00
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:
parent
5e2b9e6827
commit
511cac8db4
@ -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:
|
||||
|
||||
|
35
README.md
35
README.md
@ -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:
|
||||
|
||||
* Instance Creation
|
||||
* Picking a Physical Device
|
||||
* Device Creation
|
||||
* Getting Queues
|
||||
* Swapchain Creation
|
||||
* Instance creation
|
||||
* Physical Device selection
|
||||
* Device creation
|
||||
* Getting queues
|
||||
* Swapchain creation
|
||||
|
||||
It also adds several conveniences for:
|
||||
|
||||
* Enabling validation layers
|
||||
* Adding a debug callback
|
||||
* Select a gpu based on a set of criteria like features, extensions, memory, etc.
|
||||
* Adding a debug callback messenger
|
||||
* 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`
|
||||
|
||||
@ -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.
|
||||
|
||||
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
|
||||
|
||||
@ -112,17 +113,9 @@ cmake ..
|
||||
|
||||
## Testing
|
||||
|
||||
To test, glfw and Catch2 are automatically included using git submodules.
|
||||
|
||||
In the project directory, run the following to get the required dependencies to test.
|
||||
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.
|
||||
|
||||
```bash
|
||||
git submodule update --init
|
||||
```
|
||||
|
||||
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
|
||||
cmake ../path/to/your_project/ -DVK_BOOTSTRAP_TEST=ON
|
||||
```
|
||||
|
@ -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 <stdio.h>
|
||||
|
@ -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
|
||||
|
||||
#include <cassert>
|
||||
|
Loading…
Reference in New Issue
Block a user