完成窗口事件回调机制,并实现窗口缩放后VULKAN各种属性重建
This commit is contained in:
@@ -166,6 +166,11 @@ public:
|
||||
|
||||
return(true);
|
||||
}
|
||||
|
||||
void Resize(int,int)override
|
||||
{
|
||||
BuildCommandBuffer(&render_list);
|
||||
}
|
||||
};//class TestApp:public VulkanApplicationFramework
|
||||
|
||||
int main(int,char **)
|
||||
|
@@ -168,6 +168,11 @@ public:
|
||||
|
||||
return(true);
|
||||
}
|
||||
|
||||
void Resize(int,int)override
|
||||
{
|
||||
BuildCommandBuffer(&render_list);
|
||||
}
|
||||
};//class TestApp:public VulkanApplicationFramework
|
||||
|
||||
int main(int,char **)
|
||||
|
@@ -267,6 +267,11 @@ public:
|
||||
|
||||
return(true);
|
||||
}
|
||||
|
||||
void Resize(int,int)override
|
||||
{
|
||||
BuildCommandBuffer(&render_list);
|
||||
}
|
||||
};//class TestApp:public VulkanApplicationFramework
|
||||
|
||||
#ifdef _WIN32
|
||||
|
@@ -187,6 +187,11 @@ public:
|
||||
|
||||
BuildCommandBuffer(&render_list);
|
||||
}
|
||||
|
||||
void Resize(int,int)override
|
||||
{
|
||||
BuildCommandBuffer(&render_list);
|
||||
}
|
||||
};//class TestApp:public VulkanApplicationFramework
|
||||
|
||||
int main(int,char **)
|
||||
|
@@ -86,9 +86,19 @@ public:
|
||||
|
||||
InitCommandBuffer();
|
||||
|
||||
SetEventCall(win->OnResize,this,VulkanApplicationFramework,OnResize);
|
||||
|
||||
return(true);
|
||||
}
|
||||
|
||||
virtual void Resize(int,int)=0;
|
||||
|
||||
void OnResize(int w,int h)
|
||||
{
|
||||
InitCommandBuffer();
|
||||
Resize(w,h);
|
||||
}
|
||||
|
||||
void InitCommandBuffer()
|
||||
{
|
||||
if(cmd_buf)
|
||||
|
@@ -140,6 +140,11 @@ public:
|
||||
|
||||
return(true);
|
||||
}
|
||||
|
||||
void Resize(int,int)override
|
||||
{
|
||||
BuildCommandBuffer(pipeline,descriptor_sets,render_obj);
|
||||
}
|
||||
};//class TestApp:public VulkanApplicationFramework
|
||||
|
||||
int main(int,char **)
|
||||
|
@@ -154,6 +154,11 @@ public:
|
||||
|
||||
return(true);
|
||||
}
|
||||
|
||||
void Resize(int,int)override
|
||||
{
|
||||
BuildCommandBuffer(pipeline,descriptor_sets,render_obj);
|
||||
}
|
||||
};//class TestApp:public VulkanApplicationFramework
|
||||
|
||||
int main(int,char **)
|
||||
|
@@ -177,6 +177,11 @@ public:
|
||||
|
||||
return(true);
|
||||
}
|
||||
|
||||
void Resize(int,int)override
|
||||
{
|
||||
BuildCommandBuffer(pipeline,descriptor_sets,render_obj);
|
||||
}
|
||||
};//class TestApp:public VulkanApplicationFramework
|
||||
|
||||
int main(int,char **)
|
||||
|
Reference in New Issue
Block a user