SDL  2.0
VULKAN_HPP_NAMESPACE::SamplerCreateInfo Struct Reference

#include <vulkan.hpp>

+ Collaboration diagram for VULKAN_HPP_NAMESPACE::SamplerCreateInfo:

Public Member Functions

 SamplerCreateInfo (SamplerCreateFlags flags_=SamplerCreateFlags(), Filter magFilter_=Filter::eNearest, Filter minFilter_=Filter::eNearest, SamplerMipmapMode mipmapMode_=SamplerMipmapMode::eNearest, SamplerAddressMode addressModeU_=SamplerAddressMode::eRepeat, SamplerAddressMode addressModeV_=SamplerAddressMode::eRepeat, SamplerAddressMode addressModeW_=SamplerAddressMode::eRepeat, float mipLodBias_=0, Bool32 anisotropyEnable_=0, float maxAnisotropy_=0, Bool32 compareEnable_=0, CompareOp compareOp_=CompareOp::eNever, float minLod_=0, float maxLod_=0, BorderColor borderColor_=BorderColor::eFloatTransparentBlack, Bool32 unnormalizedCoordinates_=0)
 
 SamplerCreateInfo (VkSamplerCreateInfo const &rhs)
 
SamplerCreateInfooperator= (VkSamplerCreateInfo const &rhs)
 
SamplerCreateInfosetPNext (const void *pNext_)
 
SamplerCreateInfosetFlags (SamplerCreateFlags flags_)
 
SamplerCreateInfosetMagFilter (Filter magFilter_)
 
SamplerCreateInfosetMinFilter (Filter minFilter_)
 
SamplerCreateInfosetMipmapMode (SamplerMipmapMode mipmapMode_)
 
SamplerCreateInfosetAddressModeU (SamplerAddressMode addressModeU_)
 
SamplerCreateInfosetAddressModeV (SamplerAddressMode addressModeV_)
 
SamplerCreateInfosetAddressModeW (SamplerAddressMode addressModeW_)
 
SamplerCreateInfosetMipLodBias (float mipLodBias_)
 
SamplerCreateInfosetAnisotropyEnable (Bool32 anisotropyEnable_)
 
SamplerCreateInfosetMaxAnisotropy (float maxAnisotropy_)
 
SamplerCreateInfosetCompareEnable (Bool32 compareEnable_)
 
SamplerCreateInfosetCompareOp (CompareOp compareOp_)
 
SamplerCreateInfosetMinLod (float minLod_)
 
SamplerCreateInfosetMaxLod (float maxLod_)
 
SamplerCreateInfosetBorderColor (BorderColor borderColor_)
 
SamplerCreateInfosetUnnormalizedCoordinates (Bool32 unnormalizedCoordinates_)
 
 operator VkSamplerCreateInfo const & () const
 
 operator VkSamplerCreateInfo & ()
 
bool operator== (SamplerCreateInfo const &rhs) const
 
bool operator!= (SamplerCreateInfo const &rhs) const
 

Data Fields

const voidpNext = nullptr
 
SamplerCreateFlags flags
 
Filter magFilter
 
Filter minFilter
 
SamplerMipmapMode mipmapMode
 
SamplerAddressMode addressModeU
 
SamplerAddressMode addressModeV
 
SamplerAddressMode addressModeW
 
float mipLodBias
 
Bool32 anisotropyEnable
 
float maxAnisotropy
 
Bool32 compareEnable
 
CompareOp compareOp
 
float minLod
 
float maxLod
 
BorderColor borderColor
 
Bool32 unnormalizedCoordinates
 

Private Attributes

StructureType sType = StructureType::eSamplerCreateInfo
 

Detailed Description

Definition at line 11110 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ SamplerCreateInfo() [1/2]

VULKAN_HPP_NAMESPACE::SamplerCreateInfo::SamplerCreateInfo ( SamplerCreateFlags  flags_ = SamplerCreateFlags(),
Filter  magFilter_ = Filter::eNearest,
Filter  minFilter_ = Filter::eNearest,
SamplerMipmapMode  mipmapMode_ = SamplerMipmapMode::eNearest,
SamplerAddressMode  addressModeU_ = SamplerAddressMode::eRepeat,
SamplerAddressMode  addressModeV_ = SamplerAddressMode::eRepeat,
SamplerAddressMode  addressModeW_ = SamplerAddressMode::eRepeat,
float  mipLodBias_ = 0,
Bool32  anisotropyEnable_ = 0,
float  maxAnisotropy_ = 0,
Bool32  compareEnable_ = 0,
CompareOp  compareOp_ = CompareOp::eNever,
float  minLod_ = 0,
float  maxLod_ = 0,
BorderColor  borderColor_ = BorderColor::eFloatTransparentBlack,
Bool32  unnormalizedCoordinates_ = 0 
)
inline

Definition at line 11112 of file vulkan.hpp.

11128  : flags( flags_ )
11129  , magFilter( magFilter_ )
11130  , minFilter( minFilter_ )
11131  , mipmapMode( mipmapMode_ )
11132  , addressModeU( addressModeU_ )
11133  , addressModeV( addressModeV_ )
11134  , addressModeW( addressModeW_ )
11135  , mipLodBias( mipLodBias_ )
11136  , anisotropyEnable( anisotropyEnable_ )
11137  , maxAnisotropy( maxAnisotropy_ )
11138  , compareEnable( compareEnable_ )
11139  , compareOp( compareOp_ )
11140  , minLod( minLod_ )
11141  , maxLod( maxLod_ )
11142  , borderColor( borderColor_ )
11143  , unnormalizedCoordinates( unnormalizedCoordinates_ )
11144  {
11145  }

◆ SamplerCreateInfo() [2/2]

VULKAN_HPP_NAMESPACE::SamplerCreateInfo::SamplerCreateInfo ( VkSamplerCreateInfo const &  rhs)
inline

Definition at line 11147 of file vulkan.hpp.

References memcpy.

11148  {
11149  memcpy( this, &rhs, sizeof( SamplerCreateInfo ) );
11150  }
SamplerCreateInfo(SamplerCreateFlags flags_=SamplerCreateFlags(), Filter magFilter_=Filter::eNearest, Filter minFilter_=Filter::eNearest, SamplerMipmapMode mipmapMode_=SamplerMipmapMode::eNearest, SamplerAddressMode addressModeU_=SamplerAddressMode::eRepeat, SamplerAddressMode addressModeV_=SamplerAddressMode::eRepeat, SamplerAddressMode addressModeW_=SamplerAddressMode::eRepeat, float mipLodBias_=0, Bool32 anisotropyEnable_=0, float maxAnisotropy_=0, Bool32 compareEnable_=0, CompareOp compareOp_=CompareOp::eNever, float minLod_=0, float maxLod_=0, BorderColor borderColor_=BorderColor::eFloatTransparentBlack, Bool32 unnormalizedCoordinates_=0)
Definition: vulkan.hpp:11112
#define memcpy
Definition: SDL_malloc.c:630

Member Function Documentation

◆ operator VkSamplerCreateInfo &()

VULKAN_HPP_NAMESPACE::SamplerCreateInfo::operator VkSamplerCreateInfo & ( )
inline

Definition at line 11264 of file vulkan.hpp.

11265  {
11266  return *reinterpret_cast<VkSamplerCreateInfo*>(this);
11267  }

◆ operator VkSamplerCreateInfo const &()

VULKAN_HPP_NAMESPACE::SamplerCreateInfo::operator VkSamplerCreateInfo const & ( ) const
inline

Definition at line 11259 of file vulkan.hpp.

11260  {
11261  return *reinterpret_cast<const VkSamplerCreateInfo*>(this);
11262  }

◆ operator!=()

bool VULKAN_HPP_NAMESPACE::SamplerCreateInfo::operator!= ( SamplerCreateInfo const &  rhs) const
inline

Definition at line 11291 of file vulkan.hpp.

11292  {
11293  return !operator==( rhs );
11294  }
bool operator==(SamplerCreateInfo const &rhs) const
Definition: vulkan.hpp:11269

◆ operator=()

SamplerCreateInfo& VULKAN_HPP_NAMESPACE::SamplerCreateInfo::operator= ( VkSamplerCreateInfo const &  rhs)
inline

Definition at line 11152 of file vulkan.hpp.

References memcpy.

11153  {
11154  memcpy( this, &rhs, sizeof( SamplerCreateInfo ) );
11155  return *this;
11156  }
SamplerCreateInfo(SamplerCreateFlags flags_=SamplerCreateFlags(), Filter magFilter_=Filter::eNearest, Filter minFilter_=Filter::eNearest, SamplerMipmapMode mipmapMode_=SamplerMipmapMode::eNearest, SamplerAddressMode addressModeU_=SamplerAddressMode::eRepeat, SamplerAddressMode addressModeV_=SamplerAddressMode::eRepeat, SamplerAddressMode addressModeW_=SamplerAddressMode::eRepeat, float mipLodBias_=0, Bool32 anisotropyEnable_=0, float maxAnisotropy_=0, Bool32 compareEnable_=0, CompareOp compareOp_=CompareOp::eNever, float minLod_=0, float maxLod_=0, BorderColor borderColor_=BorderColor::eFloatTransparentBlack, Bool32 unnormalizedCoordinates_=0)
Definition: vulkan.hpp:11112
#define memcpy
Definition: SDL_malloc.c:630

◆ operator==()

bool VULKAN_HPP_NAMESPACE::SamplerCreateInfo::operator== ( SamplerCreateInfo const &  rhs) const
inline

Definition at line 11269 of file vulkan.hpp.

References addressModeU, addressModeV, addressModeW, anisotropyEnable, borderColor, compareEnable, compareOp, flags, magFilter, maxAnisotropy, maxLod, minFilter, minLod, mipLodBias, mipmapMode, pNext, sType, and unnormalizedCoordinates.

11270  {
11271  return ( sType == rhs.sType )
11272  && ( pNext == rhs.pNext )
11273  && ( flags == rhs.flags )
11274  && ( magFilter == rhs.magFilter )
11275  && ( minFilter == rhs.minFilter )
11276  && ( mipmapMode == rhs.mipmapMode )
11277  && ( addressModeU == rhs.addressModeU )
11278  && ( addressModeV == rhs.addressModeV )
11279  && ( addressModeW == rhs.addressModeW )
11280  && ( mipLodBias == rhs.mipLodBias )
11281  && ( anisotropyEnable == rhs.anisotropyEnable )
11282  && ( maxAnisotropy == rhs.maxAnisotropy )
11283  && ( compareEnable == rhs.compareEnable )
11284  && ( compareOp == rhs.compareOp )
11285  && ( minLod == rhs.minLod )
11286  && ( maxLod == rhs.maxLod )
11287  && ( borderColor == rhs.borderColor )
11288  && ( unnormalizedCoordinates == rhs.unnormalizedCoordinates );
11289  }
GLbitfield flags

◆ setAddressModeU()

SamplerCreateInfo& VULKAN_HPP_NAMESPACE::SamplerCreateInfo::setAddressModeU ( SamplerAddressMode  addressModeU_)
inline

Definition at line 11187 of file vulkan.hpp.

11188  {
11189  addressModeU = addressModeU_;
11190  return *this;
11191  }

◆ setAddressModeV()

SamplerCreateInfo& VULKAN_HPP_NAMESPACE::SamplerCreateInfo::setAddressModeV ( SamplerAddressMode  addressModeV_)
inline

Definition at line 11193 of file vulkan.hpp.

11194  {
11195  addressModeV = addressModeV_;
11196  return *this;
11197  }

◆ setAddressModeW()

SamplerCreateInfo& VULKAN_HPP_NAMESPACE::SamplerCreateInfo::setAddressModeW ( SamplerAddressMode  addressModeW_)
inline

Definition at line 11199 of file vulkan.hpp.

11200  {
11201  addressModeW = addressModeW_;
11202  return *this;
11203  }

◆ setAnisotropyEnable()

SamplerCreateInfo& VULKAN_HPP_NAMESPACE::SamplerCreateInfo::setAnisotropyEnable ( Bool32  anisotropyEnable_)
inline

Definition at line 11211 of file vulkan.hpp.

11212  {
11213  anisotropyEnable = anisotropyEnable_;
11214  return *this;
11215  }

◆ setBorderColor()

SamplerCreateInfo& VULKAN_HPP_NAMESPACE::SamplerCreateInfo::setBorderColor ( BorderColor  borderColor_)
inline

Definition at line 11247 of file vulkan.hpp.

11248  {
11249  borderColor = borderColor_;
11250  return *this;
11251  }

◆ setCompareEnable()

SamplerCreateInfo& VULKAN_HPP_NAMESPACE::SamplerCreateInfo::setCompareEnable ( Bool32  compareEnable_)
inline

Definition at line 11223 of file vulkan.hpp.

11224  {
11225  compareEnable = compareEnable_;
11226  return *this;
11227  }

◆ setCompareOp()

SamplerCreateInfo& VULKAN_HPP_NAMESPACE::SamplerCreateInfo::setCompareOp ( CompareOp  compareOp_)
inline

Definition at line 11229 of file vulkan.hpp.

11230  {
11231  compareOp = compareOp_;
11232  return *this;
11233  }

◆ setFlags()

SamplerCreateInfo& VULKAN_HPP_NAMESPACE::SamplerCreateInfo::setFlags ( SamplerCreateFlags  flags_)
inline

Definition at line 11163 of file vulkan.hpp.

11164  {
11165  flags = flags_;
11166  return *this;
11167  }
GLbitfield flags

◆ setMagFilter()

SamplerCreateInfo& VULKAN_HPP_NAMESPACE::SamplerCreateInfo::setMagFilter ( Filter  magFilter_)
inline

Definition at line 11169 of file vulkan.hpp.

11170  {
11171  magFilter = magFilter_;
11172  return *this;
11173  }

◆ setMaxAnisotropy()

SamplerCreateInfo& VULKAN_HPP_NAMESPACE::SamplerCreateInfo::setMaxAnisotropy ( float  maxAnisotropy_)
inline

Definition at line 11217 of file vulkan.hpp.

11218  {
11219  maxAnisotropy = maxAnisotropy_;
11220  return *this;
11221  }

◆ setMaxLod()

SamplerCreateInfo& VULKAN_HPP_NAMESPACE::SamplerCreateInfo::setMaxLod ( float  maxLod_)
inline

Definition at line 11241 of file vulkan.hpp.

11242  {
11243  maxLod = maxLod_;
11244  return *this;
11245  }

◆ setMinFilter()

SamplerCreateInfo& VULKAN_HPP_NAMESPACE::SamplerCreateInfo::setMinFilter ( Filter  minFilter_)
inline

Definition at line 11175 of file vulkan.hpp.

11176  {
11177  minFilter = minFilter_;
11178  return *this;
11179  }

◆ setMinLod()

SamplerCreateInfo& VULKAN_HPP_NAMESPACE::SamplerCreateInfo::setMinLod ( float  minLod_)
inline

Definition at line 11235 of file vulkan.hpp.

11236  {
11237  minLod = minLod_;
11238  return *this;
11239  }

◆ setMipLodBias()

SamplerCreateInfo& VULKAN_HPP_NAMESPACE::SamplerCreateInfo::setMipLodBias ( float  mipLodBias_)
inline

Definition at line 11205 of file vulkan.hpp.

11206  {
11207  mipLodBias = mipLodBias_;
11208  return *this;
11209  }

◆ setMipmapMode()

SamplerCreateInfo& VULKAN_HPP_NAMESPACE::SamplerCreateInfo::setMipmapMode ( SamplerMipmapMode  mipmapMode_)
inline

Definition at line 11181 of file vulkan.hpp.

11182  {
11183  mipmapMode = mipmapMode_;
11184  return *this;
11185  }

◆ setPNext()

SamplerCreateInfo& VULKAN_HPP_NAMESPACE::SamplerCreateInfo::setPNext ( const void pNext_)
inline

Definition at line 11157 of file vulkan.hpp.

11158  {
11159  pNext = pNext_;
11160  return *this;
11161  }

◆ setUnnormalizedCoordinates()

SamplerCreateInfo& VULKAN_HPP_NAMESPACE::SamplerCreateInfo::setUnnormalizedCoordinates ( Bool32  unnormalizedCoordinates_)
inline

Definition at line 11253 of file vulkan.hpp.

11254  {
11255  unnormalizedCoordinates = unnormalizedCoordinates_;
11256  return *this;
11257  }

Field Documentation

◆ addressModeU

SamplerAddressMode VULKAN_HPP_NAMESPACE::SamplerCreateInfo::addressModeU

Definition at line 11305 of file vulkan.hpp.

Referenced by operator==().

◆ addressModeV

SamplerAddressMode VULKAN_HPP_NAMESPACE::SamplerCreateInfo::addressModeV

Definition at line 11306 of file vulkan.hpp.

Referenced by operator==().

◆ addressModeW

SamplerAddressMode VULKAN_HPP_NAMESPACE::SamplerCreateInfo::addressModeW

Definition at line 11307 of file vulkan.hpp.

Referenced by operator==().

◆ anisotropyEnable

Bool32 VULKAN_HPP_NAMESPACE::SamplerCreateInfo::anisotropyEnable

Definition at line 11309 of file vulkan.hpp.

Referenced by operator==().

◆ borderColor

BorderColor VULKAN_HPP_NAMESPACE::SamplerCreateInfo::borderColor

Definition at line 11315 of file vulkan.hpp.

Referenced by operator==().

◆ compareEnable

Bool32 VULKAN_HPP_NAMESPACE::SamplerCreateInfo::compareEnable

Definition at line 11311 of file vulkan.hpp.

Referenced by operator==().

◆ compareOp

CompareOp VULKAN_HPP_NAMESPACE::SamplerCreateInfo::compareOp

Definition at line 11312 of file vulkan.hpp.

Referenced by operator==().

◆ flags

SamplerCreateFlags VULKAN_HPP_NAMESPACE::SamplerCreateInfo::flags

Definition at line 11301 of file vulkan.hpp.

Referenced by operator==().

◆ magFilter

Filter VULKAN_HPP_NAMESPACE::SamplerCreateInfo::magFilter

Definition at line 11302 of file vulkan.hpp.

Referenced by operator==().

◆ maxAnisotropy

float VULKAN_HPP_NAMESPACE::SamplerCreateInfo::maxAnisotropy

Definition at line 11310 of file vulkan.hpp.

Referenced by operator==().

◆ maxLod

float VULKAN_HPP_NAMESPACE::SamplerCreateInfo::maxLod

Definition at line 11314 of file vulkan.hpp.

Referenced by operator==().

◆ minFilter

Filter VULKAN_HPP_NAMESPACE::SamplerCreateInfo::minFilter

Definition at line 11303 of file vulkan.hpp.

Referenced by operator==().

◆ minLod

float VULKAN_HPP_NAMESPACE::SamplerCreateInfo::minLod

Definition at line 11313 of file vulkan.hpp.

Referenced by operator==().

◆ mipLodBias

float VULKAN_HPP_NAMESPACE::SamplerCreateInfo::mipLodBias

Definition at line 11308 of file vulkan.hpp.

Referenced by operator==().

◆ mipmapMode

SamplerMipmapMode VULKAN_HPP_NAMESPACE::SamplerCreateInfo::mipmapMode

Definition at line 11304 of file vulkan.hpp.

Referenced by operator==().

◆ pNext

const void* VULKAN_HPP_NAMESPACE::SamplerCreateInfo::pNext = nullptr

Definition at line 11300 of file vulkan.hpp.

Referenced by operator==().

◆ sType

StructureType VULKAN_HPP_NAMESPACE::SamplerCreateInfo::sType = StructureType::eSamplerCreateInfo
private

Definition at line 11297 of file vulkan.hpp.

Referenced by operator==().

◆ unnormalizedCoordinates

Bool32 VULKAN_HPP_NAMESPACE::SamplerCreateInfo::unnormalizedCoordinates

Definition at line 11316 of file vulkan.hpp.

Referenced by operator==().


The documentation for this struct was generated from the following file: