Blender  V3.3
eevee_renderbuffers.hh
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2022 Blender Foundation.
3  */
4 
13 #pragma once
14 
15 #include "DRW_render.h"
16 
17 #include "eevee_shader_shared.hh"
18 
19 namespace blender::eevee {
20 
21 class Instance;
22 
24  public:
25  TextureFromPool depth_tx;
26  TextureFromPool combined_tx;
27 
28  // TextureFromPool mist_tx; /* Derived from depth_tx during accumulation. */
29  TextureFromPool normal_tx;
30  TextureFromPool vector_tx;
31  TextureFromPool diffuse_light_tx;
32  TextureFromPool diffuse_color_tx;
33  TextureFromPool specular_light_tx;
34  TextureFromPool specular_color_tx;
35  TextureFromPool volume_light_tx;
36  TextureFromPool emission_tx;
37  TextureFromPool environment_tx;
38  TextureFromPool shadow_tx;
39  TextureFromPool ambient_occlusion_tx;
40  // TextureFromPool cryptomatte_tx; /* TODO */
41  /* TODO(fclem): Use texture from pool once they support texture array. */
44 
45  private:
46  Instance &inst_;
47 
48  public:
49  RenderBuffers(Instance &inst) : inst_(inst){};
50 
51  void sync();
52  /* Acquires (also ensures) the render buffer before rendering to them. */
53  void acquire(int2 extent, void *owner);
54  void release();
55 };
56 
57 } // namespace blender::eevee
in reality light always falls off quadratically Particle Retrieve the data of the particle that spawned the object for example to give variation to multiple instances of an object Point Retrieve information about points in a point cloud Retrieve the edges of an object as it appears to Cycles topology will always appear triangulated Convert a blackbody temperature to an RGB value Normal Generate a perturbed normal from an RGB normal map image Typically used for faking highly detailed surfaces Generate an OSL shader from a file or text data block Image Texture
A running instance of the engine.
void acquire(int2 extent, void *owner)