diff options
| author | UjinT34 <41110182+UjinT34@users.noreply.github.com> | 2026-03-07 21:21:23 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-07 18:21:23 +0000 |
| commit | 02f30ea15b349d1ed98b608ed06ec88c834592dd (patch) | |
| tree | 5148a3935c43b64f209f2b13e2a0b1bbe987444b /src/render/pass/TexPassElement.hpp | |
| parent | b227efc8492468cc925014a6c8446a3d044b01e8 (diff) | |
renderer: refactor gl renderer (#13488)
Diffstat (limited to 'src/render/pass/TexPassElement.hpp')
| -rw-r--r-- | src/render/pass/TexPassElement.hpp | 46 |
1 files changed, 33 insertions, 13 deletions
diff --git a/src/render/pass/TexPassElement.hpp b/src/render/pass/TexPassElement.hpp index 1ac3db0c..5b8c9757 100644 --- a/src/render/pass/TexPassElement.hpp +++ b/src/render/pass/TexPassElement.hpp @@ -6,22 +6,42 @@ class CWLSurfaceResource; class ITexture; class CSyncTimeline; +enum eDiscardMode : uint8_t { + DISCARD_OPAQUE = 1, + DISCARD_ALPHA = 1 << 1 +}; + class CTexPassElement : public IPassElement { public: struct SRenderData { - SP<ITexture> tex; - CBox box; - float a = 1.F; - float blurA = 1.F; - CRegion damage; - int round = 0; - float roundingPower = 2.0f; - bool flipEndFrame = false; - bool useMirrorProjection = false; - CBox clipBox; - bool blur = false; - std::optional<float> ignoreAlpha; - std::optional<bool> blockBlurOptimization; + SP<ITexture> tex; + CBox box; + float a = 1.F; + float blurA = 1.F; + float overallA = 1.F; + CRegion damage; + int round = 0; + float roundingPower = 2.0f; + bool flipEndFrame = false; + bool useMirrorProjection = false; + CBox clipBox; + bool blur = false; + std::optional<float> ignoreAlpha; + std::optional<bool> blockBlurOptimization; + bool cmBackToSRGB = false; + SP<CMonitor> cmBackToSRGBSource; + + bool discardActive = false; + bool allowCustomUV = false; + SP<CWLSurfaceResource> surface = nullptr; + + uint32_t discardMode = DISCARD_OPAQUE; + float discardOpacity = 0.f; + + CRegion clipRegion; + PHLLSREF currentLS; + + SP<ITexture> blurredBG; }; CTexPassElement(const SRenderData& data); |
