8 #ifndef hifi_gpu_Null_Backend_h
9 #define hifi_gpu_Null_Backend_h
19 #include <QtCore/QLoggingCategory>
21 #include "../Context.h"
23 namespace gpu {
namespace null {
25 class Backend :
public gpu::Backend {
26 using Parent = gpu::Backend;
28 friend class gpu::Context;
30 static gpu::Backend* createBackend() {
return new Backend(); }
33 explicit Backend(
bool syncCache) : Parent() { }
34 Backend() : Parent() { }
38 void render(
const Batch& batch)
final { }
44 void syncCache() final { }
46 void syncProgram(
const gpu::ShaderPointer& program)
final {}
50 virtual void downloadFramebuffer(
const FramebufferPointer& srcFramebuffer,
const Vec4i& region, QImage& destImage)
final { }