SDL 2.0
VULKAN_HPP_NAMESPACE::MappedMemoryRange Struct Reference

#include <vulkan.hpp>

+ Collaboration diagram for VULKAN_HPP_NAMESPACE::MappedMemoryRange:

Public Member Functions

 MappedMemoryRange (DeviceMemory memory_=DeviceMemory(), DeviceSize offset_=0, DeviceSize size_=0)
 
 MappedMemoryRange (VkMappedMemoryRange const &rhs)
 
MappedMemoryRangeoperator= (VkMappedMemoryRange const &rhs)
 
MappedMemoryRangesetPNext (const void *pNext_)
 
MappedMemoryRangesetMemory (DeviceMemory memory_)
 
MappedMemoryRangesetOffset (DeviceSize offset_)
 
MappedMemoryRangesetSize (DeviceSize size_)
 
 operator VkMappedMemoryRange const & () const
 
 operator VkMappedMemoryRange & ()
 
bool operator== (MappedMemoryRange const &rhs) const
 
bool operator!= (MappedMemoryRange const &rhs) const
 

Data Fields

const voidpNext = nullptr
 
DeviceMemory memory
 
DeviceSize offset
 
DeviceSize size
 

Private Attributes

StructureType sType = StructureType::eMappedMemoryRange
 

Detailed Description

Definition at line 9780 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ MappedMemoryRange() [1/2]

VULKAN_HPP_NAMESPACE::MappedMemoryRange::MappedMemoryRange ( DeviceMemory  memory_ = DeviceMemory(),
DeviceSize  offset_ = 0,
DeviceSize  size_ = 0 
)
inline

Definition at line 9782 of file vulkan.hpp.

9785 : memory( memory_ )
9786 , offset( offset_ )
9787 , size( size_ )
9788 {
9789 }

◆ MappedMemoryRange() [2/2]

VULKAN_HPP_NAMESPACE::MappedMemoryRange::MappedMemoryRange ( VkMappedMemoryRange const &  rhs)
inline

Definition at line 9791 of file vulkan.hpp.

9792 {
9793 memcpy( this, &rhs, sizeof( MappedMemoryRange ) );
9794 }
#define memcpy
Definition: SDL_malloc.c:630
MappedMemoryRange(DeviceMemory memory_=DeviceMemory(), DeviceSize offset_=0, DeviceSize size_=0)
Definition: vulkan.hpp:9782

References memcpy.

Member Function Documentation

◆ operator VkMappedMemoryRange &()

VULKAN_HPP_NAMESPACE::MappedMemoryRange::operator VkMappedMemoryRange & ( )
inline

Definition at line 9830 of file vulkan.hpp.

9831 {
9832 return *reinterpret_cast<VkMappedMemoryRange*>(this);
9833 }

◆ operator VkMappedMemoryRange const &()

VULKAN_HPP_NAMESPACE::MappedMemoryRange::operator VkMappedMemoryRange const & ( ) const
inline

Definition at line 9825 of file vulkan.hpp.

9826 {
9827 return *reinterpret_cast<const VkMappedMemoryRange*>(this);
9828 }

◆ operator!=()

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

Definition at line 9844 of file vulkan.hpp.

9845 {
9846 return !operator==( rhs );
9847 }
bool operator==(MappedMemoryRange const &rhs) const
Definition: vulkan.hpp:9835

References operator==().

◆ operator=()

MappedMemoryRange & VULKAN_HPP_NAMESPACE::MappedMemoryRange::operator= ( VkMappedMemoryRange const &  rhs)
inline

Definition at line 9796 of file vulkan.hpp.

9797 {
9798 memcpy( this, &rhs, sizeof( MappedMemoryRange ) );
9799 return *this;
9800 }

References memcpy.

◆ operator==()

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

Definition at line 9835 of file vulkan.hpp.

9836 {
9837 return ( sType == rhs.sType )
9838 && ( pNext == rhs.pNext )
9839 && ( memory == rhs.memory )
9840 && ( offset == rhs.offset )
9841 && ( size == rhs.size );
9842 }
GLintptr offset
GLsizeiptr size
GLsizei GLenum GLsizei GLsizei GLuint memory
Definition: gl2ext.h:1474

References memory, offset, pNext, size, and sType.

Referenced by operator!=().

◆ setMemory()

MappedMemoryRange & VULKAN_HPP_NAMESPACE::MappedMemoryRange::setMemory ( DeviceMemory  memory_)
inline

Definition at line 9807 of file vulkan.hpp.

9808 {
9809 memory = memory_;
9810 return *this;
9811 }

◆ setOffset()

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

Definition at line 9813 of file vulkan.hpp.

9814 {
9815 offset = offset_;
9816 return *this;
9817 }

◆ setPNext()

MappedMemoryRange & VULKAN_HPP_NAMESPACE::MappedMemoryRange::setPNext ( const void pNext_)
inline

Definition at line 9801 of file vulkan.hpp.

9802 {
9803 pNext = pNext_;
9804 return *this;
9805 }

References pNext.

◆ setSize()

MappedMemoryRange & VULKAN_HPP_NAMESPACE::MappedMemoryRange::setSize ( DeviceSize  size_)
inline

Definition at line 9819 of file vulkan.hpp.

9820 {
9821 size = size_;
9822 return *this;
9823 }

Field Documentation

◆ memory

DeviceMemory VULKAN_HPP_NAMESPACE::MappedMemoryRange::memory

Definition at line 9854 of file vulkan.hpp.

Referenced by operator==().

◆ offset

DeviceSize VULKAN_HPP_NAMESPACE::MappedMemoryRange::offset

Definition at line 9855 of file vulkan.hpp.

Referenced by operator==().

◆ pNext

const void* VULKAN_HPP_NAMESPACE::MappedMemoryRange::pNext = nullptr

Definition at line 9853 of file vulkan.hpp.

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

◆ size

DeviceSize VULKAN_HPP_NAMESPACE::MappedMemoryRange::size

Definition at line 9856 of file vulkan.hpp.

Referenced by operator==().

◆ sType

StructureType VULKAN_HPP_NAMESPACE::MappedMemoryRange::sType = StructureType::eMappedMemoryRange
private

Definition at line 9850 of file vulkan.hpp.

Referenced by operator==().


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