|
Blender V5.3
|
#include <workbench_private.hh>
Public Member Functions | |
| ~SceneResources () | |
| void | init (const SceneState &scene_state, const DRWContext *ctx) |
| void | load_jitter_tx (int total_samples) |
Public Attributes | |
| StringRefNull | current_matcap = {} |
| std::string | current_matcap_working_space = {} |
| Texture | matcap_tx = "matcap_tx" |
| TextureFromPool | object_id_tx = "wb_object_id_tx" |
| TextureRef | color_tx |
| TextureRef | depth_tx |
| TextureRef | depth_in_front_tx |
| Framebuffer | clear_fb = {"Clear Main"} |
| Framebuffer | clear_depth_only_fb = {"Clear Depth"} |
| Framebuffer | clear_in_front_fb = {"Clear In Front"} |
| StorageVectorBuffer< Material > | material_buf = {"material_buf"} |
| UniformBuffer< WorldData > | world_buf = {} |
| UniformArrayBuffer< float4, 6 > | clip_planes_buf |
| Texture | jitter_tx = "wb_jitter_tx" |
| CavityEffect | cavity = {} |
| MaterialTexture | missing_texture |
| Texture | dummy_texture_tx = {"dummy_texture"} |
| Texture | dummy_tile_data_tx = {"dummy_tile_data"} |
| Texture | dummy_tile_array_tx = {"dummy_tile_array"} |
| gpu::Batch * | volume_cube_batch = nullptr |
Static Public Attributes | |
| static const int | jitter_tx_size = 64 |
Definition at line 253 of file workbench_private.hh.
|
inline |
Definition at line 286 of file workbench_private.hh.
References blender::workbench::MaterialTexture::gpu, GPU_BATCH_DISCARD_SAFE, blender::GPU_texture_free(), missing_texture, blender::ImageGPUTextures::texture, and volume_cube_batch.
| void blender::workbench::SceneResources::init | ( | const SceneState & | scene_state, |
| const DRWContext * | ctx ) |
Definition at line 116 of file workbench_resources.cc.
References WorldData::ambient_color, blender::workbench::SceneState::background_color, WorldData::background_color, blender::BKE_studiolight_find(), blender::BKE_studiolight_studio_edit_get(), cavity, blender::workbench::SceneState::clip_planes, clip_planes_buf, current_matcap, current_matcap_working_space, blender::workbench::SceneState::draw_dof, dummy_texture_tx, dummy_tile_array_tx, dummy_tile_data_tx, blender::draw::Texture::ensure_1d_array(), blender::draw::Texture::ensure_2d(), blender::draw::Texture::ensure_2d_array(), blender::StudioLight::flag, blender::View3DShading::flag, blender::workbench::get_light_data_from_studio_solidlight(), blender::workbench::get_matcap_tx(), blender::workbench::get_world_shading_rotation_matrix(), blender::workbench::MaterialTexture::gpu, blender::GPU_batch_unit_cube(), blender::GPU_texture_create_error(), blender::GPU_TEXTURE_USAGE_SHADER_READ, blender::MatBase< float, 4, 4 >::identity(), blender::IMB_colormanagement_working_space_get(), blender::IndexRange::IndexRange(), blender::workbench::CavityEffect::init(), blender::DRWContext::is_image_render(), blender::draw::Texture::is_valid(), jitter_tx, blender::StudioLight::light, blender::View3DShading::light, blender::StudioLight::light_ambient, WorldData::lights, load_jitter_tx(), blender::View3DShading::matcap, WorldData::matcap_orientation, matcap_tx, missing_texture, blender::StudioLight::name, blender::workbench::MaterialTexture::name, blender::View3DShading::object_outline_color, WorldData::object_outline_color, blender::draw::detail::UniformCommon< T, len, device_only >::push_update(), blender::workbench::SceneState::shading, blender::View3DShading::studio_light, blender::View3DShading::studiolight_rot_z, blender::STUDIOLIGHT_SPECULAR_HIGHLIGHT_PASS, blender::STUDIOLIGHT_TYPE_MATCAP, blender::STUDIOLIGHT_TYPE_STUDIO, blender::ImageGPUTextures::texture, blender::U, WorldData::ui_scale, WorldData::use_specular, blender::V3D_LIGHTING_MATCAP, blender::V3D_LIGHTING_STUDIO, blender::V3D_SHADING_MATCAP_FLIP_X, blender::V3D_SHADING_SPECULAR_HIGHLIGHT, blender::V3D_SHADING_WORLD_ORIENTATION, WorldData::viewport_size, blender::DRWContext::viewport_size_get(), WorldData::viewport_size_inv, volume_cube_batch, world_buf, blender::View3DShading::xray_alpha, WorldData::xray_alpha, blender::workbench::SceneState::xray_mode, and WorldData::xray_mode.
| void blender::workbench::SceneResources::load_jitter_tx | ( | int | total_samples | ) |
Definition at line 88 of file workbench_resources.cc.
References blender::eevee::lut::blue_noise, blender::clamp_f(), blender::math::cos(), blender::draw::Texture::ensure_2d(), blender::draw::Texture::free(), blender::GPU_TEXTURE_USAGE_SHADER_READ, jitter_tx, jitter_tx_size, M_PI, blender::math::sin(), blender::x, and y.
Referenced by blender::workbench::CavityEffect::init(), and init().
| CavityEffect blender::workbench::SceneResources::cavity = {} |
Definition at line 276 of file workbench_private.hh.
Referenced by init(), and blender::workbench::OpaquePass::sync().
| Framebuffer blender::workbench::SceneResources::clear_depth_only_fb = {"Clear Depth"} |
Definition at line 267 of file workbench_private.hh.
| Framebuffer blender::workbench::SceneResources::clear_fb = {"Clear Main"} |
Definition at line 266 of file workbench_private.hh.
| Framebuffer blender::workbench::SceneResources::clear_in_front_fb = {"Clear In Front"} |
Definition at line 268 of file workbench_private.hh.
| UniformArrayBuffer<float4, 6> blender::workbench::SceneResources::clip_planes_buf |
Definition at line 272 of file workbench_private.hh.
Referenced by init(), and blender::workbench::MeshPass::init_pass().
| TextureRef blender::workbench::SceneResources::color_tx |
Definition at line 262 of file workbench_private.hh.
Referenced by blender::workbench::AntiAliasingPass::draw(), blender::workbench::DofPass::draw(), blender::workbench::OpaquePass::draw(), blender::workbench::OutlinePass::draw(), blender::workbench::ShadowPass::draw(), blender::workbench::TransparentPass::draw(), blender::workbench::VolumePass::draw(), blender::workbench::AntiAliasingPass::sync(), and blender::workbench::DofPass::sync().
| StringRefNull blender::workbench::SceneResources::current_matcap = {} |
Definition at line 256 of file workbench_private.hh.
Referenced by init().
| std::string blender::workbench::SceneResources::current_matcap_working_space = {} |
Definition at line 257 of file workbench_private.hh.
Referenced by init().
| TextureRef blender::workbench::SceneResources::depth_in_front_tx |
Definition at line 264 of file workbench_private.hh.
Referenced by blender::workbench::AntiAliasingPass::draw(), blender::workbench::OpaquePass::draw(), blender::workbench::TransparentDepthPass::draw(), blender::workbench::TransparentPass::draw(), and blender::workbench::TransparentDepthPass::sync().
| TextureRef blender::workbench::SceneResources::depth_tx |
Definition at line 263 of file workbench_private.hh.
Referenced by blender::workbench::AntiAliasingPass::draw(), blender::workbench::OpaquePass::draw(), blender::workbench::TransparentDepthPass::draw(), blender::workbench::TransparentPass::draw(), blender::workbench::VolumePass::draw(), blender::workbench::VolumePass::object_sync_modifier(), blender::workbench::VolumePass::object_sync_volume(), blender::workbench::DofPass::sync(), blender::workbench::OpaquePass::sync(), and blender::workbench::ShadowPass::sync().
| Texture blender::workbench::SceneResources::dummy_texture_tx = {"dummy_texture"} |
Definition at line 280 of file workbench_private.hh.
Referenced by init(), and blender::workbench::MeshPass::init_pass().
| Texture blender::workbench::SceneResources::dummy_tile_array_tx = {"dummy_tile_array"} |
Definition at line 282 of file workbench_private.hh.
Referenced by init(), and blender::workbench::MeshPass::init_pass().
| Texture blender::workbench::SceneResources::dummy_tile_data_tx = {"dummy_tile_data"} |
Definition at line 281 of file workbench_private.hh.
Referenced by init(), and blender::workbench::MeshPass::init_pass().
| Texture blender::workbench::SceneResources::jitter_tx = "wb_jitter_tx" |
Definition at line 274 of file workbench_private.hh.
Referenced by init(), load_jitter_tx(), blender::workbench::CavityEffect::setup_resolve_pass(), and blender::workbench::DofPass::sync().
|
static |
Definition at line 254 of file workbench_private.hh.
Referenced by load_jitter_tx().
| Texture blender::workbench::SceneResources::matcap_tx = "matcap_tx" |
Definition at line 258 of file workbench_private.hh.
Referenced by init(), blender::workbench::MeshPass::init_pass(), and blender::workbench::OpaquePass::sync().
| StorageVectorBuffer<Material> blender::workbench::SceneResources::material_buf = {"material_buf"} |
Definition at line 270 of file workbench_private.hh.
Referenced by blender::workbench::MeshPass::init_pass().
| MaterialTexture blender::workbench::SceneResources::missing_texture |
Definition at line 278 of file workbench_private.hh.
Referenced by init(), blender::workbench::ObjectState::ObjectState(), and ~SceneResources().
| TextureFromPool blender::workbench::SceneResources::object_id_tx = "wb_object_id_tx" |
Definition at line 260 of file workbench_private.hh.
Referenced by blender::workbench::OpaquePass::draw(), blender::workbench::TransparentDepthPass::draw(), blender::workbench::CavityEffect::setup_resolve_pass(), and blender::workbench::OutlinePass::sync().
| gpu::Batch* blender::workbench::SceneResources::volume_cube_batch = nullptr |
Definition at line 284 of file workbench_private.hh.
Referenced by init(), and ~SceneResources().
| UniformBuffer<WorldData> blender::workbench::SceneResources::world_buf = {} |
Definition at line 271 of file workbench_private.hh.
Referenced by blender::workbench::CavityEffect::init(), init(), blender::workbench::ShadowPass::init(), blender::workbench::MeshPass::init_pass(), blender::workbench::OpaquePass::sync(), blender::workbench::OutlinePass::sync(), and blender::workbench::VolumePass::sync().