Re: What does the "EF_", "FX_", "RT_" prefix in renderer-code mean?

#2
The RT_ prefix stands for RenderThread. This means that this method needs to be called from the render thread. To call these functions you often have 2 versions of the method, the RT version that can be called from the render thread, and the normal version that can be called from the main thread. Example:

Code: Select all

// Can be called from the main thread.
bool CD3D9Renderer::CreateDevice();

// Should only be called from the render thread. Calling CreateDevice() on the main thread will make sure this is called on the render thread.
bool CD3D9Renderer::RT_CreateDevice()
The FX_ prefix was used in the legacy pipeline for special effects, but is not used anymore as far as I know since the rendering refactor.

The EF_ prefix is most likely for "effects", but I'm not really sure what the exact meaning is of this prefix.

Who is online

Users browsing this forum: No registered users and 0 guests

cron