mirror of
https://github.com/rt64/rt64.git
synced 2025-01-06 01:02:50 +00:00
Remove unused file
This commit is contained in:
parent
5f80997e5c
commit
b864efba11
@ -1,27 +0,0 @@
|
|||||||
#include <cassert>
|
|
||||||
#include "rhi/rt64_render_interface.h"
|
|
||||||
|
|
||||||
namespace RT64 {
|
|
||||||
extern std::unique_ptr<RenderInterface> CreateD3D12Interface();
|
|
||||||
extern std::unique_ptr<RenderInterface> CreateVulkanInterface();
|
|
||||||
}
|
|
||||||
|
|
||||||
int main() {
|
|
||||||
std::unique_ptr<RT64::RenderInterface> renderInterface;
|
|
||||||
|
|
||||||
// Create a render interface with the preferred backend.
|
|
||||||
const bool useVulkan = true;
|
|
||||||
if (useVulkan) {
|
|
||||||
renderInterface = RT64::CreateVulkanInterface();
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
#ifdef _WIN64
|
|
||||||
renderInterface = RT64::CreateD3D12Interface();
|
|
||||||
#else
|
|
||||||
assert(false);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
// Execute a blocking test that creates a window and draws some geometry to test the render interface.
|
|
||||||
RT64::RenderInterfaceTest(renderInterface.get());
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user