diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-05-31 19:34:17 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-05-31 20:09:20 +0300 |
commit | 494470ba232dafaaff771ac90f773c6771375b50 (patch) | |
tree | 709828108070cb596238d045080a081b4c1aa985 /source/blender/gpu/GPU_texture.h | |
parent | 8789490f961d9ddda1a2f2f6cb090c64a0ec5728 (diff) |
GPUTexture: Expose GPU_texture_create_buffer and add GL_R32I support.
Diffstat (limited to 'source/blender/gpu/GPU_texture.h')
-rw-r--r-- | source/blender/gpu/GPU_texture.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/gpu/GPU_texture.h b/source/blender/gpu/GPU_texture.h index cc66b5dbf9b..737b4a542c8 100644 --- a/source/blender/gpu/GPU_texture.h +++ b/source/blender/gpu/GPU_texture.h @@ -156,7 +156,10 @@ GPUTexture *GPU_texture_create_3D( int w, int h, int d, GPUTextureFormat data_type, const float *pixels, char err_out[256]); GPUTexture *GPU_texture_create_cube( int w, GPUTextureFormat data_type, const float *pixels, char err_out[256]); -GPUTexture *GPU_texture_create_from_vertbuf(struct Gwn_VertBuf *vert); +GPUTexture *GPU_texture_create_from_vertbuf( + struct Gwn_VertBuf *vert); +GPUTexture *GPU_texture_create_buffer( + GPUTextureFormat data_type, const uint buffer); GPUTexture *GPU_texture_from_blender( struct Image *ima, struct ImageUser *iuser, int textarget, bool is_data, double time, int mipmap); |