[core] add gfx::UploadPass, split startRender into prepare and upload

This commit is contained in:
Konstantin Käfer
2019-05-13 17:13:31 -07:00
parent bf0998697e
commit 3a6ff7710f
90 changed files with 944 additions and 536 deletions

View File

@@ -23,6 +23,7 @@ protected:
Renderable(const Size size_, std::unique_ptr<RenderableResource> resource_)
: size(size_), resource(std::move(resource_)) {
}
virtual ~Renderable() = default;
public:
Size getSize() const {
@@ -35,6 +36,8 @@ public:
return static_cast<T&>(*resource);
}
virtual void wait() {}
protected:
Size size;
std::unique_ptr<RenderableResource> resource;