SDL  2.0
VULKAN_HPP_NAMESPACE::PushConstantRange Struct Reference

#include <vulkan.hpp>

+ Collaboration diagram for VULKAN_HPP_NAMESPACE::PushConstantRange:

Public Member Functions

 PushConstantRange (ShaderStageFlags stageFlags_=ShaderStageFlags(), uint32_t offset_=0, uint32_t size_=0)
 
 PushConstantRange (VkPushConstantRange const &rhs)
 
PushConstantRangeoperator= (VkPushConstantRange const &rhs)
 
PushConstantRangesetStageFlags (ShaderStageFlags stageFlags_)
 
PushConstantRangesetOffset (uint32_t offset_)
 
PushConstantRangesetSize (uint32_t size_)
 
 operator VkPushConstantRange const & () const
 
 operator VkPushConstantRange & ()
 
bool operator== (PushConstantRange const &rhs) const
 
bool operator!= (PushConstantRange const &rhs) const
 

Data Fields

ShaderStageFlags stageFlags
 
uint32_t offset
 
uint32_t size
 

Detailed Description

Definition at line 23148 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ PushConstantRange() [1/2]

VULKAN_HPP_NAMESPACE::PushConstantRange::PushConstantRange ( ShaderStageFlags  stageFlags_ = ShaderStageFlags(),
uint32_t  offset_ = 0,
uint32_t  size_ = 0 
)
inline

Definition at line 23150 of file vulkan.hpp.

23153  : stageFlags( stageFlags_ )
23154  , offset( offset_ )
23155  , size( size_ )
23156  {
23157  }

◆ PushConstantRange() [2/2]

VULKAN_HPP_NAMESPACE::PushConstantRange::PushConstantRange ( VkPushConstantRange const &  rhs)
inline

Definition at line 23159 of file vulkan.hpp.

23160  {
23161  memcpy( this, &rhs, sizeof( PushConstantRange ) );
23162  }

References memcpy.

Member Function Documentation

◆ operator VkPushConstantRange &()

VULKAN_HPP_NAMESPACE::PushConstantRange::operator VkPushConstantRange & ( )
inline

Definition at line 23192 of file vulkan.hpp.

23193  {
23194  return *reinterpret_cast<VkPushConstantRange*>(this);
23195  }

◆ operator VkPushConstantRange const &()

VULKAN_HPP_NAMESPACE::PushConstantRange::operator VkPushConstantRange const & ( ) const
inline

Definition at line 23187 of file vulkan.hpp.

23188  {
23189  return *reinterpret_cast<const VkPushConstantRange*>(this);
23190  }

◆ operator!=()

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

Definition at line 23204 of file vulkan.hpp.

23205  {
23206  return !operator==( rhs );
23207  }

References operator==().

◆ operator=()

PushConstantRange& VULKAN_HPP_NAMESPACE::PushConstantRange::operator= ( VkPushConstantRange const &  rhs)
inline

Definition at line 23164 of file vulkan.hpp.

23165  {
23166  memcpy( this, &rhs, sizeof( PushConstantRange ) );
23167  return *this;
23168  }

References memcpy.

◆ operator==()

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

Definition at line 23197 of file vulkan.hpp.

23198  {
23199  return ( stageFlags == rhs.stageFlags )
23200  && ( offset == rhs.offset )
23201  && ( size == rhs.size );
23202  }

References offset, size, and stageFlags.

Referenced by operator!=().

◆ setOffset()

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

Definition at line 23175 of file vulkan.hpp.

23176  {
23177  offset = offset_;
23178  return *this;
23179  }

◆ setSize()

PushConstantRange& VULKAN_HPP_NAMESPACE::PushConstantRange::setSize ( uint32_t  size_)
inline

Definition at line 23181 of file vulkan.hpp.

23182  {
23183  size = size_;
23184  return *this;
23185  }

◆ setStageFlags()

PushConstantRange& VULKAN_HPP_NAMESPACE::PushConstantRange::setStageFlags ( ShaderStageFlags  stageFlags_)
inline

Definition at line 23169 of file vulkan.hpp.

23170  {
23171  stageFlags = stageFlags_;
23172  return *this;
23173  }

References stageFlags.

Field Documentation

◆ offset

uint32_t VULKAN_HPP_NAMESPACE::PushConstantRange::offset

Definition at line 23210 of file vulkan.hpp.

Referenced by operator==().

◆ size

uint32_t VULKAN_HPP_NAMESPACE::PushConstantRange::size

Definition at line 23211 of file vulkan.hpp.

Referenced by operator==().

◆ stageFlags

ShaderStageFlags VULKAN_HPP_NAMESPACE::PushConstantRange::stageFlags

Definition at line 23209 of file vulkan.hpp.

Referenced by operator==(), and setStageFlags().


The documentation for this struct was generated from the following file:
offset
GLintptr offset
Definition: SDL_opengl_glext.h:538
VULKAN_HPP_NAMESPACE::PushConstantRange::stageFlags
ShaderStageFlags stageFlags
Definition: vulkan.hpp:23209
memcpy
#define memcpy
Definition: SDL_malloc.c:630
VULKAN_HPP_NAMESPACE::PushConstantRange::operator==
bool operator==(PushConstantRange const &rhs) const
Definition: vulkan.hpp:23197
size
GLsizeiptr size
Definition: SDL_opengl_glext.h:537
VULKAN_HPP_NAMESPACE::PushConstantRange::offset
uint32_t offset
Definition: vulkan.hpp:23210
VULKAN_HPP_NAMESPACE::PushConstantRange::size
uint32_t size
Definition: vulkan.hpp:23211
VULKAN_HPP_NAMESPACE::PushConstantRange::PushConstantRange
PushConstantRange(ShaderStageFlags stageFlags_=ShaderStageFlags(), uint32_t offset_=0, uint32_t size_=0)
Definition: vulkan.hpp:23150
VkPushConstantRange
Definition: vulkan_core.h:2494