Blender  V3.3
Functions
draw_manager_texture.c File Reference
#include "draw_manager.h"
#include "draw_texture_pool.h"

Go to the source code of this file.

Functions

static bool drw_texture_format_supports_framebuffer (eGPUTextureFormat format)
 
void drw_texture_set_parameters (GPUTexture *tex, DRWTextureFlag flags)
 
GPUTextureDRW_texture_create_1d (int w, eGPUTextureFormat format, DRWTextureFlag flags, const float *fpixels)
 
GPUTextureDRW_texture_create_2d (int w, int h, eGPUTextureFormat format, DRWTextureFlag flags, const float *fpixels)
 
GPUTextureDRW_texture_create_2d_array (int w, int h, int d, eGPUTextureFormat format, DRWTextureFlag flags, const float *fpixels)
 
GPUTextureDRW_texture_create_3d (int w, int h, int d, eGPUTextureFormat format, DRWTextureFlag flags, const float *fpixels)
 
GPUTextureDRW_texture_create_cube (int w, eGPUTextureFormat format, DRWTextureFlag flags, const float *fpixels)
 
GPUTextureDRW_texture_create_cube_array (int w, int d, eGPUTextureFormat format, DRWTextureFlag flags, const float *fpixels)
 
GPUTextureDRW_texture_pool_query_2d (int w, int h, eGPUTextureFormat format, DrawEngineType *engine_type)
 
GPUTextureDRW_texture_pool_query_fullscreen (eGPUTextureFormat format, DrawEngineType *engine_type)
 
void DRW_texture_ensure_fullscreen_2d (GPUTexture **tex, eGPUTextureFormat format, DRWTextureFlag flags)
 
void DRW_texture_ensure_2d (GPUTexture **tex, int w, int h, eGPUTextureFormat format, DRWTextureFlag flags)
 
void DRW_texture_generate_mipmaps (GPUTexture *tex)
 
void DRW_texture_free (GPUTexture *tex)
 

Function Documentation

◆ DRW_texture_create_1d()

GPUTexture* DRW_texture_create_1d ( int  w,
eGPUTextureFormat  format,
DRWTextureFlag  flags,
const float fpixels 
)

◆ DRW_texture_create_2d()

GPUTexture* DRW_texture_create_2d ( int  w,
int  h,
eGPUTextureFormat  format,
DRWTextureFlag  flags,
const float fpixels 
)

◆ DRW_texture_create_2d_array()

GPUTexture* DRW_texture_create_2d_array ( int  w,
int  h,
int  d,
eGPUTextureFormat  format,
DRWTextureFlag  flags,
const float fpixels 
)

◆ DRW_texture_create_3d()

GPUTexture* DRW_texture_create_3d ( int  w,
int  h,
int  d,
eGPUTextureFormat  format,
DRWTextureFlag  flags,
const float fpixels 
)

◆ DRW_texture_create_cube()

GPUTexture* DRW_texture_create_cube ( int  w,
eGPUTextureFormat  format,
DRWTextureFlag  flags,
const float fpixels 
)

◆ DRW_texture_create_cube_array()

GPUTexture* DRW_texture_create_cube_array ( int  w,
int  d,
eGPUTextureFormat  format,
DRWTextureFlag  flags,
const float fpixels 
)

◆ DRW_texture_ensure_2d()

void DRW_texture_ensure_2d ( GPUTexture **  tex,
int  w,
int  h,
eGPUTextureFormat  format,
DRWTextureFlag  flags 
)

◆ DRW_texture_ensure_fullscreen_2d()

void DRW_texture_ensure_fullscreen_2d ( GPUTexture **  tex,
eGPUTextureFormat  format,
DRWTextureFlag  flags 
)

◆ drw_texture_format_supports_framebuffer()

static bool drw_texture_format_supports_framebuffer ( eGPUTextureFormat  format)
static

◆ DRW_texture_free()

void DRW_texture_free ( GPUTexture tex)

Definition at line 171 of file draw_manager_texture.c.

References GPU_texture_free(), and tex.

Referenced by EEVEE_motion_hair_step_free().

◆ DRW_texture_generate_mipmaps()

void DRW_texture_generate_mipmaps ( GPUTexture tex)

Definition at line 166 of file draw_manager_texture.c.

References GPU_texture_generate_mipmap(), and tex.

◆ DRW_texture_pool_query_2d()

GPUTexture* DRW_texture_pool_query_2d ( int  w,
int  h,
eGPUTextureFormat  format,
DrawEngineType engine_type 
)

◆ DRW_texture_pool_query_fullscreen()

GPUTexture* DRW_texture_pool_query_fullscreen ( eGPUTextureFormat  format,
DrawEngineType engine_type 
)

◆ drw_texture_set_parameters()

void drw_texture_set_parameters ( GPUTexture tex,
DRWTextureFlag  flags 
)