0
0
Fork 0
mirror of https://github.com/DrBeef/Raze.git synced 2024-12-15 15:11:01 +00:00
raze/source/common/rendering/vulkan/textures/vk_samplers.h
2020-06-07 15:02:54 +02:00

32 lines
504 B
C++

#ifndef __VK_SAMPLERS_H
#define __VK_SAMPLERS_H
#include "vulkan/system/vk_objects.h"
class VulkanDevice;
class VkSamplerManager
{
VulkanDevice *vDevice;
std::unique_ptr<VulkanSampler> mSamplers[NUMSAMPLERS];
//void UnbindAll();
void Create();
void Destroy();
public:
VkSamplerManager(VulkanDevice *dev);
~VkSamplerManager();
//uint8_t Bind(int texunit, int num, int lastval);
void SetTextureFilterMode();
VulkanSampler *Get(int no) const { return mSamplers[no].get(); }
};
#endif