SDL  2.0
VULKAN_HPP_NAMESPACE::VertexInputAttributeDescription Struct Reference

#include <vulkan.hpp>

Public Member Functions

 VertexInputAttributeDescription (uint32_t location_=0, uint32_t binding_=0, Format format_=Format::eUndefined, uint32_t offset_=0)
 
 VertexInputAttributeDescription (VkVertexInputAttributeDescription const &rhs)
 
VertexInputAttributeDescriptionoperator= (VkVertexInputAttributeDescription const &rhs)
 
VertexInputAttributeDescriptionsetLocation (uint32_t location_)
 
VertexInputAttributeDescriptionsetBinding (uint32_t binding_)
 
VertexInputAttributeDescriptionsetFormat (Format format_)
 
VertexInputAttributeDescriptionsetOffset (uint32_t offset_)
 
 operator VkVertexInputAttributeDescription const & () const
 
 operator VkVertexInputAttributeDescription & ()
 
bool operator== (VertexInputAttributeDescription const &rhs) const
 
bool operator!= (VertexInputAttributeDescription const &rhs) const
 

Data Fields

uint32_t location
 
uint32_t binding
 
Format format
 
uint32_t offset
 

Detailed Description

Definition at line 9062 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ VertexInputAttributeDescription() [1/2]

VULKAN_HPP_NAMESPACE::VertexInputAttributeDescription::VertexInputAttributeDescription ( uint32_t  location_ = 0,
uint32_t  binding_ = 0,
Format  format_ = Format::eUndefined,
uint32_t  offset_ = 0 
)
inline

Definition at line 9064 of file vulkan.hpp.

◆ VertexInputAttributeDescription() [2/2]

VULKAN_HPP_NAMESPACE::VertexInputAttributeDescription::VertexInputAttributeDescription ( VkVertexInputAttributeDescription const &  rhs)
inline

Definition at line 9075 of file vulkan.hpp.

References memcpy.

9076  {
9077  memcpy( this, &rhs, sizeof( VertexInputAttributeDescription ) );
9078  }
VertexInputAttributeDescription(uint32_t location_=0, uint32_t binding_=0, Format format_=Format::eUndefined, uint32_t offset_=0)
Definition: vulkan.hpp:9064
#define memcpy
Definition: SDL_malloc.c:630

Member Function Documentation

◆ operator VkVertexInputAttributeDescription &()

VULKAN_HPP_NAMESPACE::VertexInputAttributeDescription::operator VkVertexInputAttributeDescription & ( )
inline

Definition at line 9114 of file vulkan.hpp.

9115  {
9116  return *reinterpret_cast<VkVertexInputAttributeDescription*>(this);
9117  }

◆ operator VkVertexInputAttributeDescription const &()

VULKAN_HPP_NAMESPACE::VertexInputAttributeDescription::operator VkVertexInputAttributeDescription const & ( ) const
inline

Definition at line 9109 of file vulkan.hpp.

9110  {
9111  return *reinterpret_cast<const VkVertexInputAttributeDescription*>(this);
9112  }

◆ operator!=()

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

Definition at line 9127 of file vulkan.hpp.

9128  {
9129  return !operator==( rhs );
9130  }
bool operator==(VertexInputAttributeDescription const &rhs) const
Definition: vulkan.hpp:9119

◆ operator=()

VertexInputAttributeDescription& VULKAN_HPP_NAMESPACE::VertexInputAttributeDescription::operator= ( VkVertexInputAttributeDescription const &  rhs)
inline

Definition at line 9080 of file vulkan.hpp.

References memcpy.

9081  {
9082  memcpy( this, &rhs, sizeof( VertexInputAttributeDescription ) );
9083  return *this;
9084  }
VertexInputAttributeDescription(uint32_t location_=0, uint32_t binding_=0, Format format_=Format::eUndefined, uint32_t offset_=0)
Definition: vulkan.hpp:9064
#define memcpy
Definition: SDL_malloc.c:630

◆ operator==()

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

Definition at line 9119 of file vulkan.hpp.

References binding, format, location, and offset.

9120  {
9121  return ( location == rhs.location )
9122  && ( binding == rhs.binding )
9123  && ( format == rhs.format )
9124  && ( offset == rhs.offset );
9125  }
GLintptr offset
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: SDL_opengl.h:1572
GLint location

◆ setBinding()

VertexInputAttributeDescription& VULKAN_HPP_NAMESPACE::VertexInputAttributeDescription::setBinding ( uint32_t  binding_)
inline

Definition at line 9091 of file vulkan.hpp.

9092  {
9093  binding = binding_;
9094  return *this;
9095  }

◆ setFormat()

VertexInputAttributeDescription& VULKAN_HPP_NAMESPACE::VertexInputAttributeDescription::setFormat ( Format  format_)
inline

Definition at line 9097 of file vulkan.hpp.

9098  {
9099  format = format_;
9100  return *this;
9101  }
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: SDL_opengl.h:1572

◆ setLocation()

VertexInputAttributeDescription& VULKAN_HPP_NAMESPACE::VertexInputAttributeDescription::setLocation ( uint32_t  location_)
inline

Definition at line 9085 of file vulkan.hpp.

9086  {
9087  location = location_;
9088  return *this;
9089  }
GLint location

◆ setOffset()

VertexInputAttributeDescription& VULKAN_HPP_NAMESPACE::VertexInputAttributeDescription::setOffset ( uint32_t  offset_)
inline

Definition at line 9103 of file vulkan.hpp.

9104  {
9105  offset = offset_;
9106  return *this;
9107  }
GLintptr offset

Field Documentation

◆ binding

uint32_t VULKAN_HPP_NAMESPACE::VertexInputAttributeDescription::binding

Definition at line 9133 of file vulkan.hpp.

Referenced by operator==().

◆ format

Format VULKAN_HPP_NAMESPACE::VertexInputAttributeDescription::format

Definition at line 9134 of file vulkan.hpp.

Referenced by operator==().

◆ location

uint32_t VULKAN_HPP_NAMESPACE::VertexInputAttributeDescription::location

Definition at line 9132 of file vulkan.hpp.

Referenced by operator==().

◆ offset

uint32_t VULKAN_HPP_NAMESPACE::VertexInputAttributeDescription::offset

Definition at line 9135 of file vulkan.hpp.

Referenced by operator==().


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