move VK source files to up-level folder
This commit is contained in:
34
inc/hgl/graph/VKMaterialInstance.h
Normal file
34
inc/hgl/graph/VKMaterialInstance.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#ifndef HGL_GRAPH_VULKAN_MATERIAL_INSTANCE_INCLUDE
|
||||
#define HGL_GRAPH_VULKAN_MATERIAL_INSTANCE_INCLUDE
|
||||
|
||||
#include<hgl/graph/VK.h>
|
||||
#include<hgl/type/String.h>
|
||||
VK_NAMESPACE_BEGIN
|
||||
class MaterialInstance
|
||||
{
|
||||
Material *material;
|
||||
|
||||
DescriptorSets *descriptor_sets;
|
||||
|
||||
private:
|
||||
|
||||
friend class Material;
|
||||
|
||||
MaterialInstance(Material *,DescriptorSets *);
|
||||
|
||||
public:
|
||||
|
||||
Material * GetMaterial (){return material;}
|
||||
DescriptorSets *GetDescriptorSets (){return descriptor_sets;}
|
||||
|
||||
public:
|
||||
|
||||
~MaterialInstance();
|
||||
|
||||
bool BindUBO(const AnsiString &name,vulkan::Buffer *ubo);
|
||||
bool BindSampler(const AnsiString &name,Texture *tex,Sampler *sampler);
|
||||
|
||||
void Update();
|
||||
};//class MaterialInstance
|
||||
VK_NAMESPACE_END
|
||||
#endif//HGL_GRAPH_VULKAN_MATERIAL_INSTANCE_INCLUDE
|
Reference in New Issue
Block a user