|
Blender V4.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 82 of file draw_manager_texture.cc.
References DRW_texture_create_1d_ex(), GPU_TEXTURE_USAGE_GENERAL, and w().
| GPUTexture * DRW_texture_create_1d_ex | ( | int | w, |
| eGPUTextureFormat | format, | ||
| eGPUTextureUsage | usage, | ||
| DRWTextureFlag | flags, | ||
| const float * | fpixels ) |
Definition at line 69 of file draw_manager_texture.cc.
References DRW_TEX_MIPMAP, drw_texture_set_parameters(), GPU_texture_create_1d(), tex, and w().
Referenced by DRW_texture_create_1d().
| GPUTexture * DRW_texture_create_2d | ( | int | w, |
| int | h, | ||
| eGPUTextureFormat | format, | ||
| DRWTextureFlag | flags, | ||
| const float * | fpixels ) |
Definition at line 104 of file draw_manager_texture.cc.
References DRW_texture_create_2d_ex(), GPU_TEXTURE_USAGE_GENERAL, and w().
Referenced by GPENCIL_engine_init(), GPENCIL_render_init(), and OVERLAY_antialiasing_init().
| GPUTexture * DRW_texture_create_2d_array | ( | int | w, |
| int | h, | ||
| int | d, | ||
| eGPUTextureFormat | format, | ||
| DRWTextureFlag | flags, | ||
| const float * | fpixels ) |
Definition at line 126 of file draw_manager_texture.cc.
References DRW_texture_create_2d_array_ex(), GPU_TEXTURE_USAGE_GENERAL, and w().
| GPUTexture * DRW_texture_create_2d_array_ex | ( | int | w, |
| int | h, | ||
| int | d, | ||
| eGPUTextureFormat | format, | ||
| eGPUTextureUsage | usage, | ||
| DRWTextureFlag | flags, | ||
| const float * | fpixels ) |
Definition at line 110 of file draw_manager_texture.cc.
References DRW_TEX_MIPMAP, drw_texture_set_parameters(), GPU_texture_create_2d_array(), tex, and w().
Referenced by DRW_texture_create_2d_array().
| GPUTexture * DRW_texture_create_2d_ex | ( | int | w, |
| int | h, | ||
| eGPUTextureFormat | format, | ||
| eGPUTextureUsage | usage, | ||
| DRWTextureFlag | flags, | ||
| const float * | fpixels ) |
Definition at line 90 of file draw_manager_texture.cc.
References DRW_TEX_MIPMAP, drw_texture_set_parameters(), GPU_texture_create_2d(), tex, and w().
Referenced by DRW_texture_create_2d(), DRW_texture_ensure_2d_ex(), DRW_texture_ensure_fullscreen_2d_ex(), and blender::draw::image_engine::TextureInfo::ensure_gpu_texture().
| GPUTexture * DRW_texture_create_3d | ( | int | w, |
| int | h, | ||
| int | d, | ||
| eGPUTextureFormat | format, | ||
| DRWTextureFlag | flags, | ||
| const float * | fpixels ) |
Definition at line 148 of file draw_manager_texture.cc.
References DRW_texture_create_3d_ex(), GPU_TEXTURE_USAGE_GENERAL, and w().
| GPUTexture * DRW_texture_create_3d_ex | ( | int | w, |
| int | h, | ||
| int | d, | ||
| eGPUTextureFormat | format, | ||
| eGPUTextureUsage | usage, | ||
| DRWTextureFlag | flags, | ||
| const float * | fpixels ) |
Definition at line 133 of file draw_manager_texture.cc.
References DRW_TEX_MIPMAP, drw_texture_set_parameters(), GPU_texture_create_3d(), tex, and w().
Referenced by DRW_texture_create_3d().
| GPUTexture * DRW_texture_create_cube | ( | int | w, |
| eGPUTextureFormat | format, | ||
| DRWTextureFlag | flags, | ||
| const float * | fpixels ) |
Definition at line 166 of file draw_manager_texture.cc.
References DRW_texture_create_cube_ex(), GPU_TEXTURE_USAGE_GENERAL, and w().
| GPUTexture * DRW_texture_create_cube_array | ( | int | w, |
| int | d, | ||
| eGPUTextureFormat | format, | ||
| DRWTextureFlag | flags, | ||
| const float * | fpixels ) |
Definition at line 187 of file draw_manager_texture.cc.
References DRW_texture_create_cube_array_ex(), GPU_TEXTURE_USAGE_GENERAL, and w().
| GPUTexture * DRW_texture_create_cube_array_ex | ( | int | w, |
| int | d, | ||
| eGPUTextureFormat | format, | ||
| eGPUTextureUsage | usage, | ||
| DRWTextureFlag | flags, | ||
| const float * | fpixels ) |
Definition at line 174 of file draw_manager_texture.cc.
References DRW_TEX_MIPMAP, drw_texture_set_parameters(), GPU_texture_create_cube_array(), tex, and w().
Referenced by DRW_texture_create_cube_array().
| GPUTexture * DRW_texture_create_cube_ex | ( | int | w, |
| eGPUTextureFormat | format, | ||
| eGPUTextureUsage | usage, | ||
| DRWTextureFlag | flags, | ||
| const float * | fpixels ) |
Definition at line 154 of file draw_manager_texture.cc.
References DRW_TEX_MIPMAP, drw_texture_set_parameters(), GPU_texture_create_cube(), tex, and w().
Referenced by DRW_texture_create_cube().
| void DRW_texture_ensure_2d | ( | GPUTexture ** | tex, |
| int | w, | ||
| int | h, | ||
| eGPUTextureFormat | format, | ||
| DRWTextureFlag | flags ) |
Definition at line 255 of file draw_manager_texture.cc.
References DRW_texture_ensure_2d_ex(), GPU_TEXTURE_USAGE_GENERAL, tex, and w().
Referenced by GPENCIL_cache_init().
| void DRW_texture_ensure_2d_ex | ( | GPUTexture ** | tex, |
| int | w, | ||
| int | h, | ||
| eGPUTextureFormat | format, | ||
| eGPUTextureUsage | usage, | ||
| DRWTextureFlag | flags ) |
Definition at line 243 of file draw_manager_texture.cc.
References DRW_texture_create_2d_ex(), tex, and w().
Referenced by DRW_texture_ensure_2d().
| void DRW_texture_ensure_fullscreen_2d | ( | GPUTexture ** | tex, |
| eGPUTextureFormat | format, | ||
| DRWTextureFlag | flags ) |
Definition at line 236 of file draw_manager_texture.cc.
References DRW_texture_ensure_fullscreen_2d_ex(), GPU_TEXTURE_USAGE_GENERAL, and tex.
Referenced by blender::draw::overlay::Instance::end_sync(), external_cache_init(), OVERLAY_antialiasing_cache_finish(), OVERLAY_antialiasing_init(), OVERLAY_cache_finish(), and OVERLAY_outline_init().
| void DRW_texture_ensure_fullscreen_2d_ex | ( | GPUTexture ** | tex, |
| eGPUTextureFormat | format, | ||
| eGPUTextureUsage | usage, | ||
| DRWTextureFlag | flags ) |
Definition at line 225 of file draw_manager_texture.cc.
References DRW_texture_create_2d_ex(), DRW_viewport_size_get(), int, and tex.
Referenced by DRW_texture_ensure_fullscreen_2d().
|
static |
Definition at line 14 of file draw_manager_texture.cc.
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_ex().
| void DRW_texture_free | ( | GPUTexture * | tex | ) |
Definition at line 266 of file draw_manager_texture.cc.
References GPU_texture_free(), and tex.
| void DRW_texture_generate_mipmaps | ( | GPUTexture * | tex | ) |
Definition at line 261 of file draw_manager_texture.cc.
References GPU_texture_update_mipmap_chain(), 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 203 of file draw_manager_texture.cc.
References DRW_texture_pool_query_2d_ex(), GPU_TEXTURE_USAGE_GENERAL, and w().
Referenced by blender::draw::compositor::TexturePool::allocate_texture(), and GPENCIL_cache_finish().
| GPUTexture * DRW_texture_pool_query_2d_ex | ( | int | w, |
| int | h, | ||
| eGPUTextureFormat | format, | ||
| eGPUTextureUsage | usage, | ||
| DrawEngineType * | engine_type ) |
Definition at line 193 of file draw_manager_texture.cc.
References BLI_assert, drw_texture_format_supports_framebuffer(), DRW_texture_pool_query(), DST, tex, DRWData::texture_pool, DRWManager::vmempool, and w().
Referenced by DRW_texture_pool_query_2d(), DRW_texture_pool_query_fullscreen_ex(), and GPENCIL_antialiasing_init().
| GPUTexture * DRW_texture_pool_query_fullscreen | ( | eGPUTextureFormat | format, |
| DrawEngineType * | engine_type ) |
Definition at line 219 of file draw_manager_texture.cc.
References DRW_texture_pool_query_fullscreen_ex(), and GPU_TEXTURE_USAGE_GENERAL.
| GPUTexture * DRW_texture_pool_query_fullscreen_ex | ( | eGPUTextureFormat | format, |
| eGPUTextureUsage | usage, | ||
| DrawEngineType * | engine_type ) |
Definition at line 211 of file draw_manager_texture.cc.
References DRW_texture_pool_query_2d_ex(), and DRW_viewport_size_get().
Referenced by DRW_texture_pool_query_fullscreen().
| void drw_texture_set_parameters | ( | GPUTexture * | tex, |
| DRWTextureFlag | flags ) |
Definition at line 50 of file draw_manager_texture.cc.
References DRW_TEX_COMPARE, DRW_TEX_FILTER, DRW_TEX_MIPMAP, DRW_TEX_WRAP, GPU_SAMPLER_EXTEND_MODE_EXTEND, GPU_SAMPLER_EXTEND_MODE_REPEAT, GPU_texture_anisotropic_filter(), GPU_texture_compare_mode(), GPU_texture_extend_mode(), GPU_texture_filter_mode(), GPU_texture_mipmap_mode(), GPU_texture_update_mipmap_chain(), and tex.
Referenced by DRW_texture_create_1d_ex(), DRW_texture_create_2d_array_ex(), DRW_texture_create_2d_ex(), DRW_texture_create_3d_ex(), DRW_texture_create_cube_array_ex(), and DRW_texture_create_cube_ex().