Fixing some descriptor binding stuff, made it work

This commit is contained in:
Dynamitos committed 2024-05-18 21:23:59 +02:00
1 parent 60d2164987
commit 838bd69fa7
18 files changed
+171 -174

No files matched your search

+16 -1
View File
@@ -85,10 +85,25 @@ protected:
};
DEFINE_REF(CommandBoundResource)
class SamplerHandle : public CommandBoundResource
{
public:
SamplerHandle(PGraphics graphics, VkSamplerCreateInfo createInfo);
virtual ~SamplerHandle();
VkSampler sampler;
};
DEFINE_REF(SamplerHandle)
class Sampler : public Gfx::Sampler
{
public:
VkSampler sampler;
Sampler(PGraphics graphics, VkSamplerCreateInfo createInfo);
virtual ~Sampler();
PSamplerHandle getHandle() const { return handle; }
VkSampler getSampler() const { return handle->sampler; }
private:
PGraphics graphics;
OSamplerHandle handle;
};
DEFINE_REF(Sampler)