diff --git a/example/Vulkan/VKDevice.cpp b/example/Vulkan/VKDevice.cpp index 2f3ea391..f0b6d6c7 100644 --- a/example/Vulkan/VKDevice.cpp +++ b/example/Vulkan/VKDevice.cpp @@ -129,21 +129,6 @@ CommandBuffer *Device::CreateCommandBuffer() 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() { VkAttachmentDescription attachments[2]; diff --git a/example/Vulkan/VKDevice.h b/example/Vulkan/VKDevice.h index 61cf64cc..ee4a3efa 100644 --- a/example/Vulkan/VKDevice.h +++ b/example/Vulkan/VKDevice.h @@ -60,23 +60,15 @@ public: #undef CREATE_BUFFER_OBJECT - CommandBuffer * CreateCommandBuffer (); + CommandBuffer * CreateCommandBuffer(); + RenderPass * CreateRenderPass(); + Fence * CreateFence(); + Semaphore * CreateSem(); -// DescriptorSet * CreateDescSet(int); - - RenderPass *CreateRenderPass(); - - 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(); + 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 VK_NAMESPACE_END #endif//HGL_GRAPH_RENDER_SURFACE_INCLUDE