aboutsummaryrefslogtreecommitdiffstatsci
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2019-05-23 23:35:51 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2019-05-23 23:35:51 +0200
commit5cba5d677cf637afb4f52c7f2c1a42c97b41201c (patch)
tree55ae4db3d356f9397fd877c377f9b06ed3901ad4
parent349c03b17b9ad8781ec760927a92e5e7aa0ba2e6 (diff)
update readme
-rw-r--r--README.md17
-rw-r--r--vke/src/Instance.cs2
-rw-r--r--vke/src/ktx.cs2
3 files changed, 17 insertions, 4 deletions
diff --git a/README.md b/README.md
index dadd5c6..c05d21d 100644
--- a/README.md
+++ b/README.md
@@ -24,7 +24,20 @@ The nuget package is available under the name **Vulkan**.
<a href="https://www.nuget.org/packages/CVKL"><img src="https://buildstats.info/nuget/CVKL"></a>
The second project included in this repository is a set of classes encapsulating vulkan objects with `IDispose` model and **reference counting**. [GLFW](https://www.glfw.org/) handles the windowing system.
-Developping exclusively on linux, I would be glad to have some feedback frow windows experiences.
+
+Developping exclusively on linux, I would be glad to have some feedback from window experiences.
+
+### Requirements
+- [GLFW](https://www.glfw.org/)
+- [libstb](https://github.com/nothings/stb), on debian install **libstb-dev**.
+- [Vulkan Sdk](https://www.lunarg.com/vulkan-sdk/), **glslc** has to be in the path.
+- optionaly for ui, you will need [vkvg](https://github.com/jpbruyere/vkvg).
+
+### Features
+
+- physicaly based rendering, direct and deferred
+- glTF 2.0
+- ktx image loading.
### VkWindow class
@@ -61,7 +74,7 @@ protected override void createQueues () {
```
### Rendering
-The constructor of the VkWIndow will finish the vulkan initialisation, so that you may create pipelines, buffers, and so on in your constructor.
+The constructor of the `VkWIndow` will finish the vulkan initialisation, so that you may create pipelines, buffers, and so on in your constructor.
VkWindow will provide the default swapchain, but it's up to you to create the frame buffers. For the triangle example, create them in the `OnResize` override.
```csharp
diff --git a/vke/src/Instance.cs b/vke/src/Instance.cs
index 0b53e68..b4bcca0 100644
--- a/vke/src/Instance.cs
+++ b/vke/src/Instance.cs
@@ -36,7 +36,7 @@ namespace CVKL {
public class Instance : IDisposable {
/// <summary>If true, the VK_LAYER_KHRONOS_validation layer is loaded at startup; </summary>
public static bool VALIDATION;
- /// <summary>If true, the VK_EXT_DEBUG_UTILS_EXTENSION_NAME and VK_EXT_DEBUG_REPORT_EXTENSION_NAME device extensions are enabled</summary>
+ /// <summary>If true, the VK_EXT_debug_utils and VK_EXT_debug_report device extensions are enabled</summary>
public static bool DEBUG_UTILS;
/// <summary>If true, the VK_LAYER_RENDERDOC_Capture layer is loaded at startup; </summary>
public static bool RENDER_DOC_CAPTURE;
diff --git a/vke/src/ktx.cs b/vke/src/ktx.cs
index af4ab49..227328d 100644
--- a/vke/src/ktx.cs
+++ b/vke/src/ktx.cs
@@ -40,7 +40,7 @@ namespace KTX {
public class KTX {
static byte[] ktxSignature = { 0xAB, 0x4B, 0x54, 0x58, 0x20, 0x31, 0x31, 0xBB, 0x0D, 0x0A, 0x1A, 0x0A };
- public unsafe static Image Load (Queue staggingQ, CommandPool staggingCmdPool, string ktxPath, VkImageUsageFlags usage = VkImageUsageFlags.Sampled,
+ public static Image Load (Queue staggingQ, CommandPool staggingCmdPool, string ktxPath, VkImageUsageFlags usage = VkImageUsageFlags.Sampled,
VkMemoryPropertyFlags memoryProperty = VkMemoryPropertyFlags.DeviceLocal, bool generateMipmaps = true,
VkImageTiling tiling = VkImageTiling.Optimal) {
Image img = null;