split RenderCommand/TextureCommand from GPUCmdBuffer

This commit is contained in:
2020-10-28 12:30:44 +08:00
parent 672a14e656
commit 2e05e06b3f
18 changed files with 127 additions and 166 deletions

View File

@@ -31,11 +31,15 @@ class GPUDevice
GPUDeviceAttribute *attr;
GPUQueue *textureSQ;
GPUCmdBuffer *texture_cmd_buf;
TextureCommand *texture_cmd_buf;
Swapchain *swapchain;
SwapchainRenderTarget *swapchainRT;
private:
VkCommandBuffer CreateCommandBuffer();
bool CreateSwapchainColorTexture();
bool CreateSwapchainDepthTexture();
@@ -180,7 +184,8 @@ public: //shader & material
public: //Command GPUBuffer 相关
GPUCmdBuffer * CreateCommandBuffer(const uint32_t attachment_count);
RenderCommand * CreateRenderCommandBuffer();
TextureCommand *CreateTextureCommandBuffer();
RenderPass * CreateRenderPass( const List<VkAttachmentDescription> &desc_list,
const List<VkSubpassDescription> &subpass,