|
Blender
V2.93
|
Go to the source code of this file.
Typedefs | |
| typedef struct GPUTexture | GPUTexture |
| typedef enum eGPUSamplerState | eGPUSamplerState |
| typedef enum eGPUTextureFormat | eGPUTextureFormat |
| typedef enum eGPUDataFormat | eGPUDataFormat |
Variables | |
| static const int | GPU_SAMPLER_MAX = (GPU_SAMPLER_ICON + 1) |
| typedef enum eGPUDataFormat eGPUDataFormat |
| typedef enum eGPUSamplerState eGPUSamplerState |
| typedef enum eGPUTextureFormat eGPUTextureFormat |
| typedef struct GPUTexture GPUTexture |
Opaque type hiding blender::gpu::Texture.
Definition at line 1 of file GPU_texture.h.
| enum eGPUDataFormat |
| Enumerator | |
|---|---|
| GPU_DATA_FLOAT | |
| GPU_DATA_INT | |
| GPU_DATA_UINT | |
| GPU_DATA_UBYTE | |
| GPU_DATA_UINT_24_8 | |
| GPU_DATA_10_11_11_REV | |
| GPU_DATA_2_10_10_10_REV | |
Definition at line 171 of file GPU_texture.h.
| enum eGPUSamplerState |
Definition at line 40 of file GPU_texture.h.
| enum eGPUTextureFormat |
Definition at line 84 of file GPU_texture.h.
| void GPU_samplers_update | ( | void | ) |
Definition at line 605 of file gpu_texture.cc.
References blender::gpu::GPUBackend::get(), and blender::gpu::GPUBackend::samplers_update().
| void GPU_texture_anisotropic_filter | ( | GPUTexture * | tex, |
| bool | use_aniso | ||
| ) |
Definition at line 487 of file gpu_texture.cc.
References BLI_assert, blender::gpu::GPU_FORMAT_INTEGER, blender::gpu::GPU_FORMAT_STENCIL, GPU_SAMPLER_ANISO, SET_FLAG_FROM_TEST, and tex.
Referenced by drw_texture_set_parameters(), IMB_create_gpu_texture(), and IMB_touch_gpu_texture().
| bool GPU_texture_array | ( | const GPUTexture * | tex | ) |
Definition at line 579 of file gpu_texture.cc.
References blender::gpu::GPU_TEXTURE_ARRAY, and tex.
Referenced by blender::gpu::FrameBuffer::attachment_set().
| void GPU_texture_bind | ( | GPUTexture * | tex, |
| int | unit | ||
| ) |
Definition at line 415 of file gpu_texture.cc.
References blender::gpu::Context::get(), blender::gpu::Context::state_manager, tex, and blender::gpu::StateManager::texture_bind().
Referenced by draw_display_buffer(), gpu_viewport_draw_colormanaged(), GPU_viewport_stereo_composite(), immBindTexture(), immDrawPixelsTexScaled_clipping(), pygpu_shader_uniform_sampler(), sequencer_draw_display_buffer(), wm_draw_region_blend(), and wm_draw_window().
| void GPU_texture_bind_ex | ( | GPUTexture * | tex, |
| eGPUSamplerState | state, | ||
| int | unit, | ||
| const bool | set_number | ||
| ) |
Referenced by draw_update_uniforms(), icon_draw_cache_texture_flush_ex(), icon_draw_texture(), and immBindTextureSampler().
| void GPU_texture_clear | ( | GPUTexture * | tex, |
| eGPUDataFormat | data_format, | ||
| const void * | data | ||
| ) |
Fills the whole texture with the same data for all pixels.
| data_format | data format of the pixel data. |
| data | 1 pixel worth of data to fill the texture with. |
Definition at line 384 of file gpu_texture.cc.
References BLI_assert, clear(), data, and tex.
Referenced by pygpu_texture_clear().
| void GPU_texture_compare_mode | ( | GPUTexture * | tex, |
| bool | use_compare | ||
| ) |
Definition at line 460 of file gpu_texture.cc.
References BLI_assert, blender::gpu::GPU_FORMAT_DEPTH, GPU_SAMPLER_COMPARE, SET_FLAG_FROM_TEST, and tex.
Referenced by drw_texture_set_parameters(), EEVEE_subsurface_compute(), and EEVEE_volumes_compute().
| size_t GPU_texture_component_len | ( | eGPUTextureFormat | format | ) |
Definition at line 616 of file gpu_texture.cc.
References blender::gpu::to_component_len().
Referenced by pygpu_texture__tp_new(), and pygpu_texture_read().
| void GPU_texture_copy | ( | GPUTexture * | dst, |
| GPUTexture * | src | ||
| ) |
Definition at line 453 of file gpu_texture.cc.
References blender::gpu::Texture::copy_to().
Referenced by OVERLAY_xray_depth_copy(), OVERLAY_xray_depth_infront_copy(), and workbench_antialiasing_draw_pass().
| GPUTexture* GPU_texture_create_1d | ( | const char * | name, |
| int | w, | ||
| int | mip_len, | ||
| eGPUTextureFormat | format, | ||
| const float * | data | ||
| ) |
Definition at line 237 of file gpu_texture.cc.
References data, GPU_DATA_FLOAT, blender::gpu::GPU_TEXTURE_1D, gpu_texture_create(), and w().
Referenced by createGPUCurveMapping(), DRW_create_weight_colorramp_texture(), DRW_globals_update(), DRW_texture_create_1d(), GPU_material_sss_profile_get(), pygpu_texture__tp_new(), and workbench_volume_engine_init().
| GPUTexture* GPU_texture_create_1d_array | ( | const char * | name, |
| int | w, | ||
| int | h, | ||
| int | mip_len, | ||
| eGPUTextureFormat | format, | ||
| const float * | data | ||
| ) |
Definition at line 243 of file gpu_texture.cc.
References data, GPU_DATA_FLOAT, blender::gpu::GPU_TEXTURE_1D_ARRAY, gpu_texture_create(), and w().
Referenced by gpu_material_ramp_texture_build(), gpu_texture_create_tile_mapping(), and pygpu_texture__tp_new().
| GPUTexture* GPU_texture_create_2d | ( | const char * | name, |
| int | w, | ||
| int | h, | ||
| int | mip_len, | ||
| eGPUTextureFormat | format, | ||
| const float * | data | ||
| ) |
Definition at line 250 of file gpu_texture.cc.
References data, GPU_DATA_FLOAT, blender::gpu::GPU_TEXTURE_2D, gpu_texture_create(), and w().
Referenced by addGPULut2D(), blf_glyph_render(), dof_reduce_pass_init(), draw_display_buffer(), draw_plane_marker_image(), draw_select_framebuffer_depth_only_setup(), DRW_texture_create_2d(), edit_uv_mask_texture(), GPENCIL_antialiasing_init(), GPU_offscreen_create(), gpu_viewport_default_fb_create(), GPU_viewport_texture_pool_query(), IMB_create_gpu_texture(), IMB_touch_gpu_texture(), immDrawPixelsTexScaled_clipping(), load_tex(), load_tex_cursor(), pygpu_texture__tp_new(), radial_control_set_tex(), select_engine_framebuffer_setup(), sequencer_draw_display_buffer(), space_image_gpu_texture_get(), studiolight_create_equirect_irradiance_gputexture(), studiolight_create_equirect_radiance_gputexture(), studiolight_create_matcap_gputexture(), UI_icons_reload_internal_textures(), workbench_antialiasing_engine_init(), and workbench_render_framebuffers_init().
| GPUTexture* GPU_texture_create_2d_array | ( | const char * | name, |
| int | w, | ||
| int | h, | ||
| int | d, | ||
| int | mip_len, | ||
| eGPUTextureFormat | format, | ||
| const float * | data | ||
| ) |
Definition at line 256 of file gpu_texture.cc.
References data, GPU_DATA_FLOAT, blender::gpu::GPU_TEXTURE_2D_ARRAY, gpu_texture_create(), and w().
Referenced by DRW_texture_create_2d_array(), eevee_lightcache_static_load(), IMB_touch_gpu_texture(), and pygpu_texture__tp_new().
| GPUTexture* GPU_texture_create_3d | ( | const char * | name, |
| int | w, | ||
| int | h, | ||
| int | d, | ||
| int | mip_len, | ||
| eGPUTextureFormat | texture_format, | ||
| eGPUDataFormat | data_format, | ||
| const void * | data | ||
| ) |
Definition at line 263 of file gpu_texture.cc.
References data, blender::gpu::GPU_TEXTURE_3D, gpu_texture_create(), and w().
Referenced by addGPULut3D(), DRW_smoke_ensure_velocity(), DRW_texture_create_3d(), pygpu_texture__tp_new(), volume_grid_cache_get(), and workbench_volume_engine_init().
| GPUTexture* GPU_texture_create_compressed_2d | ( | const char * | name, |
| int | w, | ||
| int | h, | ||
| int | miplen, | ||
| eGPUTextureFormat | format, | ||
| const void * | data | ||
| ) |
data should hold all the data for all mipmaps.
Definition at line 290 of file gpu_texture.cc.
References data, blender::gpu::GPUBackend::get(), size(), tex, blender::gpu::GPUBackend::texture_alloc(), blender::gpu::to_block_size(), blender::gpu::to_data_format(), and w().
Referenced by IMB_create_gpu_texture().
| GPUTexture* GPU_texture_create_cube | ( | const char * | name, |
| int | w, | ||
| int | mip_len, | ||
| eGPUTextureFormat | format, | ||
| const float * | data | ||
| ) |
Definition at line 276 of file gpu_texture.cc.
References data, GPU_DATA_FLOAT, gpu_texture_create(), blender::gpu::GPU_TEXTURE_CUBE, and w().
Referenced by DRW_texture_create_cube(), and pygpu_texture__tp_new().
| GPUTexture* GPU_texture_create_cube_array | ( | const char * | name, |
| int | w, | ||
| int | d, | ||
| int | mip_len, | ||
| eGPUTextureFormat | format, | ||
| const float * | data | ||
| ) |
Definition at line 282 of file gpu_texture.cc.
References data, GPU_DATA_FLOAT, gpu_texture_create(), blender::gpu::GPU_TEXTURE_CUBE_ARRAY, and w().
Referenced by DRW_texture_create_cube_array(), eevee_lightcache_static_load(), and pygpu_texture__tp_new().
| GPUTexture* GPU_texture_create_error | ( | int | dimension, |
| bool | array | ||
| ) |
Definition at line 329 of file gpu_texture.cc.
References GPU_DATA_FLOAT, GPU_RGBA8, blender::gpu::GPU_TEXTURE_1D, blender::gpu::GPU_TEXTURE_1D_ARRAY, blender::gpu::GPU_TEXTURE_2D, blender::gpu::GPU_TEXTURE_2D_ARRAY, blender::gpu::GPU_TEXTURE_3D, gpu_texture_create(), type, and w().
Referenced by BKE_movieclip_get_gpu_texture(), createGPUTextures(), and image_gpu_texture_error_create().
| GPUTexture* GPU_texture_create_from_vertbuf | ( | const char * | name, |
| struct GPUVertBuf * | vert | ||
| ) |
Definition at line 315 of file gpu_texture.cc.
References blender::gpu::GPUBackend::get(), GPU_vertbuf_get_format(), tex, blender::gpu::GPUBackend::texture_alloc(), and blender::gpu::to_texture_format().
Referenced by DRW_hair_init(), EEVEE_motion_blur_cache_finish(), hair_batch_cache_ensure_procedural_final_points(), hair_batch_cache_ensure_procedural_pos(), hair_batch_cache_ensure_procedural_strand_data(), particle_batch_cache_ensure_procedural_final_points(), particle_batch_cache_ensure_procedural_pos(), and particle_batch_cache_ensure_procedural_strand_data().
| bool GPU_texture_cube | ( | const GPUTexture * | tex | ) |
Definition at line 574 of file gpu_texture.cc.
References blender::gpu::GPU_TEXTURE_CUBE, and tex.
Referenced by blender::gpu::FrameBuffer::attachment_set().
| size_t GPU_texture_dataformat_size | ( | eGPUDataFormat | data_format | ) |
Definition at line 621 of file gpu_texture.cc.
References blender::gpu::to_bytesize().
Referenced by pygpu_buffer__sq_item(), and pygpu_buffer_calc_size().
| bool GPU_texture_depth | ( | const GPUTexture * | tex | ) |
Definition at line 559 of file gpu_texture.cc.
References blender::gpu::GPU_FORMAT_DEPTH, and tex.
Referenced by blender::gpu::FrameBuffer::attachment_set(), GPU_framebuffer_blit(), GPU_viewport_texture_pool_query(), and pygpu_framebuffer__tp_new().
| void GPU_texture_filter_mode | ( | GPUTexture * | tex, |
| bool | use_filter | ||
| ) |
Definition at line 468 of file gpu_texture.cc.
References BLI_assert, blender::gpu::GPU_FORMAT_INTEGER, blender::gpu::GPU_FORMAT_STENCIL, GPU_SAMPLER_FILTER, SET_FLAG_FROM_TEST, and tex.
Referenced by addGPULut2D(), addGPULut3D(), createGPUCurveMapping(), draw_display_buffer(), draw_plane_marker_image(), drw_texture_set_parameters(), eevee_lightcache_static_load(), GPENCIL_antialiasing_init(), GPU_viewport_texture_pool_query(), immDrawPixelsTexScaled_clipping(), radial_control_set_tex(), sequencer_draw_display_buffer(), studiolight_create_equirect_irradiance_gputexture(), studiolight_create_equirect_radiance_gputexture(), and workbench_antialiasing_engine_init().
| eGPUTextureFormat GPU_texture_format | ( | const GPUTexture * | tex | ) |
Definition at line 554 of file gpu_texture.cc.
References tex.
Referenced by GPU_framebuffer_blit(), GPU_viewport_texture_pool_query(), pygpu_texture_format_get(), and pygpu_texture_read().
| void GPU_texture_free | ( | GPUTexture * | tex | ) |
Definition at line 508 of file gpu_texture.cc.
References tex.
Referenced by BKE_image_add_tile(), BKE_movieclip_free_gputexture(), BKE_previewimg_clear_single(), BKE_previewimg_freefunc(), blf_glyph_cache_free(), blf_glyph_render(), BPyGPUTexture__tp_dealloc(), draw_display_buffer(), draw_plane_marker_image(), draw_select_framebuffer_depth_only_setup(), DRW_smoke_free(), DRW_smoke_free_velocity(), DRW_texture_free(), drw_viewport_cache_resize(), EEVEE_lut_update_ggx_brdf(), EEVEE_lut_update_ggx_btdf(), free_buffers(), free_icons_textures(), gpu_free_unused_buffers(), gpu_material_free_single(), GPU_material_sss_profile_get(), GPU_offscreen_free(), gpu_viewport_buffers_free(), GPU_viewport_free(), gpu_viewport_texture_pool_clear_users(), gpu_viewport_texture_pool_free(), icon_preview_endjob(), image_draw_finish(), image_free_gpu(), image_free_tile(), immDrawPixelsTexScaled_clipping(), load_tex(), load_tex_cursor(), paint_cursor_delete_textures(), radial_control_cancel(), select_engine_framebuffer_setup(), sequencer_draw_display_buffer(), OCIO_GPUCurveMappping::~OCIO_GPUCurveMappping(), and OCIO_GPUTextures::~OCIO_GPUTextures().
| void GPU_texture_generate_mipmap | ( | GPUTexture * | tex | ) |
Definition at line 447 of file gpu_texture.cc.
References tex.
Referenced by dof_reduce_pass_init(), DRW_texture_generate_mipmaps(), drw_texture_set_parameters(), gpu_texture_create_tile_array(), gpu_texture_update_from_ibuf(), and image_get_gpu_texture().
| void GPU_texture_get_mipmap_size | ( | GPUTexture * | tex, |
| int | lvl, | ||
| int * | size | ||
| ) |
Definition at line 590 of file gpu_texture.cc.
References tex.
Referenced by dof_gather_pass_init(), dof_scatter_pass_init(), downsample_radiance_cb(), eevee_lightbake_readback_reflections(), EEVEE_lightcache_create(), EEVEE_screen_raytrace_cache_init(), max_downsample_cb(), and workbench_volume_object_cache_populate().
| int GPU_texture_height | ( | const GPUTexture * | tex | ) |
Definition at line 532 of file gpu_texture.cc.
References tex.
Referenced by draw_select_framebuffer_depth_only_setup(), DRW_select_buffer_read(), eevee_lightbake_cache_create(), EEVEE_lightbake_filter_visibility(), EEVEE_motion_blur_cache_init(), EEVEE_motion_blur_draw(), GPU_offscreen_height(), GPU_offscreen_read_pixels(), gpu_texture_create_tile_mapping(), gpu_texture_update_from_ibuf(), gpu_texture_update_scaled(), GPU_viewport_draw_to_screen_ex(), GPU_viewport_texture_pool_query(), planar_pool_ensure_alloc(), pygpu_texture_height_get(), pygpu_texture_read(), and select_engine_framebuffer_setup().
| void GPU_texture_image_bind | ( | GPUTexture * | tex, |
| int | unit | ||
| ) |
Definition at line 432 of file gpu_texture.cc.
References blender::gpu::Context::get(), blender::gpu::StateManager::image_bind(), blender::gpu::Context::state_manager, tex, and blender::gpu::unwrap().
Referenced by draw_update_uniforms().
| void GPU_texture_image_unbind | ( | GPUTexture * | tex | ) |
Definition at line 437 of file gpu_texture.cc.
References blender::gpu::Context::get(), blender::gpu::StateManager::image_unbind(), blender::gpu::Context::state_manager, tex, and blender::gpu::unwrap().
| void GPU_texture_image_unbind_all | ( | void | ) |
Definition at line 442 of file gpu_texture.cc.
References blender::gpu::Context::get(), blender::gpu::StateManager::image_unbind_all(), and blender::gpu::Context::state_manager.
| bool GPU_texture_integer | ( | const GPUTexture * | tex | ) |
Definition at line 569 of file gpu_texture.cc.
References blender::gpu::GPU_FORMAT_INTEGER, and tex.
Referenced by GPU_viewport_texture_pool_query().
| unsigned int GPU_texture_memory_usage_get | ( | void | ) |
Definition at line 187 of file gpu_texture.cc.
Referenced by DRW_stats_draw().
| void GPU_texture_mipmap_mode | ( | GPUTexture * | tex, |
| bool | use_mipmap, | ||
| bool | use_filter | ||
| ) |
Definition at line 477 of file gpu_texture.cc.
References BLI_assert, blender::gpu::GPU_FORMAT_INTEGER, blender::gpu::GPU_FORMAT_STENCIL, GPU_SAMPLER_FILTER, GPU_SAMPLER_MIPMAP, SET_FLAG_FROM_TEST, and tex.
Referenced by BKE_image_paint_set_mipmap(), BKE_movieclip_get_gpu_texture(), drw_texture_set_parameters(), eevee_lightcache_static_load(), gpu_texture_create_tile_array(), gpu_texture_create_tile_mapping(), image_get_gpu_texture(), and wm_draw_offscreen_texture_parameters().
| int GPU_texture_opengl_bindcode | ( | const GPUTexture * | tex | ) |
Definition at line 585 of file gpu_texture.cc.
References tex.
Referenced by pygpu_offscreen_color_texture_get().
| int GPU_texture_orig_height | ( | const GPUTexture * | tex | ) |
Definition at line 542 of file gpu_texture.cc.
References tex.
Referenced by OVERLAY_image_empty_cache_populate().
| void GPU_texture_orig_size_set | ( | GPUTexture * | tex, |
| int | w, | ||
| int | h | ||
| ) |
Definition at line 547 of file gpu_texture.cc.
Referenced by image_get_gpu_texture().
| int GPU_texture_orig_width | ( | const GPUTexture * | tex | ) |
Definition at line 537 of file gpu_texture.cc.
References tex.
Referenced by OVERLAY_image_empty_cache_populate().
| void* GPU_texture_read | ( | GPUTexture * | tex, |
| eGPUDataFormat | data_format, | ||
| int | miplvl | ||
| ) |
Definition at line 371 of file gpu_texture.cc.
References tex.
Referenced by eevee_cryptomatte_postprocess_weights(), eevee_lightbake_copy_irradiance(), eevee_lightbake_readback_irradiance(), eevee_lightbake_readback_reflections(), EEVEE_lut_update_ggx_brdf(), EEVEE_lut_update_ggx_btdf(), and pygpu_texture_read().
| void GPU_texture_ref | ( | GPUTexture * | tex | ) |
Definition at line 522 of file gpu_texture.cc.
References tex.
Referenced by drw_shgroup_material_texture().
| bool GPU_texture_stencil | ( | const GPUTexture * | tex | ) |
Definition at line 564 of file gpu_texture.cc.
References blender::gpu::GPU_FORMAT_STENCIL, and tex.
Referenced by blender::gpu::FrameBuffer::attachment_set(), GPU_framebuffer_blit(), and GPU_framebuffer_config_array().
| void GPU_texture_swizzle_set | ( | GPUTexture * | tex, |
| const char | swizzle[4] | ||
| ) |
Definition at line 503 of file gpu_texture.cc.
References tex.
Referenced by load_tex(), load_tex_cursor(), radial_control_set_tex(), and volume_grid_cache_get().
| void GPU_texture_unbind | ( | GPUTexture * | tex | ) |
Definition at line 421 of file gpu_texture.cc.
References blender::gpu::Context::get(), blender::gpu::Context::state_manager, tex, and blender::gpu::StateManager::texture_unbind().
Referenced by blf_batch_draw(), draw_display_buffer(), draw_plane_marker_image(), DRW_transform_none(), gpu_texture_update_from_ibuf(), gpu_viewport_draw_colormanaged(), GPU_viewport_stereo_composite(), icon_draw_cache_texture_flush_ex(), icon_draw_texture(), immDrawPixelsTexScaled_clipping(), paint_draw_cursor_overlay(), paint_draw_tex_overlay(), radial_control_paint_tex(), sequencer_draw_display_buffer(), wm_draw_region_blend(), and wm_draw_window().
| void GPU_texture_unbind_all | ( | void | ) |
Definition at line 427 of file gpu_texture.cc.
References blender::gpu::Context::get(), blender::gpu::Context::state_manager, and blender::gpu::StateManager::texture_unbind_all().
Referenced by draw_shgroup(), and DRW_state_reset().
| void GPU_texture_update | ( | GPUTexture * | tex, |
| eGPUDataFormat | data_format, | ||
| const void * | data | ||
| ) |
Definition at line 391 of file gpu_texture.cc.
References data, tex, and update().
Referenced by draw_display_buffer(), draw_plane_marker_image(), eevee_lightcache_static_load(), GPENCIL_antialiasing_init(), GPENCIL_render_init(), IMB_create_gpu_texture(), load_tex(), load_tex_cursor(), sequencer_draw_display_buffer(), studiolight_create_matcap_gputexture(), and workbench_antialiasing_engine_init().
| void GPU_texture_update_mipmap | ( | GPUTexture * | tex, |
| int | miplvl, | ||
| eGPUDataFormat | gpu_data_format, | ||
| const void * | pixels | ||
| ) |
Definition at line 345 of file gpu_texture.cc.
References tex.
Referenced by eevee_lightcache_static_load(), and UI_icons_reload_internal_textures().
| void GPU_texture_update_sub | ( | GPUTexture * | tex, |
| eGPUDataFormat | data_format, | ||
| const void * | pixels, | ||
| int | offset_x, | ||
| int | offset_y, | ||
| int | offset_z, | ||
| int | width, | ||
| int | height, | ||
| int | depth | ||
| ) |
Definition at line 356 of file gpu_texture.cc.
References height, tex, and width.
Referenced by blf_batch_cache_texture_load(), GPENCIL_render_init(), gpu_texture_update_scaled(), gpu_texture_update_unscaled(), IMB_update_gpu_texture_sub(), immDrawPixelsTexScaled_clipping(), and updateGPUCurveMapping().
| int GPU_texture_width | ( | const GPUTexture * | tex | ) |
Definition at line 527 of file gpu_texture.cc.
References tex.
Referenced by blf_batch_cache_texture_load(), dof_reduce_pass_init(), draw_select_framebuffer_depth_only_setup(), DRW_select_buffer_read(), eevee_lightbake_cache_create(), EEVEE_lightbake_filter_diffuse(), EEVEE_lightbake_filter_glossy(), EEVEE_lightbake_filter_visibility(), EEVEE_motion_blur_cache_init(), EEVEE_motion_blur_draw(), GPU_offscreen_read_pixels(), GPU_offscreen_width(), gpu_texture_create_tile_mapping(), gpu_texture_update_from_ibuf(), gpu_texture_update_scaled(), GPU_viewport_draw_to_screen_ex(), GPU_viewport_texture_pool_query(), planar_pool_ensure_alloc(), pygpu_texture_read(), pygpu_texture_width_get(), select_engine_framebuffer_setup(), and simple_downsample_cube_cb().
| void GPU_texture_wrap_mode | ( | GPUTexture * | tex, |
| bool | use_repeat, | ||
| bool | use_clamp | ||
| ) |
Definition at line 496 of file gpu_texture.cc.
References GPU_SAMPLER_CLAMP_BORDER, GPU_SAMPLER_REPEAT, SET_FLAG_FROM_TEST, and tex.
Referenced by addGPULut2D(), addGPULut3D(), createGPUCurveMapping(), drw_texture_set_parameters(), image_get_gpu_texture(), immDrawPixelsTexScaled_clipping(), studiolight_create_equirect_irradiance_gputexture(), studiolight_create_equirect_radiance_gputexture(), and volume_grid_cache_get().
| void GPU_unpack_row_length_set | ( | uint | len | ) |
Definition at line 398 of file gpu_texture.cc.
References blender::gpu::Context::get(), len, blender::gpu::Context::state_manager, and blender::gpu::StateManager::texture_unpack_row_length_set().
Referenced by gpu_texture_update_unscaled(), and immDrawPixelsTexScaled_clipping().
|
static |
Definition at line 58 of file GPU_texture.h.
Referenced by DRW_shgroup_uniform_texture(), DRW_shgroup_uniform_texture_ref(), GPU_color_band(), GPU_image_tiled_mapping(), GPU_texture_bind_ex(), blender::gpu::GLTexture::samplers_free(), and blender::gpu::GLTexture::samplers_init().