Descriptor sets and refactoring

This commit is contained in:
Dynamitos committed 2024-04-13 23:51:38 +02:00
1 parent efb2c0e169
commit f5eb12a5de
31 files changed
+1688 -1365

No files matched your search

+14
View File
@@ -1,5 +1,6 @@
#pragma once
#include "Graphics/Resources.h"
#include "Metal/MTLSampler.hpp"
#include <Foundation/Foundation.hpp>
#include <Metal/Metal.hpp>
#include <QuartzCore/CAMetalLayer.h>
@@ -29,5 +30,18 @@ private:
MTL::Event *handle;
};
DEFINE_REF(Event)
class Sampler : public Gfx::Sampler
{
public:
Sampler(PGraphics graphics, const SamplerCreateInfo& createInfo);
virtual ~Sampler();
MTL::SamplerState* getHandle() const
{
return sampler;
}
private:
MTL::SamplerState* sampler;
};
DEFINE_REF(Sampler)
} // namespace Metal
} // namespace Seele