MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetResolution

Function GetResolution

Source/Engine/Graphics/RenderTools.h:38–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37 template<typename ResolutionMode>
38 FORCE_INLINE static int32 GetResolution(int32 base, ResolutionMode mode)
39 {
40 return Math::DivideAndRoundUp(base, (int32)mode);
41 }
42
43 /// <summary>
44 /// Computes the feature level for the given shader profile.

Callers 6

RenderMotionVectorsMethod · 0.85
RenderMethod · 0.85
RenderMethod · 0.85
RenderMethod · 0.85
RequestHalfResDepthMethod · 0.85
GetOutputPathMethod · 0.85

Calls 1

DivideAndRoundUpFunction · 0.85

Tested by

no test coverage detected