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