|
Blender V5.0
|
#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)=0 |
| virtual void | clear (eGPUDataFormat format, const void *data)=0 |
| virtual void | swizzle_set (const char swizzle_mask[4])=0 |
| virtual void | mip_range_set (int min, int max)=0 |
| virtual void * | read (int mip, eGPUDataFormat format)=0 |
| virtual void | update_sub (int mip, int offset[3], int extent[3], eGPUDataFormat format, const void *data)=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 |
| void | mip_size_get (int mip, int r_size[3]) 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 |
| 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) |
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 (blender::gpu::Texture *src, int mip_offset, int layer_offset, 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 |
| char | name_ [DEBUG_NAME_LEN] |
| GPUAttachmentType | fb_attachment_ [GPU_TEX_MAX_FBO_ATTACHED] |
| FrameBuffer * | fb_ [GPU_TEX_MAX_FBO_ATTACHED] |
Implementation of Textures. Base class which is then specialized for each implementation (GL, VK, ...).
Definition at line 99 of file gpu_texture_private.hh.
| blender::gpu::Texture::Texture | ( | const char * | name | ) |
Definition at line 26 of file gpu_texture.cc.
References ARRAY_SIZE, fb_, gpu_image_usage_flags_, GPU_TEXTURE_USAGE_GENERAL, i, name, name_, and STRNCPY().
Referenced by blender::gpu::GLTexture::copy_to(), blender::gpu::MTLTexture::copy_to(), copy_to(), blender::gpu::VKTexture::copy_to(), blender::gpu::GLTexture::GLFrameBuffer, blender::gpu::GLTexture::GLTexture(), init_view(), blender::gpu::MTLTexture::MTLTexture(), blender::gpu::MTLTexture::MTLTexture(), and blender::gpu::VKTexture::VKTexture().
|
virtual |
Definition at line 42 of file gpu_texture.cc.
References ARRAY_SIZE, fb_, fb_attachment_, i, and py_ref.
| void blender::gpu::Texture::attach_to | ( | FrameBuffer * | fb, |
| GPUAttachmentType | type ) |
Definition at line 187 of file gpu_texture.cc.
References ARRAY_SIZE, BLI_assert_msg, fb(), fb_, fb_attachment_, and i.
|
inline |
Definition at line 280 of file gpu_texture_private.hh.
References BLI_assert, BLI_assert_msg, format_, GPU_FB_COLOR_ATTACHMENT0, GPU_FB_DEPTH_ATTACHMENT, and GPU_FB_DEPTH_STENCIL_ATTACHMENT.
Referenced by blender::gpu::GLTexture::clear(), blender::gpu::MTLTexture::clear(), and gpu_framebuffer_texture_attach_ex().
|
pure virtual |
Implemented in blender::gpu::GLTexture, blender::gpu::MTLTexture, and blender::gpu::VKTexture.
References data.
Referenced by GPU_texture_clear().
|
pure virtual |
Implemented in blender::gpu::GLTexture, blender::gpu::MTLTexture, and blender::gpu::VKTexture.
References Texture().
Referenced by GPU_texture_copy().
|
inline |
Definition at line 189 of file gpu_texture_private.hh.
References d_.
Referenced by blender::gpu::VKTexture::update_sub().
| void blender::gpu::Texture::detach_from | ( | FrameBuffer * | fb | ) |
Definition at line 210 of file gpu_texture.cc.
References ARRAY_SIZE, BLI_assert_msg, fb(), fb_, fb_attachment_, and i.
Referenced by GPU_framebuffer_texture_detach().
|
inline |
Definition at line 233 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(), blender::gpu::GLTexture::update_sub(), blender::gpu::GLTexture::update_sub(), and blender::gpu::MTLTexture::update_sub().
|
inline |
Definition at line 272 of file gpu_texture_private.hh.
References format_flag_.
Referenced by GPU_texture_anisotropic_filter(), GPU_texture_compare_mode(), GPU_texture_filter_mode(), and GPU_texture_mipmap_mode().
|
inline |
Definition at line 268 of file gpu_texture_private.hh.
References format_.
Referenced by blender::gpu::MTLShader::bake_current_pipeline_state(), blender::gpu::MTLFrameBuffer::blit(), blender::gpu::FrameBuffer::get_bits_per_pixel(), blender::gpu::GLStateManager::image_bind(), blender::gpu::MTLStateManager::image_bind(), and blender::gpu::VKStateManager::image_bind().
|
pure virtual |
Implemented in blender::gpu::GLTexture, blender::gpu::MTLTexture, and blender::gpu::VKTexture.
Referenced by GPU_texture_update_mipmap_chain().
|
inline |
Definition at line 185 of file gpu_texture_private.hh.
References h_.
Referenced by 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 57 of file gpu_texture.cc.
References d_, floorf, format_, format_flag_, blender::gpu::GPU_FORMAT_DEPTH_STENCIL, blender::gpu::GPU_FORMAT_INTEGER, GPU_SAMPLER_FILTERING_LINEAR, blender::gpu::GPU_TEXTURE_1D, blender::gpu::GPU_TEXTURE_1D_ARRAY, h_, init_internal(), min_ii(), mipmaps_, sampler_state, blender::gpu::to_format_flag(), type_, w(), and w_.
Referenced by gpu_texture_create().
| bool blender::gpu::Texture::init_2D | ( | int | w, |
| int | h, | ||
| int | layers, | ||
| int | mip_len, | ||
| TextureFormat | format ) |
Definition at line 73 of file gpu_texture.cc.
References d_, floorf, format_, format_flag_, blender::gpu::GPU_FORMAT_DEPTH_STENCIL, blender::gpu::GPU_FORMAT_INTEGER, GPU_SAMPLER_FILTERING_LINEAR, blender::gpu::GPU_TEXTURE_2D, blender::gpu::GPU_TEXTURE_2D_ARRAY, h_, init_internal(), max_ii(), min_ii(), mipmaps_, sampler_state, blender::gpu::to_format_flag(), type_, w(), and w_.
Referenced by gpu_texture_create(), GPU_texture_create_compressed_2d(), 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 89 of file gpu_texture.cc.
References d_, floorf, format_, format_flag_, blender::gpu::GPU_FORMAT_DEPTH_STENCIL, blender::gpu::GPU_FORMAT_INTEGER, GPU_SAMPLER_FILTERING_LINEAR, blender::gpu::GPU_TEXTURE_3D, h_, init_internal(), max_iii(), min_ii(), mipmaps_, sampler_state, blender::gpu::to_format_flag(), type_, w(), and w_.
Referenced by gpu_texture_create().
| 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, GPU_vertbuf_get_vertex_len(), h_, init_internal(), blender::gpu::to_format_flag(), type_, and w_.
Referenced by GPU_texture_create_from_vertbuf().
| bool blender::gpu::Texture::init_cubemap | ( | int | w, |
| int | layers, | ||
| int | mip_len, | ||
| TextureFormat | format ) |
Definition at line 105 of file gpu_texture.cc.
References d_, floorf, format_, format_flag_, blender::gpu::GPU_FORMAT_DEPTH_STENCIL, blender::gpu::GPU_FORMAT_INTEGER, GPU_SAMPLER_FILTERING_LINEAR, blender::gpu::GPU_TEXTURE_CUBE, blender::gpu::GPU_TEXTURE_CUBE_ARRAY, h_, init_internal(), max_ii(), min_ii(), mipmaps_, sampler_state, blender::gpu::to_format_flag(), type_, w(), and w_.
Referenced by gpu_texture_create().
|
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 ATTR_FALLTHROUGH, BLI_assert, d_, format_, format_flag_, blender::gpu::GPU_TEXTURE_1D_ARRAY, blender::gpu::GPU_TEXTURE_2D_ARRAY, blender::gpu::GPU_TEXTURE_CUBE, blender::gpu::GPU_TEXTURE_CUBE_ARRAY, h_, init_internal(), layer_count(), min_ii(), mipmaps_, sampler_state, Texture(), blender::gpu::to_format_flag(), type_, and w_.
|
inline |
Definition at line 250 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_ARRAY, h_, and type_.
Referenced by init_view(), and blender::gpu::VKFrameBuffer::rendering_ensure_dynamic_rendering().
|
inline |
Definition at line 263 of file gpu_texture_private.hh.
References mipmaps_.
|
inline |
Definition at line 227 of file gpu_texture_private.hh.
References d_, blender::gpu::GPU_TEXTURE_ARRAY, blender::gpu::GPU_TEXTURE_CUBE, max_ii(), and type_.
|
inline |
Definition at line 223 of file gpu_texture_private.hh.
References blender::gpu::GPU_TEXTURE_1D_ARRAY, h_, max_ii(), and type_.
|
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 d_, blender::gpu::GPU_TEXTURE_1D_ARRAY, blender::gpu::GPU_TEXTURE_ARRAY, blender::gpu::GPU_TEXTURE_CUBE, h_, max_ii(), type_, and w_.
Referenced by blender::gpu::GLTexture::copy_to(), blender::gpu::MTLTexture::copy_to(), blender::gpu::VKTexture::generate_mipmap(), GPU_texture_create_compressed_2d(), blender::gpu::GLTexture::read(), blender::gpu::MTLTexture::read(), blender::gpu::VKTexture::read(), and update().
|
inline |
Definition at line 219 of file gpu_texture_private.hh.
|
pure virtual |
Implemented in blender::gpu::GLTexture, blender::gpu::MTLTexture, and blender::gpu::VKTexture.
|
pure virtual |
Implemented in blender::gpu::GLTexture, blender::gpu::MTLTexture, and blender::gpu::VKTexture.
|
inline |
Definition at line 276 of file gpu_texture_private.hh.
References type_.
Referenced by blender::gpu::VKTexture::generate_mipmap(), and GPU_texture_create_view().
| void blender::gpu::Texture::update | ( | eGPUDataFormat | format, |
| const void * | data ) |
Definition at line 222 of file gpu_texture.cc.
References data, mip_size_get(), and update_sub().
Referenced by gpu_texture_create(), and GPU_texture_update().
|
pure virtual |
Implemented in blender::gpu::GLTexture, blender::gpu::MTLTexture, and blender::gpu::VKTexture.
References data.
Referenced by GPU_texture_create_compressed_2d(), GPU_texture_update_sub(), and update().
|
pure virtual |
Implemented in blender::gpu::GLTexture, blender::gpu::MTLTexture, and blender::gpu::VKTexture.
|
inline |
Definition at line 193 of file gpu_texture_private.hh.
References gpu_image_usage_flags_.
Referenced by blender::gpu::MTLFrameBuffer::bake_render_pass_descriptor(), blender::gpu::MTLContext::ensure_texture_bindings(), blender::gpu::MTLContext::ensure_texture_bindings(), GPU_texture_usage(), and blender::gpu::VKFrameBuffer::rendering_ensure_dynamic_rendering().
| void blender::gpu::Texture::usage_set | ( | eGPUTextureUsage | usage_flags | ) |
Definition at line 176 of file gpu_texture.cc.
References gpu_image_usage_flags_.
Referenced by gpu_texture_create(), GPU_texture_create_compressed_2d(), and blender::gpu::VKTexture::init_swapchain().
|
inline |
Definition at line 181 of file gpu_texture_private.hh.
References w_.
Referenced by blender::gpu::blit_aspect(), blender::gpu::MTLFrameBuffer::blit_to(), blender::gpu::MTLFrameBuffer::check(), and blender::gpu::VKTexture::update_sub().
|
protected |
Definition at line 118 of file gpu_texture_private.hh.
Referenced by 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 |
Definition at line 139 of file gpu_texture_private.hh.
Referenced by attach_to(), blender::gpu::GLTexture::check_feedback_loop(), detach_from(), Texture(), and ~Texture().
|
protected |
Frame-buffer references to update on deletion.
Definition at line 138 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 120 of file gpu_texture_private.hh.
Referenced by attachment_type(), blender::gpu::GLTexture::clear(), blender::gpu::MTLTexture::clear(), blender::gpu::GLTexture::copy_to(), blender::gpu::MTLTexture::copy_to(), format_get(), blender::gpu::MTLTexture::generate_mipmap(), blender::gpu::GLStateManager::image_bind(), 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(), blender::gpu::VKTexture::read(), 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 122 of file gpu_texture_private.hh.
Referenced by 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_swapchain(), init_view(), blender::gpu::GLTexture::read(), blender::gpu::MTLTexture::read(), blender::gpu::VKTexture::read(), blender::gpu::GLTexture::update_sub(), blender::gpu::MTLTexture::update_sub(), and blender::gpu::VKTexture::update_sub().
|
protected |
Texture usage flags.
Definition at line 126 of file gpu_texture_private.hh.
Referenced by blender::gpu::VKTexture::export_memory(), blender::gpu::MTLTexture::MTLTexture(), Texture(), usage_get(), and usage_set().
|
protected |
Definition at line 118 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(), 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 132 of file gpu_texture_private.hh.
Referenced by blender::gpu::GLTexture::check_feedback_loop(), blender::gpu::VKTexture::init_internal(), blender::gpu::GLTexture::mip_range_set(), blender::gpu::MTLTexture::mip_range_set(), blender::gpu::VKTexture::mip_range_set(), and blender::gpu::MTLTexture::update_sub().
|
protected |
For error checking
Definition at line 132 of file gpu_texture_private.hh.
Referenced by blender::gpu::GLTexture::check_feedback_loop(), blender::gpu::VKTexture::init_internal(), blender::gpu::GLTexture::mip_range_set(), blender::gpu::MTLTexture::mip_range_set(), blender::gpu::VKTexture::mip_range_set(), and blender::gpu::MTLTexture::update_sub().
|
protected |
Number of mipmaps this texture has (Max miplvl).
Definition at line 130 of file gpu_texture_private.hh.
Referenced by 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::mip_range_set(), blender::gpu::MTLTexture::mip_range_set(), blender::gpu::GLTexture::read(), blender::gpu::MTLTexture::read(), and blender::gpu::GLTexture::update_sub().
|
protected |
For debugging
Definition at line 135 of file gpu_texture_private.hh.
Referenced by 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 112 of file gpu_texture_private.hh.
Referenced by ~Texture().
| int blender::gpu::Texture::refcount = 1 |
Reference counter.
Definition at line 104 of file gpu_texture_private.hh.
Referenced by GPU_texture_free().
| GPUSamplerState blender::gpu::Texture::sampler_state = GPUSamplerState::default_sampler() |
Internal Sampler state.
Definition at line 102 of file gpu_texture_private.hh.
Referenced by blender::gpu::GLTexture::get_sampler(), blender::gpu::GLTexture::GLFrameBuffer, GPU_texture_anisotropic_filter(), GPU_texture_bind(), GPU_texture_bind_ex(), GPU_texture_compare_mode(), GPU_texture_filter_mode(), GPU_texture_mipmap_mode(), init_1D(), init_2D(), init_3D(), init_cubemap(), init_view(), blender::draw::detail::PassBase< DrawCommandBufType >::material_set(), and blender::gpu::GLTexture::samplers_init().
| int blender::gpu::Texture::src_h = 0 |
Definition at line 106 of file gpu_texture_private.hh.
| int blender::gpu::Texture::src_w = 0 |
Width & Height (of source data), optional.
Definition at line 106 of file gpu_texture_private.hh.
|
protected |
Texture type.
Definition at line 124 of file gpu_texture_private.hh.
Referenced by blender::gpu::MTLTexture::clear(), blender::gpu::GLTexture::copy_to(), blender::gpu::MTLTexture::copy_to(), dimensions_count(), blender::gpu::MTLContext::ensure_texture_bindings(), blender::gpu::MTLContext::ensure_texture_bindings(), 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_swapchain(), init_view(), layer_count(), mip_depth_get(), mip_height_get(), blender::gpu::MTLTexture::mip_range_set(), mip_size_get(), blender::gpu::MTLTexture::MTLTexture(), blender::gpu::GLTexture::read(), blender::gpu::VKTexture::read(), type_get(), blender::gpu::GLTexture::update_sub(), blender::gpu::MTLTexture::update_sub(), blender::gpu::MTLTexture::update_sub(), and blender::gpu::VKTexture::update_sub().
|
protected |
Width & Height & Depth. For cube-map arrays, d is number of face-layers.
Definition at line 118 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(), 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().