From d8e96dc8c177c40ae0f9557429879e6567ee74bd Mon Sep 17 00:00:00 2001 From: HuYingzhuo Date: Fri, 12 Apr 2019 22:15:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0Shader,DescriptorSet,Pipeline?= =?UTF-8?q?Layout=E6=96=87=E4=BB=B6=EF=BC=8C=E6=9C=AA=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/Vulkan/Shader.cpp | 4 ++++ example/Vulkan/Shader.h | 7 +++++++ example/Vulkan/VKDescriptorSet.cpp | 4 ++++ example/Vulkan/VKDescriptorSet.h | 11 +++++++++++ example/Vulkan/VKPipelineLayout.cpp | 23 +++++++++++++++++++++++ example/Vulkan/VKPipelineLayout.h | 18 ++++++++++++++++++ 6 files changed, 67 insertions(+) create mode 100644 example/Vulkan/Shader.cpp create mode 100644 example/Vulkan/Shader.h create mode 100644 example/Vulkan/VKDescriptorSet.cpp create mode 100644 example/Vulkan/VKDescriptorSet.h create mode 100644 example/Vulkan/VKPipelineLayout.cpp create mode 100644 example/Vulkan/VKPipelineLayout.h diff --git a/example/Vulkan/Shader.cpp b/example/Vulkan/Shader.cpp new file mode 100644 index 00000000..3938574e --- /dev/null +++ b/example/Vulkan/Shader.cpp @@ -0,0 +1,4 @@ +#include"Shader.h" + +VK_NAMESPACE_BEGIN +VK_NAMESPACE_END diff --git a/example/Vulkan/Shader.h b/example/Vulkan/Shader.h new file mode 100644 index 00000000..53be7f45 --- /dev/null +++ b/example/Vulkan/Shader.h @@ -0,0 +1,7 @@ +#ifndef HGL_GRAPH_VULKAN_SHADER_INCLUDE +#define HGL_GRAPH_VULKAN_SHADER_INCLUDE + +#include"VK.h" +VK_NAMESPACE_BEGIN +VK_NAMESPACE_END +#endif//HGL_GRAPH_VULKAN_SHADER_INCLUDE diff --git a/example/Vulkan/VKDescriptorSet.cpp b/example/Vulkan/VKDescriptorSet.cpp new file mode 100644 index 00000000..edb95294 --- /dev/null +++ b/example/Vulkan/VKDescriptorSet.cpp @@ -0,0 +1,4 @@ +#include"VKDescriptorSet.h" + +VK_NAMESPACE_BEGIN +VK_NAMESPACE_END diff --git a/example/Vulkan/VKDescriptorSet.h b/example/Vulkan/VKDescriptorSet.h new file mode 100644 index 00000000..1a6000f8 --- /dev/null +++ b/example/Vulkan/VKDescriptorSet.h @@ -0,0 +1,11 @@ +#ifndef HGL_GRAPH_VULKAN_DESCRIPTOR_SET_INCLUDE +#define HGL_GRAPH_VULKAN_DESCRIPTOR_SET_INCLUDE + +#include"VK.h" +VK_NAMESPACE_BEGIN +class DescriptorSet +{ +public: +};//class DescriptorSet +VK_NAMESPACE_END +#endif//HGL_GRAPH_VULKAN_DESCRIPTOR_SET_INCLUDE diff --git a/example/Vulkan/VKPipelineLayout.cpp b/example/Vulkan/VKPipelineLayout.cpp new file mode 100644 index 00000000..68e1c766 --- /dev/null +++ b/example/Vulkan/VKPipelineLayout.cpp @@ -0,0 +1,23 @@ +#include"VKPipelineLayout.h" + +VK_NAMESPACE_BEGIN +PipelineLayout::~PipelineLayout() +{ + if(!layout)return; + + const int count=desc_set_layout.GetCount(); + + if(count>0) + { + VkDescriptorSetLayout *dsl=desc_set_layout.GetData(); + + for(int i=0;i desc_set_layout; + +public: + + PipelineLayout(); + ~PipelineLayout(); +};//class PipelineLayout +VK_NAMESPACE_END +#endif//HGL_GRAPH_VULKAN_PIPELINE_LAYOUT_INCLUDE