删除Device中不需要的CreateDescSet

This commit is contained in:
HuYingzhuo 2019-04-19 21:02:41 +08:00
parent 68ca384521
commit f7062bb7f1
2 changed files with 8 additions and 31 deletions

View File

@ -129,21 +129,6 @@ CommandBuffer *Device::CreateCommandBuffer()
return(new CommandBuffer(attr->device,attr->cmd_pool,cmd_buf)); return(new CommandBuffer(attr->device,attr->cmd_pool,cmd_buf));
} }
//DescriptorSet *Device::CreateDescSet(int count)
//{
// VkDescriptorSetAllocateInfo alloc_info[1];
// alloc_info[0].sType=VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO;
// alloc_info[0].pNext=nullptr;
// alloc_info[0].descriptorPool=rsa->desc_pool;
// alloc_info[0].descriptorSetCount=count;
// alloc_info[0].pSetLayouts=desc_layout.data();
//
// VkDescriptorSet desc_set;
//
// desc_set.resize(count);
// res=vkAllocateDescriptorSets(info.device,alloc_info,info.desc_set.data());
//}
RenderPass *Device::CreateRenderPass() RenderPass *Device::CreateRenderPass()
{ {
VkAttachmentDescription attachments[2]; VkAttachmentDescription attachments[2];

View File

@ -60,23 +60,15 @@ public:
#undef CREATE_BUFFER_OBJECT #undef CREATE_BUFFER_OBJECT
CommandBuffer * CreateCommandBuffer (); CommandBuffer * CreateCommandBuffer();
RenderPass * CreateRenderPass();
Fence * CreateFence();
Semaphore * CreateSem();
// DescriptorSet * CreateDescSet(int); bool AcquireNextImage ();
bool QueueSubmit (CommandBuffer *,Fence *);
RenderPass *CreateRenderPass(); bool Wait (Fence *,bool wait_all=VK_TRUE,uint64_t time_out=HGL_NANO_SEC_PER_SEC*0.1);
bool QueuePresent ();
Fence *CreateFence();
Semaphore *CreateSem();
bool AcquireNextImage();
bool QueueSubmit(CommandBuffer *,Fence *);
bool Wait(Fence *,bool wait_all=VK_TRUE,uint64_t time_out=HGL_NANO_SEC_PER_SEC*0.1);
bool QueuePresent();
};//class Device };//class Device
VK_NAMESPACE_END VK_NAMESPACE_END
#endif//HGL_GRAPH_RENDER_SURFACE_INCLUDE #endif//HGL_GRAPH_RENDER_SURFACE_INCLUDE