|
Blender V4.3
|
#include <workbench_private.hh>
Public Member Functions | |
| void | init (const SceneState &scene_state) |
| void | load_jitter_tx (int total_samples) |
Public Attributes | |
| StringRefNull | current_matcap = {} |
| 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 = {} |
| StencilViewWorkaround | stencil_view |
| Texture | missing_tx = "missing_tx" |
| 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"} |
Static Public Attributes | |
| static const int | jitter_tx_size = 64 |
Definition at line 269 of file workbench_private.hh.
| void blender::workbench::SceneResources::init | ( | const SceneState & | scene_state | ) |
Definition at line 102 of file workbench_resources.cc.
References WorldData::ambient_color, blender::workbench::SceneState::background_color, WorldData::background_color, BKE_studiolight_find(), BKE_studiolight_studio_edit_get(), DRW_Global::block, cavity, blender::workbench::SceneState::clip_planes, clip_planes_buf, current_matcap, blender::workbench::SceneState::draw_dof, DRW_state_is_image_render(), DRW_viewport_invert_size_get(), DRW_viewport_size_get(), 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(), StudioLight::flag, G_draw, blender::workbench::get_light_data_from_studio_solidlight(), blender::workbench::get_matcap_tx(), blender::workbench::get_world_shading_rotation_matrix(), blender::workbench::MaterialTexture::gpu, GPU_RGBA16F, GPU_RGBA8, GPU_TEXTURE_USAGE_SHADER_READ, blender::MatBase< float, 4, 4 >::identity(), blender::workbench::CavityEffect::init(), blender::draw::Texture::is_valid(), jitter_tx, StudioLight::light, StudioLight::light_ambient, WorldData::lights, load_jitter_tx(), WorldData::matcap_orientation, matcap_tx, missing_texture, missing_tx, blender::workbench::MaterialTexture::name, StudioLight::name, WorldData::object_outline_color, blender::draw::detail::UniformCommon< T, len, device_only >::push_update(), blender::workbench::SceneState::shading, GlobalsUboStorage::size_pixel, STUDIOLIGHT_SPECULAR_HIGHLIGHT_PASS, STUDIOLIGHT_TYPE_MATCAP, STUDIOLIGHT_TYPE_STUDIO, ImageGPUTextures::texture, WorldData::ui_scale, WorldData::use_specular, V3D_LIGHTING_MATCAP, V3D_SHADING_MATCAP_FLIP_X, V3D_SHADING_SPECULAR_HIGHLIGHT, V3D_SHADING_WORLD_ORIENTATION, WorldData::viewport_size, WorldData::viewport_size_inv, world_buf, and WorldData::xray_alpha.
Referenced by blender::workbench::Instance::draw_image_render(), and blender::workbench::Instance::init().
| void blender::workbench::SceneResources::load_jitter_tx | ( | int | total_samples | ) |
Definition at line 76 of file workbench_resources.cc.
References blender::eevee::lut::blue_noise, clamp_f(), blender::math::cos(), blender::draw::Texture::ensure_2d(), blender::draw::Texture::free(), GPU_RGBA16F, GPU_TEXTURE_USAGE_SHADER_READ, jitter_tx, jitter_tx_size, M_PI, blender::math::sin(), x, and y.
Referenced by blender::workbench::CavityEffect::init(), and init().
| CavityEffect blender::workbench::SceneResources::cavity = {} |
Definition at line 291 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 282 of file workbench_private.hh.
| Framebuffer blender::workbench::SceneResources::clear_fb = {"Clear Main"} |
Definition at line 281 of file workbench_private.hh.
Referenced by blender::workbench::Instance::draw().
| Framebuffer blender::workbench::SceneResources::clear_in_front_fb = {"Clear In Front"} |
Definition at line 283 of file workbench_private.hh.
Referenced by blender::workbench::Instance::draw().
| UniformArrayBuffer<float4, 6> blender::workbench::SceneResources::clip_planes_buf |
Definition at line 287 of file workbench_private.hh.
Referenced by init(), and blender::workbench::MeshPass::init_pass().
| TextureRef blender::workbench::SceneResources::color_tx |
Definition at line 277 of file workbench_private.hh.
Referenced by blender::workbench::AntiAliasingPass::draw(), blender::workbench::DofPass::draw(), blender::workbench::Instance::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 272 of file workbench_private.hh.
Referenced by init().
| TextureRef blender::workbench::SceneResources::depth_in_front_tx |
Definition at line 279 of file workbench_private.hh.
Referenced by blender::workbench::AntiAliasingPass::draw(), blender::workbench::Instance::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 278 of file workbench_private.hh.
Referenced by blender::workbench::AntiAliasingPass::draw(), blender::workbench::Instance::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(), and blender::workbench::OpaquePass::sync().
| Texture blender::workbench::SceneResources::dummy_texture_tx = {"dummy_texture"} |
Definition at line 298 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 300 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 299 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 289 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 270 of file workbench_private.hh.
Referenced by load_jitter_tx().
| Texture blender::workbench::SceneResources::matcap_tx = "matcap_tx" |
Definition at line 273 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 285 of file workbench_private.hh.
Referenced by blender::workbench::Instance::begin_sync(), blender::workbench::Instance::curves_sync(), blender::workbench::Instance::draw_mesh(), blender::workbench::Instance::end_sync(), blender::workbench::Instance::hair_sync(), blender::workbench::MeshPass::init_pass(), and blender::workbench::Instance::point_cloud_sync().
| MaterialTexture blender::workbench::SceneResources::missing_texture |
Definition at line 296 of file workbench_private.hh.
Referenced by blender::workbench::Instance::draw_mesh(), init(), and blender::workbench::ObjectState::ObjectState().
| Texture blender::workbench::SceneResources::missing_tx = "missing_tx" |
Definition at line 295 of file workbench_private.hh.
Referenced by init().
| TextureFromPool blender::workbench::SceneResources::object_id_tx = "wb_object_id_tx" |
| StencilViewWorkaround blender::workbench::SceneResources::stencil_view |
Definition at line 293 of file workbench_private.hh.
Referenced by blender::workbench::OpaquePass::draw(), and blender::workbench::VolumePass::draw().
| UniformBuffer<WorldData> blender::workbench::SceneResources::world_buf = {} |
Definition at line 286 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().