-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First render on both OpenGL and DX11.
ClearBuffer abstraction working for both. Trying to figure out if there's any memory leak or not, because of some `wil::ResultException`s thrown after i close the app. After I will be done with the basic triangle, I will implement Vulkan and DX12 aswell.
- Loading branch information
1 parent
0c3df73
commit 2a7521a
Showing
23 changed files
with
321 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
build/ | ||
.vs/ | ||
build/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"name": "x64-Debug", | ||
"generator": "Ninja", | ||
"configurationType": "Debug", | ||
"inheritEnvironments": [ "msvc_x64_x64" ], | ||
"buildRoot": "${projectDir}\\out\\build\\${name}", | ||
"installRoot": "${projectDir}\\out\\install\\${name}", | ||
"cmakeCommandArgs": "", | ||
"buildCommandArgs": "", | ||
"ctestCommandArgs": "" | ||
} | ||
], | ||
"environment": { | ||
"CFLAGS": "/fsanitize=address", | ||
"CXXFLAGS": "/fsanitize=address" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | ||
<s:Boolean x:Key="/Default/UserDictionary/Words/=Albita/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,33 @@ | ||
#pragma once | ||
|
||
#include <string> | ||
|
||
namespace Vane { | ||
enum BACKEND { | ||
AUTO = 0, | ||
DX11 = 1, | ||
DX12 = 2, | ||
VULKAN = 3, | ||
OPENGL = 4 | ||
}; | ||
namespace Albita { | ||
enum BACKEND { | ||
DX11 = 0, | ||
DX12 = 1, | ||
VULKAN = 2, | ||
OPENGL = 3 | ||
}; | ||
|
||
} | ||
inline std::string STRING_FROM_BACKEND(BACKEND backend) { | ||
std::string res; | ||
switch (backend) { | ||
case DX11: | ||
res.append("DX11"); | ||
break; | ||
case DX12: | ||
res.append("DX12"); | ||
break; | ||
case VULKAN: | ||
res.append("VULKAN"); | ||
break; | ||
case OPENGL: | ||
res.append("OpenGL"); | ||
break; | ||
} | ||
return res; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#pragma once | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,27 @@ | ||
#pragma once | ||
#include "EngineConfig.h" | ||
|
||
namespace Vane { | ||
#include <Renderer.h> | ||
#include <Window.h> | ||
|
||
namespace Vane { | ||
class Engine { | ||
public: | ||
EngineConfig config; | ||
|
||
private: | ||
std::shared_ptr<Albita::Renderer> renderer; | ||
std::shared_ptr<Albita::Window> window; | ||
|
||
public: | ||
Engine(); | ||
~Engine(); | ||
|
||
void initialize(); | ||
void run(); | ||
void shutdown(); | ||
|
||
private: | ||
void mainLoop() const; | ||
void initialize(); | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.