metal: initial vertex attribute support for pipelines

Also hook up samplers
This commit is contained in:
Alex Szpakowski
2020-05-03 17:14:54 -03:00
parent 9765485222
commit de041ded0e
4 changed files with 108 additions and 15 deletions
+3
View File
@@ -46,8 +46,11 @@ public:
ptrdiff_t getHandle() const override { return (ptrdiff_t) texture; }
ptrdiff_t getRenderTargetHandle() const override { return msaaTexture != nil ? (ptrdiff_t) msaaTexture : (ptrdiff_t) texture; }
int getMSAA() const override { return 1 /* TODO*/; }
id<MTLSamplerState> getMTLSampler() const { return sampler; }
private:
void uploadByteData(PixelFormat pixelformat, const void *data, size_t size, int level, int slice, const Rect &r, love::image::ImageDataBase *imgd = nullptr) override;