删除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];
|
||||||
|
@ -61,21 +61,13 @@ public:
|
|||||||
#undef CREATE_BUFFER_OBJECT
|
#undef CREATE_BUFFER_OBJECT
|
||||||
|
|
||||||
CommandBuffer * CreateCommandBuffer();
|
CommandBuffer * CreateCommandBuffer();
|
||||||
|
|
||||||
// DescriptorSet * CreateDescSet(int);
|
|
||||||
|
|
||||||
RenderPass * CreateRenderPass();
|
RenderPass * CreateRenderPass();
|
||||||
|
|
||||||
Fence * CreateFence();
|
Fence * CreateFence();
|
||||||
|
|
||||||
Semaphore * CreateSem();
|
Semaphore * CreateSem();
|
||||||
|
|
||||||
bool AcquireNextImage ();
|
bool AcquireNextImage ();
|
||||||
|
|
||||||
bool QueueSubmit (CommandBuffer *,Fence *);
|
bool QueueSubmit (CommandBuffer *,Fence *);
|
||||||
|
|
||||||
bool Wait (Fence *,bool wait_all=VK_TRUE,uint64_t time_out=HGL_NANO_SEC_PER_SEC*0.1);
|
bool Wait (Fence *,bool wait_all=VK_TRUE,uint64_t time_out=HGL_NANO_SEC_PER_SEC*0.1);
|
||||||
|
|
||||||
bool QueuePresent ();
|
bool QueuePresent ();
|
||||||
};//class Device
|
};//class Device
|
||||||
VK_NAMESPACE_END
|
VK_NAMESPACE_END
|
||||||
|
Loading…
x
Reference in New Issue
Block a user