Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/gpu/GPU_viewport.h')
-rw-r--r--source/blender/gpu/GPU_viewport.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/source/blender/gpu/GPU_viewport.h b/source/blender/gpu/GPU_viewport.h
index 8bc7bdb6df2..36e1eea5d61 100644
--- a/source/blender/gpu/GPU_viewport.h
+++ b/source/blender/gpu/GPU_viewport.h
@@ -41,26 +41,21 @@
typedef struct GPUViewport GPUViewport;
-#define MAX_BUFFERS 8
-#define MAX_TEXTURES 16
-#define MAX_PASSES 16
-#define MAX_STORAGE 9 /* extend if needed */
-
/* All FramebufferLists are just the same pointers with different names */
typedef struct FramebufferList {
- struct GPUFrameBuffer *framebuffers[MAX_BUFFERS];
+ struct GPUFrameBuffer *framebuffers[0];
} FramebufferList;
typedef struct TextureList {
- struct GPUTexture *textures[MAX_TEXTURES];
+ struct GPUTexture *textures[0];
} TextureList;
typedef struct PassList {
- struct DRWPass *passes[MAX_PASSES];
+ struct DRWPass *passes[0];
} PassList;
typedef struct StorageList {
- void *storage[MAX_STORAGE]; /* custom structs from the engine */
+ void *storage[0]; /* custom structs from the engine */
} StorageList;
typedef struct ViewportEngineData {
@@ -78,6 +73,13 @@ typedef struct ViewportEngineData {
double background_time;
} ViewportEngineData;
+typedef struct ViewportEngineData_Info {
+ int fbl_len;
+ int txl_len;
+ int psl_len;
+ int stl_len;
+} ViewportEngineData_Info;
+
GPUViewport *GPU_viewport_create(void);
void GPU_viewport_bind(GPUViewport *viewport, const rcti *rect);
void GPU_viewport_unbind(GPUViewport *viewport);