Blender V5.3
BKE_image_gpu.hh File Reference
#include <cstdint>

Go to the source code of this file.

Classes

struct  blender::ImageGPUTextures

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::gpu

Functions

int64_t blender::BKE_image_partial_update_flush (Image *ima, const ImageUser *iuser)
Get GPU texture from Image
gpu::Texture * blender::BKE_image_acquire_gpu_texture (Image *image, ImageUser *iuser)
gpu::Texture * blender::BKE_image_acquire_gpu_viewer_texture (Image *image, ImageUser *iuser, bool only_full_resolution=false)
void blender::BKE_image_assign_gpu_texture (Image *image, gpu::Texture *texture)
Material textures
ImageGPUTextures blender::BKE_image_acquire_gpu_material_texture (Image *image, ImageUser *iuser, const bool use_tile_mapping, const bool try_only)
bool blender::BKE_image_has_gpu_material_texture (Image *image, ImageUser *iuser, const bool use_tile_mapping)
void blender::BKE_image_ensure_gpu_material_texture (Image *image, ImageUser *iuser, const bool use_tile_mapping)
Query State
bool blender::BKE_image_has_gpu_texture_premultiplied_alpha (Image *image, ImBuf *ibuf)
bool blender::BKE_image_has_gpu_texture (Image *ima)
Error handling
void blender::BKE_image_free_gpu_fallback ()
Deletion
void blender::BKE_image_free_gpu_texture_caches (Image *ima)
void blender::BKE_image_free_gpu_udim_textures (Image *ima)
void blender::BKE_image_free_all_gpu_texture_caches (Main *bmain)
void blender::BKE_image_free_anim_gpu_texture_caches (Main *bmain)

Detailed Description

GPU texture API for Image. Splits the GPU-side concerns (texture lifecycle, material/viewer/2D texture retrieval, GC) off #BKE_image.hh so non-GPU consumers don't pull GPU declarations in.

Definition in file BKE_image_gpu.hh.