Cycles: use GPU module for viewport display
To make GPU backends other than OpenGL work. Adds required pixel buffer and fence objects to GPU module. Authored by Apple: Michael Parkin-White Ref T96261 Ref T92212 Reviewed By: fclem, brecht Differential Revision: https://developer.blender.org/D16042
This commit is contained in:
@@ -18,8 +18,10 @@ class Context;
|
||||
|
||||
class Batch;
|
||||
class DrawList;
|
||||
class Fence;
|
||||
class FrameBuffer;
|
||||
class IndexBuf;
|
||||
class PixelBuffer;
|
||||
class QueryPool;
|
||||
class Shader;
|
||||
class Texture;
|
||||
@@ -42,8 +44,10 @@ class GPUBackend {
|
||||
|
||||
virtual Batch *batch_alloc() = 0;
|
||||
virtual DrawList *drawlist_alloc(int list_length) = 0;
|
||||
virtual Fence *fence_alloc() = 0;
|
||||
virtual FrameBuffer *framebuffer_alloc(const char *name) = 0;
|
||||
virtual IndexBuf *indexbuf_alloc() = 0;
|
||||
virtual PixelBuffer *pixelbuf_alloc(uint size) = 0;
|
||||
virtual QueryPool *querypool_alloc() = 0;
|
||||
virtual Shader *shader_alloc(const char *name) = 0;
|
||||
virtual Texture *texture_alloc(const char *name) = 0;
|
||||
|
||||
Reference in New Issue
Block a user