Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2022-03-03 23:16:54 +0300
committerClément Foucault <foucault.clem@gmail.com>2022-03-03 23:16:54 +0300
commit58e2ec18ae58918017170c915e7587759f322779 (patch)
tree8f646ae8a0d73d7cec6840e888d9095e3df3d576 /source/blender/draw/engines/eevee/eevee_raytracing.hh
parentfbf4d8f8b5c60313a6ec15c7bd23e12f34b98878 (diff)
EEVEE: Deferred: Large refactor
This changes drastically the implementation to leverage arbitrary writes in order to reduce complexity, memory usage and increase speed. Since we are no longer dependent on the framebuffer requirement, we can allocate bigger size texture that fits all views and avoid the extra. Transparency, holdout and emissions are no longer deferred and are now composited using dual source blending. The indirect lighting and raytracing is still not functional but will also gets a large refactor on its own
Diffstat (limited to 'source/blender/draw/engines/eevee/eevee_raytracing.hh')
-rw-r--r--source/blender/draw/engines/eevee/eevee_raytracing.hh22
1 files changed, 5 insertions, 17 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_raytracing.hh b/source/blender/draw/engines/eevee/eevee_raytracing.hh
index c44c2b56099..71452e23478 100644
--- a/source/blender/draw/engines/eevee/eevee_raytracing.hh
+++ b/source/blender/draw/engines/eevee/eevee_raytracing.hh
@@ -18,13 +18,14 @@ class Instance;
* \{ */
class RaytracingModule {
+ public:
+ RaytraceDataBuf reflection_data;
+ RaytraceDataBuf refraction_data;
+ RaytraceDataBuf diffuse_data;
+
private:
Instance &inst_;
- RaytraceDataBuf reflection_data_;
- RaytraceDataBuf refraction_data_;
- RaytraceDataBuf diffuse_data_;
-
bool enabled_ = false;
public:
@@ -32,19 +33,6 @@ class RaytracingModule {
void sync(void);
- const GPUUniformBuf *reflection_ubo_get(void) const
- {
- return reflection_data_;
- }
- const GPUUniformBuf *refraction_ubo_get(void) const
- {
- return refraction_data_;
- }
- const GPUUniformBuf *diffuse_ubo_get(void) const
- {
- return diffuse_data_;
- }
-
bool enabled(void) const
{
return enabled_;