Blender V5.0
blender::workbench::SceneResources Struct Reference

#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 = {}
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 = {}
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"}
gpu::Batch * volume_cube_batch = nullptr

Static Public Attributes

static const int jitter_tx_size = 64

Detailed Description

Definition at line 236 of file workbench_private.hh.

Constructor & Destructor Documentation

◆ ~SceneResources()

blender::workbench::SceneResources::~SceneResources ( )
inline

Definition at line 269 of file workbench_private.hh.

References GPU_BATCH_DISCARD_SAFE, and volume_cube_batch.

Member Function Documentation

◆ init()

◆ load_jitter_tx()

void blender::workbench::SceneResources::load_jitter_tx ( int total_samples)

Member Data Documentation

◆ cavity

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

Definition at line 258 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 249 of file workbench_private.hh.

◆ clear_fb

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

Definition at line 248 of file workbench_private.hh.

◆ clear_in_front_fb

Framebuffer blender::workbench::SceneResources::clear_in_front_fb = {"Clear In Front"}

Definition at line 250 of file workbench_private.hh.

◆ clip_planes_buf

UniformArrayBuffer<float4, 6> blender::workbench::SceneResources::clip_planes_buf

Definition at line 254 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 239 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 263 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 265 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 264 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 237 of file workbench_private.hh.

Referenced by load_jitter_tx().

◆ matcap_tx

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

◆ material_buf

StorageVectorBuffer<Material> blender::workbench::SceneResources::material_buf = {"material_buf"}

Definition at line 252 of file workbench_private.hh.

Referenced by blender::workbench::MeshPass::init_pass().

◆ missing_texture

MaterialTexture blender::workbench::SceneResources::missing_texture

Definition at line 261 of file workbench_private.hh.

Referenced by init(), and blender::workbench::ObjectState::ObjectState().

◆ missing_tx

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

Definition at line 260 of file workbench_private.hh.

Referenced by init().

◆ object_id_tx

◆ volume_cube_batch

gpu::Batch* blender::workbench::SceneResources::volume_cube_batch = nullptr

Definition at line 267 of file workbench_private.hh.

Referenced by init(), and ~SceneResources().

◆ world_buf


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