diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-02-09 01:19:31 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-03-18 22:49:45 +0300 |
commit | 8c93f8c6cc9c7300a150118d8a29f98b1ba7bbdd (patch) | |
tree | ec7aa41774b2df29d5a46bc3fb1b52aaed83f63f /source/blender/gpu | |
parent | bacfd55a0e4ca5a59ee46824c500992a3dddc6b6 (diff) |
DRW: Add support for GPUStorageBuf
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/intern/gpu_backend.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_backend.hh b/source/blender/gpu/intern/gpu_backend.hh index 2b6e485f152..56d7c3b4e46 100644 --- a/source/blender/gpu/intern/gpu_backend.hh +++ b/source/blender/gpu/intern/gpu_backend.hh @@ -9,6 +9,8 @@ #pragma once +#include "GPU_vertex_buffer.h" + namespace blender { namespace gpu { @@ -22,6 +24,7 @@ class QueryPool; class Shader; class Texture; class UniformBuf; +class StorageBuf; class VertBuf; class GPUBackend { @@ -43,6 +46,7 @@ class GPUBackend { virtual Shader *shader_alloc(const char *name) = 0; virtual Texture *texture_alloc(const char *name) = 0; virtual UniformBuf *uniformbuf_alloc(int size, const char *name) = 0; + virtual StorageBuf *storagebuf_alloc(int size, GPUUsageType usage, const char *name) = 0; virtual VertBuf *vertbuf_alloc() = 0; }; |