Blender
V3.3
|
#include <image_instance_data.hh>
Public Member Functions | |
virtual | ~IMAGE_InstanceData ()=default |
void | clear_dirty_flag () |
void | mark_all_texture_slots_dirty () |
void | update_gpu_texture_allocations () |
void | update_batches () |
void | update_image_usage (const ImageUser *image_user) |
Public Attributes | |
struct Image * | image |
ImageUsage | last_usage |
PartialImageUpdater | partial_update |
struct DRWView * | view |
ShaderParameters | sh_params |
struct { | |
bool do_tile_drawing: 1 | |
should we perform tiled drawing (wrap repeat). More... | |
} | flags |
struct { | |
DRWPass * image_pass | |
DRWPass * depth_pass | |
} | passes |
FloatBufferCache | float_buffers |
float | ss_to_texture [4][4] |
Transform matrix to convert a normalized screen space coordinates to texture space. More... | |
TextureInfo | texture_infos [SCREEN_SPACE_DRAWING_MODE_TEXTURE_LEN] |
Definition at line 27 of file image_instance_data.hh.
|
virtualdefault |
|
inline |
Definition at line 63 of file image_instance_data.hh.
Referenced by blender::draw::image_engine::ScreenSpaceDrawingMode< TextureMethod >::cache_image().
|
inline |
Definition at line 67 of file image_instance_data.hh.
|
inline |
Definition at line 96 of file image_instance_data.hh.
References TextureInfo::dirty, SCREEN_SPACE_DRAWING_MODE_TEXTURE_LEN, texture_infos, and BatchUpdater::update_batch().
Referenced by blender::draw::image_engine::ScreenSpaceDrawingMode< TextureMethod >::cache_image().
|
inline |
Definition at line 72 of file image_instance_data.hh.
References blender::assign_if_different(), TextureInfo::dirty, DRW_texture_ensure_fullscreen_2d(), DRW_viewport_size_get(), GPU_RGBA16F, GPU_texture_free(), TextureInfo::last_viewport_size, SCREEN_SPACE_DRAWING_MODE_TEXTURE_LEN, TextureInfo::texture, texture_infos, and TextureInfo::visible.
Referenced by blender::draw::image_engine::ScreenSpaceDrawingMode< TextureMethod >::cache_image().
Definition at line 108 of file image_instance_data.hh.
References FloatBufferCache::clear(), flags, float_buffers, image, and last_usage.
Referenced by blender::draw::image_engine::ScreenSpaceDrawingMode< TextureMethod >::cache_image().
DRWPass* IMAGE_InstanceData::depth_pass |
Definition at line 48 of file image_instance_data.hh.
Referenced by blender::draw::image_engine::ScreenSpaceDrawingMode< TextureMethod >::cache_init(), and blender::draw::image_engine::ScreenSpaceDrawingMode< TextureMethod >::draw_scene().
bool IMAGE_InstanceData::do_tile_drawing |
should we perform tiled drawing (wrap repeat).
Option is true when image is capable of tile drawing (image is not tile) and the tiled option is set in the space.
Definition at line 43 of file image_instance_data.hh.
Referenced by blender::draw::image_engine::ScreenSpaceDrawingMode< TextureMethod >::cache_image(), blender::draw::image_engine::ImageEngine< DrawingMode >::cache_populate(), and blender::draw::image_engine::ScreenSpaceDrawingMode< TextureMethod >::draw_scene().
struct { ... } IMAGE_InstanceData::flags |
FloatBufferCache IMAGE_InstanceData::float_buffers |
Cache containing the float buffers when drawing byte images.
Definition at line 54 of file image_instance_data.hh.
Referenced by blender::draw::image_engine::ScreenSpaceDrawingMode< TextureMethod >::cache_image(), blender::draw::image_engine::ScreenSpaceDrawingMode< TextureMethod >::draw_finish(), and update_image_usage().
struct Image* IMAGE_InstanceData::image |
Definition at line 28 of file image_instance_data.hh.
Referenced by blender::draw::image_engine::ImageEngine< DrawingMode >::cache_populate(), blender::draw::image_engine::ImageEngine< DrawingMode >::draw_finish(), and update_image_usage().
DRWPass* IMAGE_InstanceData::image_pass |
Definition at line 47 of file image_instance_data.hh.
Referenced by blender::draw::image_engine::ScreenSpaceDrawingMode< TextureMethod >::cache_init(), and blender::draw::image_engine::ScreenSpaceDrawingMode< TextureMethod >::draw_scene().
ImageUsage IMAGE_InstanceData::last_usage |
Usage data of the previous time, to identify changes that require a full update.
Definition at line 30 of file image_instance_data.hh.
Referenced by update_image_usage().
PartialImageUpdater IMAGE_InstanceData::partial_update |
Definition at line 32 of file image_instance_data.hh.
Referenced by blender::draw::image_engine::ScreenSpaceDrawingMode< TextureMethod >::cache_image().
struct { ... } IMAGE_InstanceData::passes |
ShaderParameters IMAGE_InstanceData::sh_params |
Definition at line 35 of file image_instance_data.hh.
Referenced by blender::draw::image_engine::ImageEngine< DrawingMode >::cache_populate().
float IMAGE_InstanceData::ss_to_texture[4][4] |
Transform matrix to convert a normalized screen space coordinates to texture space.
Definition at line 57 of file image_instance_data.hh.
Referenced by blender::draw::image_engine::ImageEngine< DrawingMode >::cache_populate(), and blender::draw::image_engine::OneTextureMethod::update_screen_uv_bounds().
TextureInfo IMAGE_InstanceData::texture_infos[SCREEN_SPACE_DRAWING_MODE_TEXTURE_LEN] |
Definition at line 58 of file image_instance_data.hh.
Referenced by update_batches(), update_gpu_texture_allocations(), blender::draw::image_engine::OneTextureMethod::update_screen_space_bounds(), and blender::draw::image_engine::OneTextureMethod::update_screen_uv_bounds().
struct DRWView* IMAGE_InstanceData::view |
Definition at line 34 of file image_instance_data.hh.
Referenced by blender::draw::image_engine::ImageEngine< DrawingMode >::cache_init(), and blender::draw::image_engine::ScreenSpaceDrawingMode< TextureMethod >::draw_scene().