Blender  V2.93
Functions
util_gpu.c File Reference
#include "imbuf.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "MEM_guardedalloc.h"
#include "BKE_global.h"
#include "GPU_capabilities.h"
#include "GPU_texture.h"
#include "IMB_colormanagement.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"

Go to the source code of this file.

Functions

static void imb_gpu_get_format (const ImBuf *ibuf, bool high_bitdepth, eGPUDataFormat *r_data_format, eGPUTextureFormat *r_texture_format)
 
static void * imb_gpu_get_data (const ImBuf *ibuf, const bool do_rescale, const int rescale_size[2], const bool compress_as_srgb, const bool store_premultiplied, bool *r_freedata)
 
GPUTextureIMB_touch_gpu_texture (const char *name, ImBuf *ibuf, int w, int h, int layers, bool use_high_bitdepth)
 
void IMB_update_gpu_texture_sub (GPUTexture *tex, ImBuf *ibuf, int x, int y, int z, int w, int h, bool use_high_bitdepth, bool use_premult)
 
GPUTextureIMB_create_gpu_texture (const char *name, ImBuf *ibuf, bool use_high_bitdepth, bool use_premult, bool limit_gl_texture_size)
 

Function Documentation

◆ IMB_create_gpu_texture()

GPUTexture* IMB_create_gpu_texture ( const char *  name,
struct ImBuf ibuf,
bool  use_high_bitdepth,
bool  use_premult,
bool  limit_gl_texture_size 
)

◆ imb_gpu_get_data()

static void* imb_gpu_get_data ( const ImBuf ibuf,
const bool  do_rescale,
const int  rescale_size[2],
const bool  compress_as_srgb,
const bool  store_premultiplied,
bool *  r_freedata 
)
static

◆ imb_gpu_get_format()

static void imb_gpu_get_format ( const ImBuf ibuf,
bool  high_bitdepth,
eGPUDataFormat r_data_format,
eGPUTextureFormat r_texture_format 
)
static

◆ IMB_touch_gpu_texture()

GPUTexture* IMB_touch_gpu_texture ( const char *  name,
ImBuf ibuf,
int  w,
int  h,
int  layers,
bool  use_high_bitdepth 
)

◆ IMB_update_gpu_texture_sub()

void IMB_update_gpu_texture_sub ( GPUTexture tex,
ImBuf ibuf,
int  x,
int  y,
int  z,
int  w,
int  h,
bool  use_high_bitdepth,
bool  use_premult 
)