renamed Fence instead of GPUFence

This commit is contained in:
HuYingzhuo(hugo/hyzboy) 2022-10-14 19:27:29 +08:00
parent b980457ba2
commit fc2c8021ba
8 changed files with 14 additions and 14 deletions

View File

@ -67,7 +67,7 @@ class TextureCmdBuffer;
class RenderPass;
class DeviceRenderPassManage;
class GPUFence;
class Fence;
class GPUSemaphore;
enum class DescriptorSetsType

View File

@ -240,7 +240,7 @@ public:
RenderPass * AcquireRenderPass( const RenderbufferInfo *,const uint subpass_count=2);
GPUFence * CreateFence(bool);
Fence * CreateFence(bool);
GPUSemaphore * CreateGPUSemaphore();
GPUQueue * CreateQueue(const uint32_t fence_count=1,const bool create_signaled=false);

View File

@ -3,7 +3,7 @@
#include<hgl/graph/VK.h>
VK_NAMESPACE_BEGIN
class GPUFence
class Fence
{
VkDevice device;
VkFence fence;
@ -12,7 +12,7 @@ private:
friend class GPUDevice;
GPUFence(VkDevice d,VkFence f)
Fence(VkDevice d,VkFence f)
{
device=d;
fence=f;
@ -20,9 +20,9 @@ private:
public:
~GPUFence();
~Fence();
operator VkFence(){return fence;}
};//class GPUFence
};//class Fence
VK_NAMESPACE_END
#endif//HGL_VULKAN_GRAPH_FENCE_INCLUDE

View File

@ -12,7 +12,7 @@ protected:
VkQueue queue;
uint32_t current_fence;
GPUFence **fence_list;
Fence **fence_list;
uint32_t fence_count;
SubmitInfo submit_info;
@ -21,7 +21,7 @@ private:
friend class GPUDevice;
GPUQueue(VkDevice dev,VkQueue q,GPUFence **,const uint32_t fc);
GPUQueue(VkDevice dev,VkQueue q,Fence **,const uint32_t fc);
public:

View File

@ -116,7 +116,7 @@ TextureCmdBuffer *GPUDevice::CreateTextureCommandBuffer()
*
* @param create_signaled
*/
GPUFence *GPUDevice::CreateFence(bool create_signaled)
Fence *GPUDevice::CreateFence(bool create_signaled)
{
FenceCreateInfo fenceInfo(create_signaled?VK_FENCE_CREATE_SIGNALED_BIT:0);
@ -125,7 +125,7 @@ GPUFence *GPUDevice::CreateFence(bool create_signaled)
if(vkCreateFence(attr->device, &fenceInfo, nullptr, &fence)!=VK_SUCCESS)
return(nullptr);
return(new GPUFence(attr->device,fence));
return(new Fence(attr->device,fence));
}
GPUSemaphore *GPUDevice::CreateGPUSemaphore()
@ -144,7 +144,7 @@ GPUQueue *GPUDevice::CreateQueue(const uint32_t fence_count,const bool create_si
{
if(fence_count<=0)return(nullptr);
GPUFence **fence_list=new GPUFence *[fence_count];
Fence **fence_list=new Fence *[fence_count];
for(uint32_t i=0;i<fence_count;i++)
fence_list[i]=CreateFence(create_signaled);

View File

@ -1,6 +1,6 @@
#include<hgl/graph/VKFence.h>
VK_NAMESPACE_BEGIN
GPUFence::~GPUFence()
Fence::~Fence()
{
vkDestroyFence(device,fence,nullptr);
}

View File

@ -7,7 +7,7 @@ namespace
const VkPipelineStageFlags pipe_stage_flags=VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT;
}//namespace
GPUQueue::GPUQueue(VkDevice dev,VkQueue q,GPUFence **fl,const uint32_t fc)
GPUQueue::GPUQueue(VkDevice dev,VkQueue q,Fence **fl,const uint32_t fc)
{
device=dev;
queue=q;