Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_backend.hh
| Show All 31 Lines | |||||
| class Batch; | class Batch; | ||||
| class DrawList; | class DrawList; | ||||
| class FrameBuffer; | class FrameBuffer; | ||||
| class IndexBuf; | class IndexBuf; | ||||
| class Shader; | class Shader; | ||||
| class Texture; | class Texture; | ||||
| class UniformBuf; | class UniformBuf; | ||||
| class VertBuf; | |||||
| class GPUBackend { | class GPUBackend { | ||||
| public: | public: | ||||
| virtual ~GPUBackend(){}; | virtual ~GPUBackend(){}; | ||||
| static GPUBackend *get(void); | static GPUBackend *get(void); | ||||
| virtual void samplers_update(void) = 0; | virtual void samplers_update(void) = 0; | ||||
| virtual GPUContext *context_alloc(void *ghost_window) = 0; | virtual GPUContext *context_alloc(void *ghost_window) = 0; | ||||
| virtual Batch *batch_alloc(void) = 0; | virtual Batch *batch_alloc(void) = 0; | ||||
| virtual DrawList *drawlist_alloc(int list_length) = 0; | virtual DrawList *drawlist_alloc(int list_length) = 0; | ||||
| virtual FrameBuffer *framebuffer_alloc(const char *name) = 0; | virtual FrameBuffer *framebuffer_alloc(const char *name) = 0; | ||||
| virtual IndexBuf *indexbuf_alloc(void) = 0; | virtual IndexBuf *indexbuf_alloc(void) = 0; | ||||
| virtual Shader *shader_alloc(const char *name) = 0; | virtual Shader *shader_alloc(const char *name) = 0; | ||||
| virtual Texture *texture_alloc(const char *name) = 0; | virtual Texture *texture_alloc(const char *name) = 0; | ||||
| virtual UniformBuf *uniformbuf_alloc(int size, const char *name) = 0; | virtual UniformBuf *uniformbuf_alloc(int size, const char *name) = 0; | ||||
| virtual VertBuf *vertbuf_alloc(void) = 0; | |||||
| }; | }; | ||||
| } // namespace gpu | } // namespace gpu | ||||
| } // namespace blender | } // namespace blender | ||||