增加Shader,DescriptorSet,PipelineLayout文件,未实现
This commit is contained in:
parent
9ccb77a084
commit
d8e96dc8c1
4
example/Vulkan/Shader.cpp
Normal file
4
example/Vulkan/Shader.cpp
Normal file
@ -0,0 +1,4 @@
|
||||
#include"Shader.h"
|
||||
|
||||
VK_NAMESPACE_BEGIN
|
||||
VK_NAMESPACE_END
|
7
example/Vulkan/Shader.h
Normal file
7
example/Vulkan/Shader.h
Normal file
@ -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
|
4
example/Vulkan/VKDescriptorSet.cpp
Normal file
4
example/Vulkan/VKDescriptorSet.cpp
Normal file
@ -0,0 +1,4 @@
|
||||
#include"VKDescriptorSet.h"
|
||||
|
||||
VK_NAMESPACE_BEGIN
|
||||
VK_NAMESPACE_END
|
11
example/Vulkan/VKDescriptorSet.h
Normal file
11
example/Vulkan/VKDescriptorSet.h
Normal file
@ -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
|
23
example/Vulkan/VKPipelineLayout.cpp
Normal file
23
example/Vulkan/VKPipelineLayout.cpp
Normal file
@ -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<count;i++)
|
||||
{
|
||||
vkDestroyDescriptorSetLayout(device,*dsl,nullptr);
|
||||
++dsl;
|
||||
}
|
||||
}
|
||||
|
||||
vkDestroyPipelineLayout(device,layout,nullptr);
|
||||
}
|
||||
VK_NAMESPACE_END
|
18
example/Vulkan/VKPipelineLayout.h
Normal file
18
example/Vulkan/VKPipelineLayout.h
Normal file
@ -0,0 +1,18 @@
|
||||
#ifndef HGL_GRAPH_VULKAN_PIPELINE_LAYOUT_INCLUDE
|
||||
#define HGL_GRAPH_VULKAN_PIPELINE_LAYOUT_INCLUDE
|
||||
|
||||
#include"VK.h"
|
||||
VK_NAMESPACE_BEGIN
|
||||
class PipelineLayout
|
||||
{
|
||||
VkDevice device;
|
||||
VkPipelineLayout layout;
|
||||
List<VkDescriptorSetLayout> desc_set_layout;
|
||||
|
||||
public:
|
||||
|
||||
PipelineLayout();
|
||||
~PipelineLayout();
|
||||
};//class PipelineLayout
|
||||
VK_NAMESPACE_END
|
||||
#endif//HGL_GRAPH_VULKAN_PIPELINE_LAYOUT_INCLUDE
|
Loading…
x
Reference in New Issue
Block a user