Blender
V3.3
|
#include <image_texture_info.hh>
Public Member Functions | |
~TextureInfo () | |
Public Attributes | |
bool | visible: 1 |
Is the texture clipped. More... | |
bool | dirty: 1 |
does this texture need a full update. More... | |
rctf | clipping_bounds |
area of the texture in screen space. More... | |
rctf | clipping_uv_bounds |
uv area of the texture in screen space. More... | |
GPUBatch * | batch |
Batch to draw the associated text on the screen. More... | |
GPUTexture * | texture |
GPU Texture for a partial region of the image editor. More... | |
float2 | last_viewport_size = float2(0.0f, 0.0f) |
uint64_t | data |
uint | data_type |
uint | interpolation |
uint | extension |
uint | width |
uint | height |
uint | depth |
uint | use_transform_3d |
Transform | transform_3d |
Definition at line 15 of file image_texture_info.hh.
|
inline |
Definition at line 51 of file image_texture_info.hh.
References batch, GPU_batch_discard(), GPU_texture_free(), and texture.
GPUBatch* TextureInfo::batch |
Batch to draw the associated text on the screen.
Contains a VBO with pos
and uv
. pos
(2xF32) is relative to the origin of the space. uv
(2xF32) reflect the uv bounds.
Definition at line 42 of file image_texture_info.hh.
Referenced by BatchUpdater::discard_batch(), and ~TextureInfo().
rctf TextureInfo::clipping_bounds |
area of the texture in screen space.
Definition at line 31 of file image_texture_info.hh.
Referenced by blender::draw::image_engine::OneTextureMethod::update_screen_space_bounds().
rctf TextureInfo::clipping_uv_bounds |
uv area of the texture in screen space.
Definition at line 33 of file image_texture_info.hh.
Referenced by blender::draw::image_engine::OneTextureMethod::update_screen_uv_bounds().
uint64_t TextureInfo::data |
Definition at line 74 of file util/texture.h.
Referenced by CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_3d_closest(), CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_3d_cubic(), CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_3d_linear(), CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_closest(), CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_cubic(), CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_linear(), CCL_NAMESPACE_BEGIN::kernel_tex_image_interp(), CCL_NAMESPACE_BEGIN::kernel_tex_image_interp_3d(), and tex_fetch().
uint TextureInfo::data_type |
Definition at line 76 of file util/texture.h.
Referenced by device_texture::device_texture(), CCL_NAMESPACE_BEGIN::kernel_tex_image_interp(), CCL_NAMESPACE_BEGIN::kernel_tex_image_interp_3d(), kernel_tex_image_interp_3d(), and svm_image_texture_read().
uint TextureInfo::depth |
Definition at line 80 of file util/texture.h.
Referenced by device_texture::alloc(), CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_3d_closest(), CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_3d_cubic(), CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_3d_linear(), kernel_tex_image_interp_3d(), and svm_image_texture_read_3d().
bool TextureInfo::dirty |
does this texture need a full update.
When set to false the texture can be updated using a partial update.
Definition at line 28 of file image_texture_info.hh.
Referenced by IMAGE_InstanceData::update_batches(), IMAGE_InstanceData::update_gpu_texture_allocations(), and blender::draw::image_engine::OneTextureMethod::update_screen_uv_bounds().
uint TextureInfo::extension |
Definition at line 78 of file util/texture.h.
Referenced by device_texture::device_texture(), CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_3d_closest(), CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_3d_cubic(), CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_3d_linear(), CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_closest(), CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_cubic(), CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_linear(), svm_image_texture_read_2d(), and svm_image_texture_read_3d().
uint TextureInfo::height |
Definition at line 80 of file util/texture.h.
Referenced by device_texture::alloc(), CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_3d_closest(), CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_3d_cubic(), CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_3d_linear(), CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_closest(), CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_cubic(), CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_linear(), kernel_tex_image_interp(), kernel_tex_image_interp_3d(), svm_image_texture_read(), svm_image_texture_read_2d(), and svm_image_texture_read_3d().
uint TextureInfo::interpolation |
Definition at line 49 of file image_texture_info.hh.
Referenced by IMAGE_InstanceData::update_gpu_texture_allocations().
GPUTexture* TextureInfo::texture |
GPU Texture for a partial region of the image editor.
Definition at line 47 of file image_texture_info.hh.
Referenced by IMAGE_InstanceData::update_gpu_texture_allocations(), and ~TextureInfo().
Transform TextureInfo::transform_3d |
Definition at line 83 of file util/texture.h.
Referenced by CCL_NAMESPACE_BEGIN::kernel_tex_image_interp_3d(), and kernel_tex_image_interp_3d().
uint TextureInfo::use_transform_3d |
Definition at line 82 of file util/texture.h.
Referenced by CCL_NAMESPACE_BEGIN::kernel_tex_image_interp_3d(), and kernel_tex_image_interp_3d().
bool TextureInfo::visible |
Is the texture clipped.
Resources of clipped textures are freed and ignored when performing partial updates.
Definition at line 21 of file image_texture_info.hh.
Referenced by IMAGE_InstanceData::update_gpu_texture_allocations(), and blender::draw::image_engine::OneTextureMethod::update_screen_space_bounds().
uint TextureInfo::width |
Definition at line 80 of file util/texture.h.
Referenced by device_texture::alloc(), CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_3d_closest(), CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_3d_cubic(), CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_3d_linear(), CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_closest(), CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_cubic(), CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_linear(), kernel_tex_image_interp(), kernel_tex_image_interp_3d(), svm_image_texture_read(), svm_image_texture_read_2d(), and svm_image_texture_read_3d().