SDL  2.0
VULKAN_HPP_NAMESPACE::ClearDepthStencilValue Struct Reference

#include <vulkan.hpp>

Public Member Functions

VULKAN_HPP_CONSTEXPR ClearDepthStencilValue (float depth_={}, uint32_t stencil_={}) VULKAN_HPP_NOEXCEPT
 
VULKAN_HPP_CONSTEXPR ClearDepthStencilValue (ClearDepthStencilValue const &rhs) VULKAN_HPP_NOEXCEPT=default
 
 ClearDepthStencilValue (VkClearDepthStencilValue const &rhs) VULKAN_HPP_NOEXCEPT
 
ClearDepthStencilValueoperator= (VkClearDepthStencilValue const &rhs) VULKAN_HPP_NOEXCEPT
 
ClearDepthStencilValueoperator= (ClearDepthStencilValue const &rhs) VULKAN_HPP_NOEXCEPT
 
ClearDepthStencilValuesetDepth (float depth_) VULKAN_HPP_NOEXCEPT
 
ClearDepthStencilValuesetStencil (uint32_t stencil_) VULKAN_HPP_NOEXCEPT
 
 operator VkClearDepthStencilValue const & () const VULKAN_HPP_NOEXCEPT
 
 operator VkClearDepthStencilValue & () VULKAN_HPP_NOEXCEPT
 
bool operator== (ClearDepthStencilValue const &rhs) const VULKAN_HPP_NOEXCEPT
 
bool operator!= (ClearDepthStencilValue const &rhs) const VULKAN_HPP_NOEXCEPT
 

Data Fields

float depth = {}
 
uint32_t stencil = {}
 

Detailed Description

Definition at line 23367 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ ClearDepthStencilValue() [1/3]

VULKAN_HPP_CONSTEXPR VULKAN_HPP_NAMESPACE::ClearDepthStencilValue::ClearDepthStencilValue ( float  depth_ = {},
uint32_t  stencil_ = {} 
)
inline

Definition at line 23372 of file vulkan.hpp.

23372  {}, uint32_t stencil_ = {}) VULKAN_HPP_NOEXCEPT
23373  : depth( depth_ ), stencil( stencil_ )
23374  {}
unsigned int uint32_t
#define VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:179

◆ ClearDepthStencilValue() [2/3]

VULKAN_HPP_CONSTEXPR VULKAN_HPP_NAMESPACE::ClearDepthStencilValue::ClearDepthStencilValue ( ClearDepthStencilValue const &  rhs)
default

◆ ClearDepthStencilValue() [3/3]

VULKAN_HPP_NAMESPACE::ClearDepthStencilValue::ClearDepthStencilValue ( VkClearDepthStencilValue const &  rhs)
inline

Definition at line 23378 of file vulkan.hpp.

23379  {
23380  *this = rhs;
23381  }

Member Function Documentation

◆ operator VkClearDepthStencilValue &()

VULKAN_HPP_NAMESPACE::ClearDepthStencilValue::operator VkClearDepthStencilValue & ( )
inline

Definition at line 23414 of file vulkan.hpp.

23415  {
23416  return *reinterpret_cast<VkClearDepthStencilValue*>( this );
23417  }

◆ operator VkClearDepthStencilValue const &()

VULKAN_HPP_NAMESPACE::ClearDepthStencilValue::operator VkClearDepthStencilValue const & ( ) const
inline

Definition at line 23409 of file vulkan.hpp.

23410  {
23411  return *reinterpret_cast<const VkClearDepthStencilValue*>( this );
23412  }

◆ operator!=()

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

Definition at line 23429 of file vulkan.hpp.

23430  {
23431  return !operator==( rhs );
23432  }
bool operator==(ClearDepthStencilValue const &rhs) const VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:23423

References VULKAN_HPP_NAMESPACE::operator==().

◆ operator=() [1/2]

ClearDepthStencilValue& VULKAN_HPP_NAMESPACE::ClearDepthStencilValue::operator= ( ClearDepthStencilValue const &  rhs)
inline

Definition at line 23390 of file vulkan.hpp.

23391  {
23392  memcpy( static_cast<void *>( this ), &rhs, sizeof( ClearDepthStencilValue ) );
23393  return *this;
23394  }
#define memcpy
Definition: SDL_malloc.c:630
VULKAN_HPP_CONSTEXPR ClearDepthStencilValue(float depth_={}, uint32_t stencil_={}) VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:23372

References memcpy.

◆ operator=() [2/2]

ClearDepthStencilValue& VULKAN_HPP_NAMESPACE::ClearDepthStencilValue::operator= ( VkClearDepthStencilValue const &  rhs)
inline

Definition at line 23384 of file vulkan.hpp.

23385  {
23386  *this = *reinterpret_cast<VULKAN_HPP_NAMESPACE::ClearDepthStencilValue const *>( &rhs );
23387  return *this;
23388  }

◆ operator==()

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

Definition at line 23423 of file vulkan.hpp.

23424  {
23425  return ( depth == rhs.depth )
23426  && ( stencil == rhs.stencil );
23427  }
GLint GLint GLsizei GLsizei GLsizei depth
Definition: SDL_opengl.h:1572
GLint GLfloat GLint stencil

◆ setDepth()

ClearDepthStencilValue& VULKAN_HPP_NAMESPACE::ClearDepthStencilValue::setDepth ( float  depth_)
inline

Definition at line 23396 of file vulkan.hpp.

23397  {
23398  depth = depth_;
23399  return *this;
23400  }

◆ setStencil()

ClearDepthStencilValue& VULKAN_HPP_NAMESPACE::ClearDepthStencilValue::setStencil ( uint32_t  stencil_)
inline

Definition at line 23402 of file vulkan.hpp.

23403  {
23404  stencil = stencil_;
23405  return *this;
23406  }

Field Documentation

◆ depth

float VULKAN_HPP_NAMESPACE::ClearDepthStencilValue::depth = {}

Definition at line 23438 of file vulkan.hpp.

◆ stencil

uint32_t VULKAN_HPP_NAMESPACE::ClearDepthStencilValue::stencil = {}

Definition at line 23439 of file vulkan.hpp.


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