Blender
V3.3
|
Go to the source code of this file.
GPUTexture* DRW_texture_create_1d | ( | int | w, |
eGPUTextureFormat | format, | ||
DRWTextureFlag | flags, | ||
const float * | fpixels | ||
) |
Definition at line 67 of file draw_manager_texture.c.
References DRW_TEX_MIPMAP, drw_texture_set_parameters(), GPU_texture_create_1d(), tex, and w().
GPUTexture* DRW_texture_create_2d | ( | int | w, |
int | h, | ||
eGPUTextureFormat | format, | ||
DRWTextureFlag | flags, | ||
const float * | fpixels | ||
) |
Definition at line 79 of file draw_manager_texture.c.
References DRW_TEX_MIPMAP, drw_texture_set_parameters(), GPU_texture_create_2d(), tex, and w().
Referenced by create_jitter_texture(), DRW_texture_ensure_2d(), DRW_texture_ensure_fullscreen_2d(), eevee_init_noise_texture(), EEVEE_lut_update_ggx_brdf(), EEVEE_occlusion_init(), GPENCIL_engine_init(), GPENCIL_render_init(), OVERLAY_antialiasing_init(), and workbench_engine_init().
GPUTexture* DRW_texture_create_2d_array | ( | int | w, |
int | h, | ||
int | d, | ||
eGPUTextureFormat | format, | ||
DRWTextureFlag | flags, | ||
const float * | fpixels | ||
) |
Definition at line 89 of file draw_manager_texture.c.
References DRW_TEX_MIPMAP, drw_texture_set_parameters(), GPU_texture_create_2d_array(), tex, and w().
Referenced by eevee_init_util_texture(), eevee_lightbake_copy_irradiance(), eevee_lightbake_create_resources(), EEVEE_lightcache_create(), EEVEE_lightprobes_init(), EEVEE_lut_update_ggx_btdf(), EEVEE_shadows_update(), and planar_pool_ensure_alloc().
GPUTexture* DRW_texture_create_3d | ( | int | w, |
int | h, | ||
int | d, | ||
eGPUTextureFormat | format, | ||
DRWTextureFlag | flags, | ||
const float * | fpixels | ||
) |
Definition at line 99 of file draw_manager_texture.c.
References DRW_TEX_MIPMAP, drw_texture_set_parameters(), GPU_DATA_FLOAT, GPU_texture_create_3d(), tex, and w().
Referenced by EEVEE_volumes_draw_init(), and EEVEE_volumes_init().
GPUTexture* DRW_texture_create_cube | ( | int | w, |
eGPUTextureFormat | format, | ||
DRWTextureFlag | flags, | ||
const float * | fpixels | ||
) |
Definition at line 110 of file draw_manager_texture.c.
References DRW_TEX_MIPMAP, drw_texture_set_parameters(), GPU_texture_create_cube(), tex, and w().
Referenced by eevee_lightbake_create_render_target().
GPUTexture* DRW_texture_create_cube_array | ( | int | w, |
int | d, | ||
eGPUTextureFormat | format, | ||
DRWTextureFlag | flags, | ||
const float * | fpixels | ||
) |
Definition at line 121 of file draw_manager_texture.c.
References DRW_TEX_MIPMAP, drw_texture_set_parameters(), GPU_texture_create_cube_array(), tex, and w().
Referenced by EEVEE_lightcache_create().
void DRW_texture_ensure_2d | ( | GPUTexture ** | tex, |
int | w, | ||
int | h, | ||
eGPUTextureFormat | format, | ||
DRWTextureFlag | flags | ||
) |
Definition at line 158 of file draw_manager_texture.c.
References DRW_texture_create_2d(), NULL, tex, and w().
Referenced by EEVEE_effects_init(), GPENCIL_cache_init(), and workbench_dof_engine_init().
void DRW_texture_ensure_fullscreen_2d | ( | GPUTexture ** | tex, |
eGPUTextureFormat | format, | ||
DRWTextureFlag | flags | ||
) |
Definition at line 148 of file draw_manager_texture.c.
References DRW_texture_create_2d(), DRW_viewport_size_get(), NULL, size(), and tex.
Referenced by EEVEE_bloom_output_init(), EEVEE_cryptomatte_output_init(), EEVEE_effects_init(), eevee_engine_init(), EEVEE_mist_output_init(), EEVEE_occlusion_output_init(), EEVEE_reflection_output_init(), EEVEE_render_init(), EEVEE_renderpasses_output_init(), EEVEE_shadow_output_init(), EEVEE_subsurface_output_init(), EEVEE_volumes_output_init(), external_cache_init(), material_renderpass_init(), OVERLAY_antialiasing_cache_finish(), OVERLAY_antialiasing_init(), OVERLAY_cache_finish(), OVERLAY_outline_init(), IMAGE_InstanceData::update_gpu_texture_allocations(), workbench_antialiasing_engine_init(), and workbench_cache_finish().
|
static |
Definition at line 13 of file draw_manager_texture.c.
References GPU_DEPTH24_STENCIL8, GPU_DEPTH_COMPONENT16, GPU_DEPTH_COMPONENT24, GPU_DEPTH_COMPONENT32F, GPU_R11F_G11F_B10F, GPU_R16, GPU_R16F, GPU_R16I, GPU_R16UI, GPU_R32F, GPU_R32UI, GPU_R8, GPU_R8UI, GPU_RG16, GPU_RG16F, GPU_RG16I, GPU_RG32F, GPU_RG8, GPU_RGB10_A2, GPU_RGBA16, GPU_RGBA16F, GPU_RGBA32F, and GPU_RGBA8.
Referenced by DRW_texture_pool_query_2d().
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().
void DRW_texture_generate_mipmaps | ( | GPUTexture * | tex | ) |
Definition at line 166 of file draw_manager_texture.c.
References GPU_texture_generate_mipmap(), and tex.
GPUTexture* DRW_texture_pool_query_2d | ( | int | w, |
int | h, | ||
eGPUTextureFormat | format, | ||
DrawEngineType * | engine_type | ||
) |
Textures from DRW_texture_pool_query_*
have the options DRW_TEX_FILTER for color float textures, and no options for depth textures and integer textures.
Definition at line 130 of file draw_manager_texture.c.
References BLI_assert, drw_texture_format_supports_framebuffer(), DRW_texture_pool_query(), DST, tex, DRWData::texture_pool, DRWManager::vmempool, and w().
Referenced by blender::draw::TextureFromPool::acquire(), dof_bokeh_pass_init(), dof_dilate_tiles_pass_init(), dof_flatten_tiles_pass_init(), dof_gather_pass_init(), dof_reduce_pass_init(), dof_setup_pass_init(), DRW_curves_update(), DRW_hair_update(), DRW_texture_pool_query_fullscreen(), EEVEE_bloom_init(), EEVEE_effects_init(), EEVEE_motion_blur_init(), EEVEE_occlusion_init(), EEVEE_screen_raytrace_init(), EEVEE_subsurface_draw_init(), GPENCIL_antialiasing_init(), GPENCIL_cache_finish(), and workbench_dof_engine_init().
GPUTexture* DRW_texture_pool_query_fullscreen | ( | eGPUTextureFormat | format, |
DrawEngineType * | engine_type | ||
) |
Definition at line 141 of file draw_manager_texture.c.
References DRW_texture_pool_query_2d(), DRW_viewport_size_get(), and size().
Referenced by workbench_antialiasing_engine_init(), workbench_engine_init(), workbench_opaque_engine_init(), and workbench_transparent_engine_init().
void drw_texture_set_parameters | ( | GPUTexture * | tex, |
DRWTextureFlag | flags | ||
) |
Definition at line 49 of file draw_manager_texture.c.
References DRW_TEX_COMPARE, DRW_TEX_FILTER, DRW_TEX_MIPMAP, DRW_TEX_WRAP, GPU_texture_anisotropic_filter(), GPU_texture_compare_mode(), GPU_texture_filter_mode(), GPU_texture_generate_mipmap(), GPU_texture_mipmap_mode(), GPU_texture_wrap_mode(), NULL, and tex.
Referenced by DRW_texture_create_1d(), DRW_texture_create_2d(), DRW_texture_create_2d_array(), DRW_texture_create_3d(), DRW_texture_create_cube(), and DRW_texture_create_cube_array().