删除Device中不需要的CreateDescSet
This commit is contained in:
parent
68ca384521
commit
f7062bb7f1
@ -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];
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user