Blender V4.3
blender::workbench::SceneResources Struct Reference

#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< Materialmaterial_buf = {"material_buf"}
 
UniformBuffer< WorldDataworld_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
 

Detailed Description

Definition at line 269 of file workbench_private.hh.

Member Function Documentation

◆ init()

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().

◆ load_jitter_tx()

Member Data Documentation

◆ cavity

CavityEffect blender::workbench::SceneResources::cavity = {}

Definition at line 291 of file workbench_private.hh.

Referenced by init(), and blender::workbench::OpaquePass::sync().

◆ clear_depth_only_fb

Framebuffer blender::workbench::SceneResources::clear_depth_only_fb = {"Clear Depth"}

Definition at line 282 of file workbench_private.hh.

◆ clear_fb

Framebuffer blender::workbench::SceneResources::clear_fb = {"Clear Main"}

Definition at line 281 of file workbench_private.hh.

Referenced by blender::workbench::Instance::draw().

◆ clear_in_front_fb

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().

◆ clip_planes_buf

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().

◆ color_tx

◆ current_matcap

StringRefNull blender::workbench::SceneResources::current_matcap = {}

Definition at line 272 of file workbench_private.hh.

Referenced by init().

◆ depth_in_front_tx

◆ depth_tx

◆ dummy_texture_tx

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().

◆ dummy_tile_array_tx

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().

◆ dummy_tile_data_tx

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().

◆ jitter_tx

Texture blender::workbench::SceneResources::jitter_tx = "wb_jitter_tx"

◆ jitter_tx_size

const int blender::workbench::SceneResources::jitter_tx_size = 64
static

Definition at line 270 of file workbench_private.hh.

Referenced by load_jitter_tx().

◆ matcap_tx

Texture blender::workbench::SceneResources::matcap_tx = "matcap_tx"

◆ material_buf

◆ missing_texture

MaterialTexture blender::workbench::SceneResources::missing_texture

◆ missing_tx

Texture blender::workbench::SceneResources::missing_tx = "missing_tx"

Definition at line 295 of file workbench_private.hh.

Referenced by init().

◆ object_id_tx

◆ stencil_view

StencilViewWorkaround blender::workbench::SceneResources::stencil_view

◆ world_buf


The documentation for this struct was generated from the following files: