ULRE/inc/hgl/graph/VKSampler.h

32 lines
534 B
C
Raw Normal View History

2019-05-18 16:10:42 +08:00
#ifndef HGL_GRAPH_VULKAN_SAMPLER_INCLUDE
#define HGL_GRAPH_VULKAN_SAMPLER_INCLUDE
#include<hgl/graph/VK.h>
2019-05-18 16:10:42 +08:00
VK_NAMESPACE_BEGIN
class Device;
class Sampler
{
VkDevice device;
VkSampler sampler;
protected:
2020-10-21 12:39:22 +08:00
friend class GPUDevice;
2019-05-18 16:10:42 +08:00
Sampler(VkDevice dev,VkSampler s)
{
device=dev;
sampler=s;
}
public:
~Sampler();
operator VkSampler(){return sampler;}
operator const VkSampler()const{return sampler;}
};//class Sampler
VK_NAMESPACE_END
#endif//HGL_GRAPH_VULKAN_SAMPLER_INCLUDE