SDL 2.0
VULKAN_HPP_NAMESPACE::SparseImageMemoryBind Struct Reference

#include <vulkan.hpp>

+ Collaboration diagram for VULKAN_HPP_NAMESPACE::SparseImageMemoryBind:

Public Member Functions

 SparseImageMemoryBind (ImageSubresource subresource_=ImageSubresource(), Offset3D offset_=Offset3D(), Extent3D extent_=Extent3D(), DeviceMemory memory_=DeviceMemory(), DeviceSize memoryOffset_=0, SparseMemoryBindFlags flags_=SparseMemoryBindFlags())
 
 SparseImageMemoryBind (VkSparseImageMemoryBind const &rhs)
 
SparseImageMemoryBindoperator= (VkSparseImageMemoryBind const &rhs)
 
SparseImageMemoryBindsetSubresource (ImageSubresource subresource_)
 
SparseImageMemoryBindsetOffset (Offset3D offset_)
 
SparseImageMemoryBindsetExtent (Extent3D extent_)
 
SparseImageMemoryBindsetMemory (DeviceMemory memory_)
 
SparseImageMemoryBindsetMemoryOffset (DeviceSize memoryOffset_)
 
SparseImageMemoryBindsetFlags (SparseMemoryBindFlags flags_)
 
 operator VkSparseImageMemoryBind const & () const
 
 operator VkSparseImageMemoryBind & ()
 
bool operator== (SparseImageMemoryBind const &rhs) const
 
bool operator!= (SparseImageMemoryBind const &rhs) const
 

Data Fields

ImageSubresource subresource
 
Offset3D offset
 
Extent3D extent
 
DeviceMemory memory
 
DeviceSize memoryOffset
 
SparseMemoryBindFlags flags
 

Detailed Description

Definition at line 26236 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ SparseImageMemoryBind() [1/2]

VULKAN_HPP_NAMESPACE::SparseImageMemoryBind::SparseImageMemoryBind ( ImageSubresource  subresource_ = ImageSubresource(),
Offset3D  offset_ = Offset3D(),
Extent3D  extent_ = Extent3D(),
DeviceMemory  memory_ = DeviceMemory(),
DeviceSize  memoryOffset_ = 0,
SparseMemoryBindFlags  flags_ = SparseMemoryBindFlags() 
)
inline

Definition at line 26238 of file vulkan.hpp.

26244 : subresource( subresource_ )
26245 , offset( offset_ )
26246 , extent( extent_ )
26247 , memory( memory_ )
26248 , memoryOffset( memoryOffset_ )
26249 , flags( flags_ )
26250 {
26251 }

◆ SparseImageMemoryBind() [2/2]

VULKAN_HPP_NAMESPACE::SparseImageMemoryBind::SparseImageMemoryBind ( VkSparseImageMemoryBind const &  rhs)
inline

Definition at line 26253 of file vulkan.hpp.

26254 {
26255 memcpy( this, &rhs, sizeof( SparseImageMemoryBind ) );
26256 }
#define memcpy
Definition: SDL_malloc.c:630
SparseImageMemoryBind(ImageSubresource subresource_=ImageSubresource(), Offset3D offset_=Offset3D(), Extent3D extent_=Extent3D(), DeviceMemory memory_=DeviceMemory(), DeviceSize memoryOffset_=0, SparseMemoryBindFlags flags_=SparseMemoryBindFlags())
Definition: vulkan.hpp:26238

References memcpy.

Member Function Documentation

◆ operator VkSparseImageMemoryBind &()

VULKAN_HPP_NAMESPACE::SparseImageMemoryBind::operator VkSparseImageMemoryBind & ( )
inline

Definition at line 26304 of file vulkan.hpp.

26305 {
26306 return *reinterpret_cast<VkSparseImageMemoryBind*>(this);
26307 }

◆ operator VkSparseImageMemoryBind const &()

VULKAN_HPP_NAMESPACE::SparseImageMemoryBind::operator VkSparseImageMemoryBind const & ( ) const
inline

Definition at line 26299 of file vulkan.hpp.

26300 {
26301 return *reinterpret_cast<const VkSparseImageMemoryBind*>(this);
26302 }

◆ operator!=()

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

Definition at line 26319 of file vulkan.hpp.

26320 {
26321 return !operator==( rhs );
26322 }
bool operator==(SparseImageMemoryBind const &rhs) const
Definition: vulkan.hpp:26309

References operator==().

◆ operator=()

SparseImageMemoryBind & VULKAN_HPP_NAMESPACE::SparseImageMemoryBind::operator= ( VkSparseImageMemoryBind const &  rhs)
inline

Definition at line 26258 of file vulkan.hpp.

26259 {
26260 memcpy( this, &rhs, sizeof( SparseImageMemoryBind ) );
26261 return *this;
26262 }

References memcpy.

◆ operator==()

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

Definition at line 26309 of file vulkan.hpp.

26310 {
26311 return ( subresource == rhs.subresource )
26312 && ( offset == rhs.offset )
26313 && ( extent == rhs.extent )
26314 && ( memory == rhs.memory )
26315 && ( memoryOffset == rhs.memoryOffset )
26316 && ( flags == rhs.flags );
26317 }
GLintptr offset
GLbitfield flags
GLsizei GLenum GLsizei GLsizei GLuint memory
Definition: gl2ext.h:1474

References extent, flags, memory, memoryOffset, offset, and subresource.

Referenced by operator!=().

◆ setExtent()

SparseImageMemoryBind & VULKAN_HPP_NAMESPACE::SparseImageMemoryBind::setExtent ( Extent3D  extent_)
inline

Definition at line 26275 of file vulkan.hpp.

26276 {
26277 extent = extent_;
26278 return *this;
26279 }

References extent.

◆ setFlags()

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

Definition at line 26293 of file vulkan.hpp.

26294 {
26295 flags = flags_;
26296 return *this;
26297 }

◆ setMemory()

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

Definition at line 26281 of file vulkan.hpp.

26282 {
26283 memory = memory_;
26284 return *this;
26285 }

◆ setMemoryOffset()

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

Definition at line 26287 of file vulkan.hpp.

26288 {
26289 memoryOffset = memoryOffset_;
26290 return *this;
26291 }

References memoryOffset.

◆ setOffset()

SparseImageMemoryBind & VULKAN_HPP_NAMESPACE::SparseImageMemoryBind::setOffset ( Offset3D  offset_)
inline

Definition at line 26269 of file vulkan.hpp.

26270 {
26271 offset = offset_;
26272 return *this;
26273 }

◆ setSubresource()

SparseImageMemoryBind & VULKAN_HPP_NAMESPACE::SparseImageMemoryBind::setSubresource ( ImageSubresource  subresource_)
inline

Definition at line 26263 of file vulkan.hpp.

26264 {
26265 subresource = subresource_;
26266 return *this;
26267 }

References subresource.

Field Documentation

◆ extent

Extent3D VULKAN_HPP_NAMESPACE::SparseImageMemoryBind::extent

Definition at line 26326 of file vulkan.hpp.

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

◆ flags

SparseMemoryBindFlags VULKAN_HPP_NAMESPACE::SparseImageMemoryBind::flags

Definition at line 26329 of file vulkan.hpp.

Referenced by operator==().

◆ memory

DeviceMemory VULKAN_HPP_NAMESPACE::SparseImageMemoryBind::memory

Definition at line 26327 of file vulkan.hpp.

Referenced by operator==().

◆ memoryOffset

DeviceSize VULKAN_HPP_NAMESPACE::SparseImageMemoryBind::memoryOffset

Definition at line 26328 of file vulkan.hpp.

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

◆ offset

Offset3D VULKAN_HPP_NAMESPACE::SparseImageMemoryBind::offset

Definition at line 26325 of file vulkan.hpp.

Referenced by operator==().

◆ subresource

ImageSubresource VULKAN_HPP_NAMESPACE::SparseImageMemoryBind::subresource

Definition at line 26324 of file vulkan.hpp.

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


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