BsRenderBeastOptions.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsRenderBeastPrerequisites.h"
  5. #include "BsRenderer.h"
  6. #include "BsRenderQueue.h"
  7. namespace BansheeEngine
  8. {
  9. /** @addtogroup RenderBeast
  10. * @{
  11. */
  12. /** Texture filtering options for RenderBeast. */
  13. enum class RenderBeastFiltering
  14. {
  15. Bilinear, /**< Sample linearly in X and Y directions within a texture mip level. */
  16. Trilinear, /**< Sample bilinearly and also between texture mip levels to hide the mip transitions. */
  17. Anisotropic /**< High quality dynamic filtering that improves quality of angled surfaces */
  18. };
  19. /** A set of options used for controlling the rendering of the RenderBeast renderer. */
  20. struct BS_BSRND_EXPORT RenderBeastOptions : public CoreRendererOptions
  21. {
  22. RenderBeastOptions() { }
  23. /** Type of filtering to use for all textures on scene elements. */
  24. RenderBeastFiltering filtering = RenderBeastFiltering::Anisotropic;
  25. /**
  26. * Maximum number of samples to be used when performing anisotropic filtering. Only relevant if #filtering is set to
  27. * RenderBeastFiltering::Anisotropic.
  28. */
  29. UINT32 anisotropyMax = 16;
  30. /**
  31. * Controls if and how a render queue groups renderable objects by material in order to reduce number of state
  32. * changes. Sorting by material can reduce CPU usage but could increase overdraw.
  33. */
  34. StateReduction stateReductionMode = StateReduction::Distance;
  35. };
  36. /** @} */
  37. }