SDL  2.0
VULKAN_HPP_NAMESPACE::DescriptorBufferInfo Struct Reference

#include <vulkan.hpp>

+ Collaboration diagram for VULKAN_HPP_NAMESPACE::DescriptorBufferInfo:

Public Member Functions

 DescriptorBufferInfo (Buffer buffer_=Buffer(), DeviceSize offset_=0, DeviceSize range_=0)
 
 DescriptorBufferInfo (VkDescriptorBufferInfo const &rhs)
 
DescriptorBufferInfooperator= (VkDescriptorBufferInfo const &rhs)
 
DescriptorBufferInfosetBuffer (Buffer buffer_)
 
DescriptorBufferInfosetOffset (DeviceSize offset_)
 
DescriptorBufferInfosetRange (DeviceSize range_)
 
 operator VkDescriptorBufferInfo const & () const
 
 operator VkDescriptorBufferInfo & ()
 
bool operator== (DescriptorBufferInfo const &rhs) const
 
bool operator!= (DescriptorBufferInfo const &rhs) const
 

Data Fields

Buffer buffer
 
DeviceSize offset
 
DeviceSize range
 

Detailed Description

Definition at line 5762 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ DescriptorBufferInfo() [1/2]

VULKAN_HPP_NAMESPACE::DescriptorBufferInfo::DescriptorBufferInfo ( Buffer  buffer_ = Buffer(),
DeviceSize  offset_ = 0,
DeviceSize  range_ = 0 
)
inline

Definition at line 5764 of file vulkan.hpp.

5767  : buffer( buffer_ )
5768  , offset( offset_ )
5769  , range( range_ )
5770  {
5771  }

◆ DescriptorBufferInfo() [2/2]

VULKAN_HPP_NAMESPACE::DescriptorBufferInfo::DescriptorBufferInfo ( VkDescriptorBufferInfo const &  rhs)
inline

Definition at line 5773 of file vulkan.hpp.

References memcpy.

5774  {
5775  memcpy( this, &rhs, sizeof( DescriptorBufferInfo ) );
5776  }
DescriptorBufferInfo(Buffer buffer_=Buffer(), DeviceSize offset_=0, DeviceSize range_=0)
Definition: vulkan.hpp:5764
#define memcpy
Definition: SDL_malloc.c:630

Member Function Documentation

◆ operator VkDescriptorBufferInfo &()

VULKAN_HPP_NAMESPACE::DescriptorBufferInfo::operator VkDescriptorBufferInfo & ( )
inline

Definition at line 5806 of file vulkan.hpp.

5807  {
5808  return *reinterpret_cast<VkDescriptorBufferInfo*>(this);
5809  }

◆ operator VkDescriptorBufferInfo const &()

VULKAN_HPP_NAMESPACE::DescriptorBufferInfo::operator VkDescriptorBufferInfo const & ( ) const
inline

Definition at line 5801 of file vulkan.hpp.

5802  {
5803  return *reinterpret_cast<const VkDescriptorBufferInfo*>(this);
5804  }

◆ operator!=()

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

Definition at line 5818 of file vulkan.hpp.

5819  {
5820  return !operator==( rhs );
5821  }
bool operator==(DescriptorBufferInfo const &rhs) const
Definition: vulkan.hpp:5811

◆ operator=()

DescriptorBufferInfo& VULKAN_HPP_NAMESPACE::DescriptorBufferInfo::operator= ( VkDescriptorBufferInfo const &  rhs)
inline

Definition at line 5778 of file vulkan.hpp.

References memcpy.

5779  {
5780  memcpy( this, &rhs, sizeof( DescriptorBufferInfo ) );
5781  return *this;
5782  }
DescriptorBufferInfo(Buffer buffer_=Buffer(), DeviceSize offset_=0, DeviceSize range_=0)
Definition: vulkan.hpp:5764
#define memcpy
Definition: SDL_malloc.c:630

◆ operator==()

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

Definition at line 5811 of file vulkan.hpp.

References buffer, offset, and range.

5812  {
5813  return ( buffer == rhs.buffer )
5814  && ( offset == rhs.offset )
5815  && ( range == rhs.range );
5816  }
GLintptr offset
GLenum GLint * range
GLuint buffer

◆ setBuffer()

DescriptorBufferInfo& VULKAN_HPP_NAMESPACE::DescriptorBufferInfo::setBuffer ( Buffer  buffer_)
inline

Definition at line 5783 of file vulkan.hpp.

5784  {
5785  buffer = buffer_;
5786  return *this;
5787  }
GLuint buffer

◆ setOffset()

DescriptorBufferInfo& VULKAN_HPP_NAMESPACE::DescriptorBufferInfo::setOffset ( DeviceSize  offset_)
inline

Definition at line 5789 of file vulkan.hpp.

5790  {
5791  offset = offset_;
5792  return *this;
5793  }
GLintptr offset

◆ setRange()

DescriptorBufferInfo& VULKAN_HPP_NAMESPACE::DescriptorBufferInfo::setRange ( DeviceSize  range_)
inline

Definition at line 5795 of file vulkan.hpp.

5796  {
5797  range = range_;
5798  return *this;
5799  }
GLenum GLint * range

Field Documentation

◆ buffer

Buffer VULKAN_HPP_NAMESPACE::DescriptorBufferInfo::buffer

Definition at line 5823 of file vulkan.hpp.

Referenced by operator==().

◆ offset

DeviceSize VULKAN_HPP_NAMESPACE::DescriptorBufferInfo::offset

Definition at line 5824 of file vulkan.hpp.

Referenced by operator==().

◆ range

DeviceSize VULKAN_HPP_NAMESPACE::DescriptorBufferInfo::range

Definition at line 5825 of file vulkan.hpp.

Referenced by operator==().


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