Skip to content

Conversation

C-Core
Copy link
Member

@C-Core C-Core commented Dec 27, 2020

Added concept of passes and command encoder to renderer foundation

Also added a factory for device creation. This allows us to switch between renderer implementations via command line argument e.g. "-renderer DX11" or "-renderer Vulkan".

@C-Core C-Core linked an issue Dec 27, 2020 that may be closed by this pull request
@@ -222,7 +222,7 @@ class EZ_FOUNDATION_DLL ezCommandLineOptionString : public ezCommandLineOptionDo
ezCommandLineOptionString(const char* szSortingGroup, const char* szArgument, const char* szLongDesc, const char* szDefaultValue, bool bCaseSensitive = false);

/// \brief Returns the value of this option. Either what was specified on the command line, or the default value.
ezString GetOptionValue(LogMode logMode, const ezCommandLineUtils* pUtils = ezCommandLineUtils::GetGlobalInstance()) const; // [tested]
const char* GetOptionValue(LogMode logMode, const ezCommandLineUtils* pUtils = ezCommandLineUtils::GetGlobalInstance()) const; // [tested]
Copy link
Member Author

@C-Core C-Core Jan 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jankrassnigg I changed the return value to const char* because you can easily end up with garbage strings if you return an ezString by value but the user assign it to a const char* then.

@C-Core C-Core merged commit a83650b into dev Jan 8, 2021
@C-Core C-Core deleted the user/ck/renderFoundationRefactor branch January 8, 2021 20:47
@jankrassnigg jankrassnigg added this to the Next Release milestone Jun 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE]Modernize RenderFoundation API
2 participants