|
Blender V5.3
|
#include <gpu_texture_private.hh>
Inherited by blender::gpu::GLTexture, blender::gpu::MTLTexture, and blender::gpu::VKTexture.
Public Member Functions | |
| virtual void | generate_mipmap ()=0 |
| virtual void | copy_to (Texture *tex, IndexRange mip_levels)=0 |
| virtual void | clear (const double4 data)=0 |
| virtual void | swizzle_set (const char swizzle_mask[4])=0 |
| virtual void | read (int mip, eGPUDataFormat format, void *dst)=0 |
| virtual void | update_sub (int mip, int offset[3], int extent[3], eGPUDataFormat format, const void *data, uint unpack_row_length=0)=0 |
| virtual void | update_sub (int offset[3], int extent[3], eGPUDataFormat format, GPUPixelBuffer *pixbuf)=0 |
| int | width_get () const |
| int | height_get () const |
| int | depth_get () const |
| eGPUTextureUsage | usage_get () const |
| bool | is_texture_view () const |
| void | mip_size_get (int mip, int r_size[3]) const |
| int3 | mip_size_get (int mip) const |
| int | mip_width_get (int mip) const |
| int | mip_height_get (int mip) const |
| int | mip_depth_get (int mip) const |
| int | dimensions_count () const |
| int | layer_count () const |
| int | mip_count () const |
| IndexRange | mip_map_range () const |
| IndexRange | layer_range () const |
| TextureFormat | format_get () const |
| GPUTextureFormatFlag | format_flag_get () const |
| GPUTextureType | type_get () const |
| GPUAttachmentType | attachment_type (int slot) const |
Creation & Deletion | |
| Texture (const char *name) | |
| virtual | ~Texture () |
| bool | init_1D (int w, int layers, int mip_len, TextureFormat format) |
| bool | init_2D (int w, int h, int layers, int mip_len, TextureFormat format) |
| bool | init_3D (int w, int h, int d, int mip_len, TextureFormat format) |
| bool | init_cubemap (int w, int layers, int mip_len, TextureFormat format) |
| bool | init_buffer (VertBuf *vbo, TextureFormat format) |
| bool | init_view (Texture *src, TextureFormat format, GPUTextureType type, int mip_start, int mip_len, int layer_start, int layer_len, bool cube_as_array, bool use_stencil) |
| void | usage_set (eGPUTextureUsage usage_flags) |
Operation | |
| void | attach_to (FrameBuffer *fb, GPUAttachmentType type) |
| void | detach_from (FrameBuffer *fb) |
| void | update (eGPUDataFormat format, const void *data) |
C-API | |
| size_t | read_size_get (int mip, eGPUDataFormat format) const |
Public Attributes | |
| GPUSamplerState | sampler_state = GPUSamplerState::default_sampler() |
| int | refcount = 1 |
| int | src_w = 0 |
| int | src_h = 0 |
| void ** | py_ref = nullptr |
Protected Member Functions | |
| virtual bool | init_internal ()=0 |
| virtual bool | init_internal (VertBuf *vbo)=0 |
| virtual bool | init_internal (gpu::Texture *src, bool use_stencil)=0 |
Protected Attributes | |
| int | w_ |
| int | h_ |
| int | d_ |
| TextureFormat | format_ |
| GPUTextureFormatFlag | format_flag_ |
| GPUTextureType | type_ |
| eGPUTextureUsage | gpu_image_usage_flags_ |
| int | mipmaps_ = -1 |
| int | mip_min_ = 0 |
| int | mip_max_ = 0 |
| Texture * | source_texture_ = nullptr |
| int | view_layer_start_ = 0 |
| std::string | name_ |
| Map< FrameBuffer *, GPUAttachmentType > | fb_attachments_ |
Implementation of Textures. Base class which is then specialized for each implementation (GL, VK, ...).
Definition at line 105 of file gpu_texture_private.hh.
| blender::gpu::Texture::Texture | ( | const char * | name | ) |
Definition at line 31 of file gpu_texture.cc.
References blender::G, blender::G_DEBUG_GPU, gpu_image_usage_flags_, blender::GPU_TEXTURE_USAGE_GENERAL, and name_.
Referenced by blender::gpu::GLTexture::copy_to(), blender::gpu::MTLTexture::copy_to(), copy_to(), blender::gpu::VKTexture::copy_to(), blender::gpu::GLTexture::GLTexture(), blender::gpu::GLTexture::GLTexturePool, init_view(), blender::gpu::MTLTexture::MTLTexture(), blender::gpu::MTLTexture::MTLTexture(), and blender::gpu::VKTexture::VKTexture().
|
virtual |
Definition at line 40 of file gpu_texture.cc.
References blender::gpu::FrameBuffer::attachment_remove(), fb_attachments_, and py_ref.
| void blender::gpu::Texture::attach_to | ( | FrameBuffer * | fb, |
| GPUAttachmentType | type ) |
Definition at line 191 of file gpu_texture.cc.
References blender::fb(), and fb_attachments_.
Referenced by read().
|
inline |
Definition at line 315 of file gpu_texture_private.hh.
References blender::BLI_assert(), BLI_assert_msg, format_, blender::GPU_FB_COLOR_ATTACHMENT0, blender::GPU_FB_DEPTH_ATTACHMENT, and blender::GPU_FB_DEPTH_STENCIL_ATTACHMENT.
Referenced by blender::gpu::GLTexture::clear(), and blender::gpu::MTLTexture::clear().
|
pure virtual |
Implemented in blender::gpu::GLTexture, blender::gpu::MTLTexture, and blender::gpu::VKTexture.
References blender::data.
Referenced by blender::GPU_texture_clear(), blender::gpu::tests::test_framebuffer_subpass_input_clearops(), and blender::gpu::tests::test_texture_view_mip_layer_test().
|
pure virtual |
Implemented in blender::gpu::GLTexture, blender::gpu::MTLTexture, and blender::gpu::VKTexture.
References Texture().
Referenced by blender::gpu::update_mipmaps().
|
inline |
Definition at line 202 of file gpu_texture_private.hh.
References d_.
Referenced by blender::gpu::TexturePoolImpl::acquire_texture_impl(), and blender::gpu::VKTexture::update_sub().
| void blender::gpu::Texture::detach_from | ( | FrameBuffer * | fb | ) |
Definition at line 200 of file gpu_texture.cc.
References BLI_assert_msg, blender::fb(), and fb_attachments_.
Referenced by blender::GPU_framebuffer_texture_detach(), read(), and blender::gpu::GLFrameBuffer::subpass_transition_impl().
|
inline |
Definition at line 257 of file gpu_texture_private.hh.
References blender::gpu::GPU_TEXTURE_1D, blender::gpu::GPU_TEXTURE_2D, blender::gpu::GPU_TEXTURE_3D, blender::gpu::GPU_TEXTURE_ARRAY, blender::gpu::GPU_TEXTURE_BUFFER, blender::gpu::GPU_TEXTURE_CUBE, and type_.
Referenced by blender::gpu::GLTexture::init_internal(), init_view(), blender::gpu::GLTexture::update_sub(), blender::gpu::GLTexture::update_sub(), and blender::gpu::MTLTexture::update_sub().
|
inline |
Definition at line 307 of file gpu_texture_private.hh.
References format_flag_.
Referenced by blender::gpu::GLFrameBuffer::clear_attachment().
|
inline |
Definition at line 303 of file gpu_texture_private.hh.
References format_.
Referenced by blender::gpu::MTLTexturePool::acquire_texture_impl(), blender::gpu::TexturePoolImpl::acquire_texture_impl(), blender::gpu::MTLShader::bake_current_pipeline_state(), blender::gpu::MTLFrameBuffer::blit(), blender::gpu::MTLTexture::clear(), blender::gpu::FrameBuffer::get_bits_per_pixel(), blender::GPU_texture_clear(), blender::gpu::GLStateManager::image_bind(), blender::gpu::MTLStateManager::image_bind(), blender::gpu::GLTexture::read(), and blender::gpu::VKFrameBuffer::rendering_ensure_dynamic_rendering().
|
pure virtual |
Implemented in blender::gpu::GLTexture, blender::gpu::MTLTexture, and blender::gpu::VKTexture.
|
inline |
Definition at line 198 of file gpu_texture_private.hh.
References h_.
Referenced by blender::gpu::TexturePoolImpl::acquire_texture_impl(), blender::gpu::blit_aspect(), blender::gpu::MTLFrameBuffer::blit_to(), blender::gpu::MTLFrameBuffer::check(), and blender::gpu::VKTexture::update_sub().
| bool blender::gpu::Texture::init_1D | ( | int | w, |
| int | layers, | ||
| int | mip_len, | ||
| TextureFormat | format ) |
Definition at line 53 of file gpu_texture.cc.
References d_, blender::GPUSamplerState::filtering, floorf, format_, format_flag_, blender::gpu::GPU_FORMAT_DEPTH_STENCIL, blender::gpu::GPU_FORMAT_INTEGER, blender::GPU_SAMPLER_FILTERING_LINEAR, blender::gpu::GPU_TEXTURE_1D, blender::gpu::GPU_TEXTURE_1D_ARRAY, h_, init_internal(), blender::min_ii(), mip_max_, mip_min_, mipmaps_, sampler_state, blender::gpu::to_format_flag(), type_, w(), and w_.
Referenced by blender::gpu::TexturePoolImpl::acquire_texture_impl().
| bool blender::gpu::Texture::init_2D | ( | int | w, |
| int | h, | ||
| int | layers, | ||
| int | mip_len, | ||
| TextureFormat | format ) |
Definition at line 70 of file gpu_texture.cc.
References d_, blender::GPUSamplerState::filtering, floorf, format_, format_flag_, blender::gpu::GPU_FORMAT_DEPTH_STENCIL, blender::gpu::GPU_FORMAT_INTEGER, blender::GPU_SAMPLER_FILTERING_LINEAR, blender::gpu::GPU_TEXTURE_2D, blender::gpu::GPU_TEXTURE_2D_ARRAY, h_, init_internal(), blender::max_ii(), blender::min_ii(), mip_max_, mip_min_, mipmaps_, sampler_state, blender::gpu::to_format_flag(), type_, w(), and w_.
Referenced by blender::gpu::TexturePoolImpl::acquire_texture_impl(), and blender::gpu::MTLTexture::MTLTexture().
| bool blender::gpu::Texture::init_3D | ( | int | w, |
| int | h, | ||
| int | d, | ||
| int | mip_len, | ||
| TextureFormat | format ) |
Definition at line 87 of file gpu_texture.cc.
References d_, blender::GPUSamplerState::filtering, floorf, format_, format_flag_, blender::gpu::GPU_FORMAT_DEPTH_STENCIL, blender::gpu::GPU_FORMAT_INTEGER, blender::GPU_SAMPLER_FILTERING_LINEAR, blender::gpu::GPU_TEXTURE_3D, h_, init_internal(), blender::min_ii(), mip_max_, mip_min_, mipmaps_, sampler_state, blender::gpu::to_format_flag(), type_, w(), and w_.
Referenced by blender::gpu::TexturePoolImpl::acquire_texture_impl().
| bool blender::gpu::Texture::init_buffer | ( | VertBuf * | vbo, |
| TextureFormat | format ) |
Definition at line 121 of file gpu_texture.cc.
References d_, format_, format_flag_, blender::gpu::GPU_TEXTURE_BUFFER, blender::GPU_vertbuf_get_vertex_len(), h_, init_internal(), blender::gpu::to_format_flag(), type_, and w_.
| bool blender::gpu::Texture::init_cubemap | ( | int | w, |
| int | layers, | ||
| int | mip_len, | ||
| TextureFormat | format ) |
Definition at line 104 of file gpu_texture.cc.
References d_, blender::GPUSamplerState::filtering, floorf, format_, format_flag_, blender::gpu::GPU_FORMAT_DEPTH_STENCIL, blender::gpu::GPU_FORMAT_INTEGER, blender::GPU_SAMPLER_FILTERING_LINEAR, blender::gpu::GPU_TEXTURE_CUBE, blender::gpu::GPU_TEXTURE_CUBE_ARRAY, h_, init_internal(), blender::max_ii(), blender::min_ii(), mip_max_, mip_min_, mipmaps_, sampler_state, blender::gpu::to_format_flag(), type_, w(), and w_.
Referenced by blender::gpu::TexturePoolImpl::acquire_texture_impl().
|
protectedpure virtual |
Implemented in blender::gpu::GLTexture, blender::gpu::MTLTexture, and blender::gpu::VKTexture.
Referenced by init_1D(), init_2D(), init_3D(), init_buffer(), init_cubemap(), and init_view().
|
protectedpure virtual |
Implemented in blender::gpu::GLTexture, blender::gpu::MTLTexture, and blender::gpu::VKTexture.
|
protectedpure virtual |
Implemented in blender::gpu::GLTexture, blender::gpu::MTLTexture, and blender::gpu::VKTexture.
| bool blender::gpu::Texture::init_view | ( | Texture * | src, |
| TextureFormat | format, | ||
| GPUTextureType | type, | ||
| int | mip_start, | ||
| int | mip_len, | ||
| int | layer_start, | ||
| int | layer_len, | ||
| bool | cube_as_array, | ||
| bool | use_stencil ) |
Definition at line 133 of file gpu_texture.cc.
References blender::BLI_assert(), d_, dimensions_count(), format_, format_flag_, gpu_image_usage_flags_, blender::gpu::GPU_TEXTURE_2D_ARRAY, blender::gpu::GPU_TEXTURE_ARRAY, blender::gpu::GPU_TEXTURE_CUBE, h_, init_internal(), layer_count(), blender::min_ii(), mip_max_, mip_min_, mip_size_get(), mipmaps_, sampler_state, source_texture_, Texture(), blender::gpu::to_format_flag(), type_, type_get(), view_layer_start_, and w_.
Referenced by blender::gpu::GLTexturePool::acquire_texture_impl(), and blender::gpu::MTLTexturePool::acquire_texture_impl().
|
inline |
Definition at line 210 of file gpu_texture_private.hh.
References source_texture_.
Referenced by blender::gpu::VKTexture::generate_mipmap(), blender::gpu::VKTexture::image_view_get(), blender::gpu::VKTexture::image_view_get(), blender::gpu::GLTexture::read(), blender::gpu::VKTexture::read_sub(), blender::gpu::VKTexture::resource_handle(), blender::gpu::VKTexture::update_sub(), blender::gpu::VKTexture::vk_image_handle(), and blender::gpu::VKTexture::vk_image_usage_get().
|
inline |
Definition at line 274 of file gpu_texture_private.hh.
References d_, blender::gpu::GPU_TEXTURE_1D_ARRAY, blender::gpu::GPU_TEXTURE_2D_ARRAY, blender::gpu::GPU_TEXTURE_CUBE, blender::gpu::GPU_TEXTURE_CUBE_ARRAY, h_, and type_.
Referenced by blender::gpu::VKTexture::copy_to(), blender::gpu::VKTexture::generate_mipmap(), blender::gpu::GLTexture::init_internal(), init_view(), layer_range(), blender::gpu::VKTexture::read(), and blender::gpu::VKFrameBuffer::rendering_ensure_dynamic_rendering().
|
inline |
Definition at line 298 of file gpu_texture_private.hh.
References blender::IndexRange::IndexRange(), layer_count(), and view_layer_start_.
Referenced by blender::gpu::VKTexture::clear(), blender::gpu::VKTexture::clear_depth_stencil(), and blender::gpu::VKTexture::image_view_get().
|
inline |
Definition at line 288 of file gpu_texture_private.hh.
References mipmaps_.
Referenced by blender::gpu::GLTexturePool::acquire_texture_impl(), blender::gpu::MTLTexturePool::acquire_texture_impl(), and blender::gpu::TexturePoolImpl::acquire_texture_impl().
|
inline |
Definition at line 251 of file gpu_texture_private.hh.
References d_, blender::gpu::GPU_TEXTURE_ARRAY, blender::gpu::GPU_TEXTURE_CUBE, blender::max_ii(), and type_.
|
inline |
Definition at line 247 of file gpu_texture_private.hh.
References blender::gpu::GPU_TEXTURE_1D_ARRAY, h_, blender::max_ii(), and type_.
|
inline |
Definition at line 293 of file gpu_texture_private.hh.
References blender::IndexRange::IndexRange(), mip_max_, and mip_min_.
Referenced by blender::gpu::VKTexture::clear(), blender::gpu::VKTexture::clear_depth_stencil(), and blender::gpu::VKTexture::image_view_get().
|
inline |
Definition at line 237 of file gpu_texture_private.hh.
References mip_size_get().
|
inline |
Definition at line 217 of file gpu_texture_private.hh.
References d_, blender::gpu::GPU_TEXTURE_1D_ARRAY, blender::gpu::GPU_TEXTURE_ARRAY, blender::gpu::GPU_TEXTURE_CUBE, h_, blender::max_ii(), type_, and w_.
Referenced by blender::gpu::GLTexture::copy_to(), blender::gpu::MTLTexture::copy_to(), blender::gpu::VKTexture::generate_mipmap(), init_view(), mip_size_get(), blender::gpu::GLTexture::read(), blender::gpu::MTLTexture::read(), blender::gpu::VKTexture::read(), read_size_get(), and update().
|
inline |
Definition at line 243 of file gpu_texture_private.hh.
References blender::max_ii(), and w_.
|
pure virtual |
Implemented in blender::gpu::GLTexture, blender::gpu::MTLTexture, and blender::gpu::VKTexture.
References attach_to(), blender::data, detach_from(), blender::fb(), update(), and usage_set().
| size_t blender::Texture::read_size_get | ( | int | mip, |
| eGPUDataFormat | format ) const |
Definition at line 558 of file gpu_texture.cc.
References blender::BLI_assert(), format_, format_flag_, blender::gpu::GPU_FORMAT_COMPRESSED, blender::gpu::GPU_TEXTURE_CUBE_ARRAY, mip_size_get(), mipmaps_, read_size_get(), blender::draw::Texture::size(), blender::gpu::to_bytesize(), type_, and blender::gpu::validate_data_format().
Referenced by blender::gpu::GLTexture::read(), blender::gpu::MTLTexture::read(), and read_size_get().
|
pure virtual |
Implemented in blender::gpu::GLTexture, blender::gpu::MTLTexture, and blender::gpu::VKTexture.
|
inline |
Definition at line 311 of file gpu_texture_private.hh.
References type_.
Referenced by blender::gpu::TexturePoolImpl::acquire_texture_impl(), blender::gpu::VKTexture::generate_mipmap(), blender::GPU_texture_create_view(), and init_view().
| void blender::gpu::Texture::update | ( | eGPUDataFormat | format, |
| const void * | data ) |
Definition at line 211 of file gpu_texture.cc.
References blender::data, mip_size_get(), and update_sub().
Referenced by blender::GPU_texture_update(), and read().
|
pure virtual |
Implemented in blender::gpu::GLTexture, blender::gpu::MTLTexture, and blender::gpu::VKTexture.
References blender::data.
Referenced by blender::GPU_texture_update_sub(), blender::gpu::tests::test_texture_view_mip_layer_test(), and update().
|
pure virtual |
Implemented in blender::gpu::GLTexture, blender::gpu::MTLTexture, and blender::gpu::VKTexture.
|
inline |
Definition at line 206 of file gpu_texture_private.hh.
References gpu_image_usage_flags_.
Referenced by blender::gpu::MTLTexturePool::acquire_texture_impl(), blender::gpu::TexturePoolImpl::acquire_texture_impl(), blender::gpu::MTLFrameBuffer::bake_render_pass_descriptor(), blender::gpu::bind_atomic_workaround_buffer(), blender::gpu::ensure_texture_bindings(), blender::gpu::VKTexture::image_view_get(), blender::gpu::VKTexture::init_internal(), and blender::gpu::VKFrameBuffer::rendering_ensure_dynamic_rendering().
| void blender::gpu::Texture::usage_set | ( | eGPUTextureUsage | usage_flags | ) |
Definition at line 180 of file gpu_texture.cc.
References gpu_image_usage_flags_.
Referenced by blender::gpu::GLTexturePool::acquire_texture_impl(), blender::gpu::TexturePoolImpl::acquire_texture_impl(), blender::gpu::VKTexture::init_swapchain(), and read().
|
inline |
Definition at line 194 of file gpu_texture_private.hh.
References w_.
Referenced by blender::gpu::TexturePoolImpl::acquire_texture_impl(), blender::gpu::blit_aspect(), blender::gpu::MTLFrameBuffer::blit_to(), blender::gpu::MTLFrameBuffer::check(), and blender::gpu::VKTexture::update_sub().
|
protected |
Definition at line 124 of file gpu_texture_private.hh.
Referenced by blender::gpu::GLTexturePool::acquire_texture_impl(), blender::gpu::MTLTexturePool::acquire_texture_impl(), blender::gpu::GLTexture::copy_to(), blender::gpu::MTLTexture::copy_to(), blender::gpu::VKTexture::copy_to(), depth_get(), init_1D(), init_2D(), init_3D(), init_buffer(), init_cubemap(), blender::gpu::GLTexture::init_internal(), blender::gpu::MTLTexture::init_internal(), init_view(), layer_count(), mip_depth_get(), mip_size_get(), and blender::gpu::MTLTexture::update_sub().
|
protected |
Framebuffer references to update on deletion.
Definition at line 149 of file gpu_texture_private.hh.
Referenced by attach_to(), blender::gpu::GLTexture::check_feedback_loop(), detach_from(), and ~Texture().
|
protected |
Internal data format.
Definition at line 126 of file gpu_texture_private.hh.
Referenced by blender::gpu::GLTexturePool::acquire_texture_impl(), attachment_type(), blender::gpu::VKTexture::clear(), blender::gpu::GLTexture::copy_to(), blender::gpu::MTLTexture::copy_to(), blender::gpu::VKTexture::copy_to(), format_get(), blender::gpu::MTLTexture::generate_mipmap(), blender::gpu::GLStateManager::image_bind(), blender::gpu::VKTexture::image_view_get(), init_1D(), init_2D(), init_3D(), init_buffer(), init_cubemap(), blender::gpu::GLTexture::init_internal(), blender::gpu::GLTexture::init_internal(), blender::gpu::GLTexture::init_internal(), blender::gpu::MTLTexture::init_internal(), blender::gpu::MTLTexture::init_internal(), blender::gpu::VKTexture::init_internal(), blender::gpu::VKTexture::init_internal(), blender::gpu::VKTexture::init_swapchain(), init_view(), blender::gpu::MTLTexture::is_format_srgb(), blender::gpu::GLTexture::read(), blender::gpu::MTLFrameBuffer::read(), blender::gpu::MTLTexture::read(), read_size_get(), blender::gpu::VKTexture::read_sub(), blender::gpu::GLTexture::update_sub(), blender::gpu::GLTexture::update_sub(), blender::gpu::MTLTexture::update_sub(), blender::gpu::MTLTexture::update_sub(), and blender::gpu::VKTexture::update_sub().
|
protected |
Format characteristics.
Definition at line 128 of file gpu_texture_private.hh.
Referenced by blender::gpu::VKTexture::clear(), format_flag_get(), blender::gpu::GLTexture::generate_mipmap(), blender::gpu::MTLTexture::generate_mipmap(), blender::gpu::VKTexture::generate_mipmap(), init_1D(), init_2D(), init_3D(), init_buffer(), init_cubemap(), blender::gpu::VKTexture::init_internal(), blender::gpu::VKTexture::init_swapchain(), init_view(), blender::gpu::GLTexture::read(), blender::gpu::MTLTexture::read(), blender::gpu::VKTexture::read(), read_size_get(), blender::gpu::GLTexture::update_sub(), blender::gpu::MTLTexture::update_sub(), and blender::gpu::VKTexture::update_sub().
|
protected |
Texture usage flags.
Definition at line 132 of file gpu_texture_private.hh.
Referenced by blender::gpu::VKTexture::export_memory(), blender::gpu::VKTexture::init_internal(), init_view(), blender::gpu::MTLTexture::MTLTexture(), Texture(), usage_get(), and usage_set().
|
protected |
Definition at line 124 of file gpu_texture_private.hh.
Referenced by blender::gpu::GLTexturePool::acquire_texture_impl(), blender::gpu::MTLTexturePool::acquire_texture_impl(), blender::gpu::GLTexture::copy_to(), blender::gpu::MTLTexture::copy_to(), blender::gpu::VKTexture::copy_to(), height_get(), init_1D(), init_2D(), init_3D(), init_buffer(), init_cubemap(), blender::gpu::GLTexture::init_internal(), blender::gpu::MTLTexture::init_internal(), init_view(), layer_count(), mip_height_get(), mip_size_get(), and blender::gpu::MTLTexture::update_sub().
|
protected |
Definition at line 137 of file gpu_texture_private.hh.
Referenced by blender::gpu::GLTexture::check_feedback_loop(), init_1D(), init_2D(), init_3D(), init_cubemap(), blender::gpu::VKTexture::init_internal(), init_view(), mip_map_range(), and blender::gpu::MTLTexture::update_sub().
|
protected |
Definition at line 137 of file gpu_texture_private.hh.
Referenced by blender::gpu::GLTexture::check_feedback_loop(), blender::gpu::GLTexture::copy_to(), blender::gpu::VKTexture::copy_to(), init_1D(), init_2D(), init_3D(), init_cubemap(), blender::gpu::GLTexture::init_internal(), blender::gpu::VKTexture::init_internal(), init_view(), mip_map_range(), blender::gpu::GLTexture::read(), blender::gpu::VKTexture::read_sub(), blender::gpu::MTLTexture::update_sub(), and blender::gpu::VKTexture::update_sub().
|
protected |
Number of mipmaps this texture has (Max miplvl).
Definition at line 136 of file gpu_texture_private.hh.
Referenced by blender::gpu::GLTexture::clear(), blender::gpu::MTLTexture::generate_mipmap(), blender::gpu::VKTexture::generate_mipmap(), init_1D(), init_2D(), init_3D(), init_cubemap(), blender::gpu::GLTexture::init_internal(), blender::gpu::GLTexture::init_internal(), blender::gpu::MTLTexture::init_internal(), blender::gpu::VKTexture::init_internal(), init_view(), mip_count(), blender::gpu::GLTexture::read(), blender::gpu::MTLTexture::read(), read_size_get(), and blender::gpu::GLTexture::update_sub().
|
protected |
For debugging.
Definition at line 144 of file gpu_texture_private.hh.
Referenced by blender::gpu::GLTexturePool::acquire_texture_impl(), blender::gpu::MTLTexturePool::acquire_texture_impl(), blender::gpu::GLTexture::check_feedback_loop(), blender::gpu::MTLTexture::get_name(), blender::gpu::VKTexture::image_view_get(), blender::gpu::GLTexture::init_internal(), blender::gpu::GLTexture::init_internal(), blender::gpu::GLTexture::init_internal(), blender::draw::Texture::operator=(), Texture(), and blender::gpu::MTLTexture::update_sub().
| void** blender::gpu::Texture::py_ref = nullptr |
Reference of a pointer that needs to be cleaned when deallocating the texture. Points to #BPyGPUTexture.tex
Definition at line 118 of file gpu_texture_private.hh.
Referenced by ~Texture().
| int blender::gpu::Texture::refcount = 1 |
Reference counter.
Definition at line 110 of file gpu_texture_private.hh.
| GPUSamplerState blender::gpu::Texture::sampler_state = GPUSamplerState::default_sampler() |
Internal Sampler state.
Definition at line 108 of file gpu_texture_private.hh.
Referenced by blender::gpu::GLTexturePool::acquire_texture_impl(), blender::gpu::GLTexture::get_sampler(), blender::gpu::MTLTexture::get_sampler_state(), blender::gpu::GLTexture::GLTexturePool, init_1D(), init_2D(), init_3D(), init_cubemap(), init_view(), and blender::gpu::GLTexture::samplers_init().
When set the instance is considered to be a texture view from source_texture_
Definition at line 140 of file gpu_texture_private.hh.
Referenced by blender::gpu::MTLTexture::clear(), blender::gpu::GLTexture::copy_to(), blender::gpu::VKTexture::image_view_get(), init_view(), is_texture_view(), blender::gpu::GLTexture::read(), blender::gpu::VKTexture::resource_handle(), blender::gpu::VKTexture::vk_image_handle(), and blender::gpu::VKTexture::vk_image_usage_get().
| int blender::gpu::Texture::src_h = 0 |
Definition at line 112 of file gpu_texture_private.hh.
| int blender::gpu::Texture::src_w = 0 |
Width & Height (of source data), optional.
Definition at line 112 of file gpu_texture_private.hh.
|
protected |
Texture type.
Definition at line 130 of file gpu_texture_private.hh.
Referenced by blender::gpu::MTLTexture::clear(), blender::gpu::GLTexture::copy_to(), blender::gpu::MTLTexture::copy_to(), blender::gpu::VKTexture::copy_to(), dimensions_count(), blender::gpu::VKTexture::image_view_get(), init_1D(), init_2D(), init_3D(), init_buffer(), init_cubemap(), blender::gpu::GLTexture::init_internal(), blender::gpu::GLTexture::init_internal(), blender::gpu::GLTexture::init_internal(), blender::gpu::MTLTexture::init_internal(), blender::gpu::MTLTexture::init_internal(), blender::gpu::VKTexture::init_internal(), blender::gpu::VKTexture::init_swapchain(), init_view(), layer_count(), mip_depth_get(), mip_height_get(), mip_size_get(), blender::gpu::MTLTexture::MTLTexture(), blender::gpu::GLTexture::read(), blender::gpu::VKTexture::read(), read_size_get(), type_get(), blender::gpu::GLTexture::update_sub(), blender::gpu::MTLTexture::update_sub(), blender::gpu::MTLTexture::update_sub(), and blender::gpu::VKTexture::update_sub().
|
protected |
Definition at line 141 of file gpu_texture_private.hh.
Referenced by blender::gpu::GLTexture::copy_to(), blender::gpu::VKTexture::copy_to(), blender::gpu::GLTexture::init_internal(), init_view(), layer_range(), blender::gpu::GLTexture::read(), blender::gpu::VKTexture::read_sub(), and blender::gpu::VKTexture::update_sub().
|
protected |
Width & Height & Depth. For cube-maps, d_ is number of layers * 6.
Definition at line 124 of file gpu_texture_private.hh.
Referenced by blender::gpu::GLTexturePool::acquire_texture_impl(), blender::gpu::MTLTexturePool::acquire_texture_impl(), blender::gpu::GLTexture::copy_to(), blender::gpu::MTLTexture::copy_to(), blender::gpu::VKTexture::copy_to(), init_1D(), init_2D(), init_3D(), init_buffer(), init_cubemap(), blender::gpu::GLTexture::init_internal(), blender::gpu::MTLTexture::init_internal(), blender::gpu::MTLTexture::init_internal(), init_view(), mip_size_get(), mip_width_get(), blender::gpu::MTLTexture::update_sub(), and width_get().