forked from Dynamitos/Seele
Descriptor sets and refactoring
This commit is contained in:
1 parent
efb2c0e169
commit
f5eb12a5de
31 files changed
+1688
-1365
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user