SDL 2.0
VULKAN_HPP_NAMESPACE::ComponentMapping Struct Reference

#include <vulkan.hpp>

Public Member Functions

 ComponentMapping (ComponentSwizzle r_=ComponentSwizzle::eIdentity, ComponentSwizzle g_=ComponentSwizzle::eIdentity, ComponentSwizzle b_=ComponentSwizzle::eIdentity, ComponentSwizzle a_=ComponentSwizzle::eIdentity)
 
 ComponentMapping (VkComponentMapping const &rhs)
 
ComponentMappingoperator= (VkComponentMapping const &rhs)
 
ComponentMappingsetR (ComponentSwizzle r_)
 
ComponentMappingsetG (ComponentSwizzle g_)
 
ComponentMappingsetB (ComponentSwizzle b_)
 
ComponentMappingsetA (ComponentSwizzle a_)
 
 operator VkComponentMapping const & () const
 
 operator VkComponentMapping & ()
 
bool operator== (ComponentMapping const &rhs) const
 
bool operator!= (ComponentMapping const &rhs) const
 

Data Fields

ComponentSwizzle r
 
ComponentSwizzle g
 
ComponentSwizzle b
 
ComponentSwizzle a
 

Detailed Description

Definition at line 8099 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ ComponentMapping() [1/2]

Definition at line 8101 of file vulkan.hpp.

8105 : r( r_ )
8106 , g( g_ )
8107 , b( b_ )
8108 , a( a_ )
8109 {
8110 }

◆ ComponentMapping() [2/2]

VULKAN_HPP_NAMESPACE::ComponentMapping::ComponentMapping ( VkComponentMapping const &  rhs)
inline

Definition at line 8112 of file vulkan.hpp.

8113 {
8114 memcpy( this, &rhs, sizeof( ComponentMapping ) );
8115 }
#define memcpy
Definition: SDL_malloc.c:630
ComponentMapping(ComponentSwizzle r_=ComponentSwizzle::eIdentity, ComponentSwizzle g_=ComponentSwizzle::eIdentity, ComponentSwizzle b_=ComponentSwizzle::eIdentity, ComponentSwizzle a_=ComponentSwizzle::eIdentity)
Definition: vulkan.hpp:8101

References memcpy.

Member Function Documentation

◆ operator VkComponentMapping &()

VULKAN_HPP_NAMESPACE::ComponentMapping::operator VkComponentMapping & ( )
inline

Definition at line 8151 of file vulkan.hpp.

8152 {
8153 return *reinterpret_cast<VkComponentMapping*>(this);
8154 }

◆ operator VkComponentMapping const &()

VULKAN_HPP_NAMESPACE::ComponentMapping::operator VkComponentMapping const & ( ) const
inline

Definition at line 8146 of file vulkan.hpp.

8147 {
8148 return *reinterpret_cast<const VkComponentMapping*>(this);
8149 }

◆ operator!=()

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

Definition at line 8164 of file vulkan.hpp.

8165 {
8166 return !operator==( rhs );
8167 }
bool operator==(ComponentMapping const &rhs) const
Definition: vulkan.hpp:8156

References operator==().

◆ operator=()

ComponentMapping & VULKAN_HPP_NAMESPACE::ComponentMapping::operator= ( VkComponentMapping const &  rhs)
inline

Definition at line 8117 of file vulkan.hpp.

8118 {
8119 memcpy( this, &rhs, sizeof( ComponentMapping ) );
8120 return *this;
8121 }

References memcpy.

◆ operator==()

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

Definition at line 8156 of file vulkan.hpp.

8157 {
8158 return ( r == rhs.r )
8159 && ( g == rhs.g )
8160 && ( b == rhs.b )
8161 && ( a == rhs.a );
8162 }
GLdouble GLdouble GLdouble r
Definition: SDL_opengl.h:2079
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
GLboolean GLboolean g

References a, b, g, and r.

Referenced by operator!=().

◆ setA()

ComponentMapping & VULKAN_HPP_NAMESPACE::ComponentMapping::setA ( ComponentSwizzle  a_)
inline

Definition at line 8140 of file vulkan.hpp.

8141 {
8142 a = a_;
8143 return *this;
8144 }

◆ setB()

ComponentMapping & VULKAN_HPP_NAMESPACE::ComponentMapping::setB ( ComponentSwizzle  b_)
inline

Definition at line 8134 of file vulkan.hpp.

8135 {
8136 b = b_;
8137 return *this;
8138 }

◆ setG()

ComponentMapping & VULKAN_HPP_NAMESPACE::ComponentMapping::setG ( ComponentSwizzle  g_)
inline

Definition at line 8128 of file vulkan.hpp.

8129 {
8130 g = g_;
8131 return *this;
8132 }

◆ setR()

ComponentMapping & VULKAN_HPP_NAMESPACE::ComponentMapping::setR ( ComponentSwizzle  r_)
inline

Definition at line 8122 of file vulkan.hpp.

8123 {
8124 r = r_;
8125 return *this;
8126 }

Field Documentation

◆ a

ComponentSwizzle VULKAN_HPP_NAMESPACE::ComponentMapping::a

Definition at line 8172 of file vulkan.hpp.

Referenced by operator==().

◆ b

ComponentSwizzle VULKAN_HPP_NAMESPACE::ComponentMapping::b

Definition at line 8171 of file vulkan.hpp.

Referenced by operator==().

◆ g

ComponentSwizzle VULKAN_HPP_NAMESPACE::ComponentMapping::g

Definition at line 8170 of file vulkan.hpp.

Referenced by operator==().

◆ r

ComponentSwizzle VULKAN_HPP_NAMESPACE::ComponentMapping::r

Definition at line 8169 of file vulkan.hpp.

Referenced by operator==().


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