Cleanup: Renamed WorldPipeline to BackgroundPipeline
Rename cause for #108149 we want to use WorldPipeline for rendering the world cubemap. Pull Request: https://projects.blender.org/blender/blender/pulls/109495
This commit is contained in:
@@ -22,7 +22,7 @@ namespace blender::eevee {
|
||||
* Used to draw background.
|
||||
* \{ */
|
||||
|
||||
void WorldPipeline::sync(GPUMaterial *gpumat)
|
||||
void BackgroundPipeline::sync(GPUMaterial *gpumat)
|
||||
{
|
||||
Manager &manager = *inst_.manager;
|
||||
RenderBuffers &rbufs = inst_.render_buffers;
|
||||
@@ -49,7 +49,7 @@ void WorldPipeline::sync(GPUMaterial *gpumat)
|
||||
world_ps_.barrier(GPU_BARRIER_SHADER_IMAGE_ACCESS);
|
||||
}
|
||||
|
||||
void WorldPipeline::render(View &view)
|
||||
void BackgroundPipeline::render(View &view)
|
||||
{
|
||||
inst_.manager->submit(world_ps_, view);
|
||||
}
|
||||
|
||||
@@ -23,19 +23,19 @@ namespace blender::eevee {
|
||||
class Instance;
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name World Pipeline
|
||||
/** \name World Background Pipeline
|
||||
*
|
||||
* Render world values.
|
||||
* Render world background values.
|
||||
* \{ */
|
||||
|
||||
class WorldPipeline {
|
||||
class BackgroundPipeline {
|
||||
private:
|
||||
Instance &inst_;
|
||||
|
||||
PassSimple world_ps_ = {"World.Background"};
|
||||
|
||||
public:
|
||||
WorldPipeline(Instance &inst) : inst_(inst){};
|
||||
BackgroundPipeline(Instance &inst) : inst_(inst){};
|
||||
|
||||
void sync(GPUMaterial *gpumat);
|
||||
void render(View &view);
|
||||
@@ -287,7 +287,7 @@ class UtilityTexture : public Texture {
|
||||
|
||||
class PipelineModule {
|
||||
public:
|
||||
WorldPipeline world;
|
||||
BackgroundPipeline background;
|
||||
DeferredPipeline deferred;
|
||||
ForwardPipeline forward;
|
||||
ShadowPipeline shadow;
|
||||
@@ -297,7 +297,7 @@ class PipelineModule {
|
||||
|
||||
public:
|
||||
PipelineModule(Instance &inst)
|
||||
: world(inst), deferred(inst), forward(inst), shadow(inst), capture(inst){};
|
||||
: background(inst), deferred(inst), forward(inst), shadow(inst), capture(inst){};
|
||||
|
||||
void begin_sync()
|
||||
{
|
||||
|
||||
@@ -118,7 +118,7 @@ void ShadingView::render()
|
||||
GPU_framebuffer_bind(combined_fb_);
|
||||
GPU_framebuffer_clear_color_depth(combined_fb_, clear_color, 1.0f);
|
||||
|
||||
inst_.pipelines.world.render(render_view_new_);
|
||||
inst_.pipelines.background.render(render_view_new_);
|
||||
|
||||
/* TODO(fclem): Move it after the first prepass (and hiz update) once pipeline is stabilized. */
|
||||
inst_.lights.set_view(render_view_new_, extent_);
|
||||
|
||||
@@ -108,7 +108,7 @@ void World::sync()
|
||||
|
||||
inst_.manager->register_layer_attributes(gpumat);
|
||||
|
||||
inst_.pipelines.world.sync(gpumat);
|
||||
inst_.pipelines.background.sync(gpumat);
|
||||
}
|
||||
|
||||
/** \} */
|
||||
|
||||
Reference in New Issue
Block a user