use image_count instead of color_count in Swapchain

This commit is contained in:
2024-11-11 01:18:28 +08:00
parent adc3c5bd81
commit 9f37373631
18 changed files with 106 additions and 89 deletions

View File

@@ -10,6 +10,7 @@
set_property(TARGET ${name} PROPERTY FOLDER "ULRE/Example/Basic")
endmacro()
CreateProject(00_first_app first_app.cpp)
CreateProject(01_draw_triangle_in_NDC draw_triangle_in_NDC.cpp)
CreateProject(02_draw_triangle_use_UBO draw_triangle_use_UBO.cpp)
CreateProject(03_auto_instance auto_instance.cpp)

View File

@@ -0,0 +1,8 @@
#include<hgl/graph/RenderFramework.h>
using namespace hgl;
int os_main(int,os_char **)
{
}

View File

@@ -38,18 +38,12 @@ using namespace hgl;
using namespace hgl::io;
using namespace hgl::graph;
namespace hgl{namespace graph
{
bool InitShaderCompiler();
void CloseShaderCompiler();
}}//namespace hgl::graph
class VulkanApplicationFramework:WindowEvent
{
protected:
Window * win =nullptr;
VulkanInstance * inst =nullptr;
Window * win =nullptr;
VulkanInstance * inst =nullptr;
protected:
@@ -91,8 +85,6 @@ public:
virtual ~VulkanApplicationFramework()
{
CloseShaderCompiler();
win->Unjoin(this);
SAFE_CLEAR(db);
@@ -107,9 +99,6 @@ public:
{
logger::InitLogger(OS_TEXT("VulkanTest"));
if(!InitShaderCompiler())
return(false);
SetClearColor(COLOR::MozillaCharcoal);
#ifdef _DEBUG