summaryrefslogtreecommitdiff
path: root/src/render/pass/FramebufferElement.hpp
blob: f2e1cc74d913f030b982adf60eff1bc85098fe64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once
#include "PassElement.hpp"

class CFramebufferElement : public IPassElement {
  public:
    struct SFramebufferElementData {
        bool    main          = true;
        uint8_t framebufferID = 0;
    };

    CFramebufferElement(const SFramebufferElementData& data_);
    virtual ~CFramebufferElement() = default;

    virtual bool        needsLiveBlur();
    virtual bool        needsPrecomputeBlur();
    virtual bool        undiscardable();

    virtual const char* passName() {
        return "CFramebufferElement";
    }

    virtual ePassElementType type() {
        return EK_FRAMEBUFFER;
    };

    SFramebufferElementData m_data;
};