-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: simplify feature implementation #326
Changes from all commits
18cd4c5
c85a6d1
d765dc0
ebbded5
303368a
73b3160
cdc5add
b66151d
d44d5d4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,22 +91,15 @@ struct DynamicCubemaps : Feature | |
|
||
virtual inline std::string GetName() { return "Dynamic Cubemaps"; } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I decided to not have the override due to them being pure virtual so not really "overring" another "empty" implementation. But maybe it's best practice to mark that with override as well? Not sure |
||
virtual inline std::string GetShortName() { return "DynamicCubemaps"; } | ||
inline std::string_view GetShaderDefineName() override { return "DYNAMIC_CUBEMAPS"; } | ||
virtual inline std::string_view GetShaderDefineName() override { return "DYNAMIC_CUBEMAPS"; } | ||
bool HasShaderDefine(RE::BSShader::Type) override { return true; }; | ||
|
||
virtual void SetupResources(); | ||
virtual void Reset(); | ||
virtual void SetupResources() override; | ||
virtual void Reset() override; | ||
|
||
virtual void DrawSettings(); | ||
virtual void DrawSettings() override; | ||
virtual void DataLoaded() override; | ||
|
||
virtual void Draw(const RE::BSShader* shader, const uint32_t descriptor); | ||
|
||
virtual void Load(json& o_json); | ||
virtual void Save(json& o_json); | ||
|
||
virtual void RestoreDefaultSettings(); | ||
|
||
std::vector<std::string> iniVRCubeMapSettings{ | ||
{ "bAutoWaterSilhouetteReflections:Water" }, //IniSettings 0x1eaa018 | ||
{ "bForceHighDetailReflections:Water" }, //IniSettings 0x1eaa030 | ||
|
@@ -129,11 +122,9 @@ struct DynamicCubemaps : Feature | |
|
||
void UpdateCubemapCapture(); | ||
|
||
virtual void Prepass() override; | ||
|
||
void Inferrence(bool a_reflections); | ||
|
||
void Irradiance(bool a_reflections); | ||
|
||
bool SupportsVR() override { return true; }; | ||
virtual bool SupportsVR() override { return true; }; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DrawDeferred
andDrawPreProcess
can be removed, too, since they are not referenced.On a side note, some static analysis tools that find dead code would be convenient