move VK source files to up-level folder
This commit is contained in:
32
inc/hgl/graph/VKPipeline.h
Normal file
32
inc/hgl/graph/VKPipeline.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#ifndef HGL_GRAPH_VULKAN_PIPELINE_INCLUDE
|
||||
#define HGL_GRAPH_VULKAN_PIPELINE_INCLUDE
|
||||
|
||||
#include<hgl/graph/VK.h>
|
||||
#include<hgl/graph/VKPipelineData.h>
|
||||
#include<hgl/graph/VKInlinePipeline.h>
|
||||
#include<hgl/io/DataOutputStream.h>
|
||||
VK_NAMESPACE_BEGIN
|
||||
class Pipeline
|
||||
{
|
||||
VkDevice device;
|
||||
VkPipeline pipeline;
|
||||
PipelineData *data;
|
||||
|
||||
bool alpha_test;
|
||||
bool alpha_blend;
|
||||
|
||||
public:
|
||||
|
||||
Pipeline(VkDevice dev,VkPipeline p,PipelineData *pd):device(dev),pipeline(p),data(pd){}
|
||||
virtual ~Pipeline();
|
||||
|
||||
operator VkPipeline(){return pipeline;}
|
||||
|
||||
const PipelineData *GetData()const{return data;}
|
||||
|
||||
const bool IsAlphaTest()const{return data->alpha_test>0;}
|
||||
const bool IsAlphaBlend()const{return data->alpha_blend;}
|
||||
};//class GraphicsPipeline
|
||||
VK_NAMESPACE_END
|
||||
#endif//HGL_GRAPH_VULKAN_PIPELINE_INCLUDE
|
||||
|
Reference in New Issue
Block a user