renamed to SAFE_CLEAR_OBJECT_ARRAY_OBJECT from SAFE_CLEAR_OBJECT_ARRAY
This commit is contained in:
parent
a5fe26b2f0
commit
ac03ae4e44
@ -83,7 +83,7 @@ public:
|
|||||||
win->Unjoin(this);
|
win->Unjoin(this);
|
||||||
|
|
||||||
SAFE_CLEAR(db);
|
SAFE_CLEAR(db);
|
||||||
SAFE_CLEAR_OBJECT_ARRAY(cmd_buf,swap_chain_count);
|
SAFE_CLEAR_OBJECT_ARRAY_OBJECT(cmd_buf,swap_chain_count);
|
||||||
|
|
||||||
SAFE_CLEAR(device);
|
SAFE_CLEAR(device);
|
||||||
SAFE_CLEAR(win);
|
SAFE_CLEAR(win);
|
||||||
@ -197,7 +197,7 @@ public:
|
|||||||
void InitCommandBuffer()
|
void InitCommandBuffer()
|
||||||
{
|
{
|
||||||
if(cmd_buf)
|
if(cmd_buf)
|
||||||
SAFE_CLEAR_OBJECT_ARRAY(cmd_buf,swap_chain_count);
|
SAFE_CLEAR_OBJECT_ARRAY_OBJECT(cmd_buf,swap_chain_count);
|
||||||
|
|
||||||
sc_render_target=device->GetSwapchainRT();
|
sc_render_target=device->GetSwapchainRT();
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ namespace hgl
|
|||||||
|
|
||||||
VertexDataManager::~VertexDataManager()
|
VertexDataManager::~VertexDataManager()
|
||||||
{
|
{
|
||||||
SAFE_CLEAR_OBJECT_ARRAY(vab,vi_count);
|
SAFE_CLEAR_OBJECT_ARRAY_OBJECT(vab,vi_count);
|
||||||
SAFE_CLEAR(ibo);
|
SAFE_CLEAR(ibo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include<hgl/graph/VKQueue.h>
|
#include<hgl/graph/VKQueue.h>
|
||||||
#include<hgl/graph/VKSemaphore.h>
|
#include<hgl/graph/VKSemaphore.h>
|
||||||
|
|
||||||
VK_NAMESPACE_BEGIN
|
VK_NAMESPACE_BEGIN
|
||||||
@ -21,7 +21,7 @@ DeviceQueue::DeviceQueue(VkDevice dev,VkQueue q,Fence **fl,const uint32_t fc)
|
|||||||
|
|
||||||
DeviceQueue::~DeviceQueue()
|
DeviceQueue::~DeviceQueue()
|
||||||
{
|
{
|
||||||
SAFE_CLEAR_OBJECT_ARRAY(fence_list,fence_count)
|
SAFE_CLEAR_OBJECT_ARRAY_OBJECT(fence_list,fence_count)
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DeviceQueue::WaitQueue()
|
bool DeviceQueue::WaitQueue()
|
||||||
|
@ -53,7 +53,7 @@ RenderTarget::~RenderTarget()
|
|||||||
{
|
{
|
||||||
SAFE_CLEAR(queue);
|
SAFE_CLEAR(queue);
|
||||||
SAFE_CLEAR(depth_texture);
|
SAFE_CLEAR(depth_texture);
|
||||||
SAFE_CLEAR_OBJECT_ARRAY(color_textures,color_count);
|
SAFE_CLEAR_OBJECT_ARRAY_OBJECT(color_textures,color_count);
|
||||||
|
|
||||||
SAFE_CLEAR(render_complete_semaphore);
|
SAFE_CLEAR(render_complete_semaphore);
|
||||||
SAFE_CLEAR(fbo);
|
SAFE_CLEAR(fbo);
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
#include<hgl/graph/VKSwapchain.h>
|
#include<hgl/graph/VKSwapchain.h>
|
||||||
#include<hgl/graph/VKFramebuffer.h>
|
#include<hgl/graph/VKFramebuffer.h>
|
||||||
|
|
||||||
VK_NAMESPACE_BEGIN
|
VK_NAMESPACE_BEGIN
|
||||||
Swapchain::~Swapchain()
|
Swapchain::~Swapchain()
|
||||||
{
|
{
|
||||||
SAFE_CLEAR_OBJECT_ARRAY(sc_fbo,color_count);
|
SAFE_CLEAR_OBJECT_ARRAY_OBJECT(sc_fbo,color_count);
|
||||||
SAFE_CLEAR(sc_depth);
|
SAFE_CLEAR(sc_depth);
|
||||||
SAFE_CLEAR_OBJECT_ARRAY(sc_color,color_count)
|
SAFE_CLEAR_OBJECT_ARRAY_OBJECT(sc_color,color_count)
|
||||||
|
|
||||||
if(swap_chain)
|
if(swap_chain)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user