Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
Grindstone::GraphicsAPI::SamplerOptions Struct Reference

#include <Sampler.hpp>

Public Member Functions

bool operator== (const SamplerOptions &o) const
bool operator!= (const SamplerOptions &o) const

Public Attributes

TextureWrapMode wrapModeU = TextureWrapMode::Repeat
TextureWrapMode wrapModeV = TextureWrapMode::Repeat
TextureWrapMode wrapModeW = TextureWrapMode::Repeat
TextureFilter mipFilter = TextureFilter::Nearest
TextureFilter minFilter = TextureFilter::Linear
TextureFilter magFilter = TextureFilter::Linear
float anistropy = 0.0f
float mipMin = -1000.f
float mipMax = 1000.0f
float mipBias = 0.0f

Detailed Description

SamplerOptions control how textures are sampled. Wrap Modes dictate how an image will be sampled when trying to get data outside the coordinates of the image. Mip Filters, Min Filters, and Mag filters dictate how pixels will be sampled when trying to get data a fraction of the way between pixels or partway between mips.


The documentation for this struct was generated from the following file:
  • /github/workspace/sources/code/Common/Graphics/Sampler.hpp