GPUContext * GPU_context_active_get()
int GPU_texture_height(const blender::gpu::Texture *texture)
blender::gpu::TextureFormat GPU_texture_format(const blender::gpu::Texture *texture)
int GPU_texture_width(const blender::gpu::Texture *texture)
eGPUTextureUsage GPU_texture_usage(const blender::gpu::Texture *texture)
blender::gpu::Texture * GPU_texture_create_2d(const char *name, int width, int height, int mip_len, blender::gpu::TextureFormat format, eGPUTextureUsage usage, const float *data)
void GPU_texture_free(blender::gpu::Texture *texture)
TexturePool * texture_pool
void reset(bool force_free=false)
blender::gpu::Texture * acquire_texture(int width, int height, blender::gpu::TextureFormat format, eGPUTextureUsage usage)
void give_texture_ownership(blender::gpu::Texture *tex)
void take_texture_ownership(blender::gpu::Texture *tex)
static TexturePool & get()
void release_texture(blender::gpu::Texture *tmp_tex)