SDL 2.0
VULKAN_HPP_NAMESPACE::SparseMemoryBind Struct Reference

#include <vulkan.hpp>

+ Collaboration diagram for VULKAN_HPP_NAMESPACE::SparseMemoryBind:

Public Member Functions

 SparseMemoryBind (DeviceSize resourceOffset_=0, DeviceSize size_=0, DeviceMemory memory_=DeviceMemory(), DeviceSize memoryOffset_=0, SparseMemoryBindFlags flags_=SparseMemoryBindFlags())
 
 SparseMemoryBind (VkSparseMemoryBind const &rhs)
 
SparseMemoryBindoperator= (VkSparseMemoryBind const &rhs)
 
SparseMemoryBindsetResourceOffset (DeviceSize resourceOffset_)
 
SparseMemoryBindsetSize (DeviceSize size_)
 
SparseMemoryBindsetMemory (DeviceMemory memory_)
 
SparseMemoryBindsetMemoryOffset (DeviceSize memoryOffset_)
 
SparseMemoryBindsetFlags (SparseMemoryBindFlags flags_)
 
 operator VkSparseMemoryBind const & () const
 
 operator VkSparseMemoryBind & ()
 
bool operator== (SparseMemoryBind const &rhs) const
 
bool operator!= (SparseMemoryBind const &rhs) const
 

Data Fields

DeviceSize resourceOffset
 
DeviceSize size
 
DeviceMemory memory
 
DeviceSize memoryOffset
 
SparseMemoryBindFlags flags
 

Detailed Description

Definition at line 26149 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ SparseMemoryBind() [1/2]

VULKAN_HPP_NAMESPACE::SparseMemoryBind::SparseMemoryBind ( DeviceSize  resourceOffset_ = 0,
DeviceSize  size_ = 0,
DeviceMemory  memory_ = DeviceMemory(),
DeviceSize  memoryOffset_ = 0,
SparseMemoryBindFlags  flags_ = SparseMemoryBindFlags() 
)
inline

Definition at line 26151 of file vulkan.hpp.

26156 : resourceOffset( resourceOffset_ )
26157 , size( size_ )
26158 , memory( memory_ )
26159 , memoryOffset( memoryOffset_ )
26160 , flags( flags_ )
26161 {
26162 }

◆ SparseMemoryBind() [2/2]

VULKAN_HPP_NAMESPACE::SparseMemoryBind::SparseMemoryBind ( VkSparseMemoryBind const &  rhs)
inline

Definition at line 26164 of file vulkan.hpp.

26165 {
26166 memcpy( this, &rhs, sizeof( SparseMemoryBind ) );
26167 }
#define memcpy
Definition: SDL_malloc.c:630
SparseMemoryBind(DeviceSize resourceOffset_=0, DeviceSize size_=0, DeviceMemory memory_=DeviceMemory(), DeviceSize memoryOffset_=0, SparseMemoryBindFlags flags_=SparseMemoryBindFlags())
Definition: vulkan.hpp:26151

References memcpy.

Member Function Documentation

◆ operator VkSparseMemoryBind &()

VULKAN_HPP_NAMESPACE::SparseMemoryBind::operator VkSparseMemoryBind & ( )
inline

Definition at line 26209 of file vulkan.hpp.

26210 {
26211 return *reinterpret_cast<VkSparseMemoryBind*>(this);
26212 }

◆ operator VkSparseMemoryBind const &()

VULKAN_HPP_NAMESPACE::SparseMemoryBind::operator VkSparseMemoryBind const & ( ) const
inline

Definition at line 26204 of file vulkan.hpp.

26205 {
26206 return *reinterpret_cast<const VkSparseMemoryBind*>(this);
26207 }

◆ operator!=()

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

Definition at line 26223 of file vulkan.hpp.

26224 {
26225 return !operator==( rhs );
26226 }
bool operator==(SparseMemoryBind const &rhs) const
Definition: vulkan.hpp:26214

References operator==().

◆ operator=()

SparseMemoryBind & VULKAN_HPP_NAMESPACE::SparseMemoryBind::operator= ( VkSparseMemoryBind const &  rhs)
inline

Definition at line 26169 of file vulkan.hpp.

26170 {
26171 memcpy( this, &rhs, sizeof( SparseMemoryBind ) );
26172 return *this;
26173 }

References memcpy.

◆ operator==()

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

Definition at line 26214 of file vulkan.hpp.

26215 {
26216 return ( resourceOffset == rhs.resourceOffset )
26217 && ( size == rhs.size )
26218 && ( memory == rhs.memory )
26219 && ( memoryOffset == rhs.memoryOffset )
26220 && ( flags == rhs.flags );
26221 }
GLsizeiptr size
GLbitfield flags
GLsizei GLenum GLsizei GLsizei GLuint memory
Definition: gl2ext.h:1474

References flags, memory, memoryOffset, resourceOffset, and size.

Referenced by operator!=().

◆ setFlags()

SparseMemoryBind & VULKAN_HPP_NAMESPACE::SparseMemoryBind::setFlags ( SparseMemoryBindFlags  flags_)
inline

Definition at line 26198 of file vulkan.hpp.

26199 {
26200 flags = flags_;
26201 return *this;
26202 }

◆ setMemory()

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

Definition at line 26186 of file vulkan.hpp.

26187 {
26188 memory = memory_;
26189 return *this;
26190 }

◆ setMemoryOffset()

SparseMemoryBind & VULKAN_HPP_NAMESPACE::SparseMemoryBind::setMemoryOffset ( DeviceSize  memoryOffset_)
inline

Definition at line 26192 of file vulkan.hpp.

26193 {
26194 memoryOffset = memoryOffset_;
26195 return *this;
26196 }

References memoryOffset.

◆ setResourceOffset()

SparseMemoryBind & VULKAN_HPP_NAMESPACE::SparseMemoryBind::setResourceOffset ( DeviceSize  resourceOffset_)
inline

Definition at line 26174 of file vulkan.hpp.

26175 {
26176 resourceOffset = resourceOffset_;
26177 return *this;
26178 }

References resourceOffset.

◆ setSize()

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

Definition at line 26180 of file vulkan.hpp.

26181 {
26182 size = size_;
26183 return *this;
26184 }

Field Documentation

◆ flags

SparseMemoryBindFlags VULKAN_HPP_NAMESPACE::SparseMemoryBind::flags

Definition at line 26232 of file vulkan.hpp.

Referenced by operator==().

◆ memory

DeviceMemory VULKAN_HPP_NAMESPACE::SparseMemoryBind::memory

Definition at line 26230 of file vulkan.hpp.

Referenced by operator==().

◆ memoryOffset

DeviceSize VULKAN_HPP_NAMESPACE::SparseMemoryBind::memoryOffset

Definition at line 26231 of file vulkan.hpp.

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

◆ resourceOffset

DeviceSize VULKAN_HPP_NAMESPACE::SparseMemoryBind::resourceOffset

Definition at line 26228 of file vulkan.hpp.

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

◆ size

DeviceSize VULKAN_HPP_NAMESPACE::SparseMemoryBind::size

Definition at line 26229 of file vulkan.hpp.

Referenced by operator==().


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