SDL  2.0
VULKAN_HPP_NAMESPACE::ClearValue Union Reference

#include <vulkan.hpp>

+ Collaboration diagram for VULKAN_HPP_NAMESPACE::ClearValue:

Public Member Functions

 ClearValue (VULKAN_HPP_NAMESPACE::ClearValue const &rhs) VULKAN_HPP_NOEXCEPT
 
 ClearValue (VULKAN_HPP_NAMESPACE::ClearColorValue color_={})
 
 ClearValue (VULKAN_HPP_NAMESPACE::ClearDepthStencilValue depthStencil_)
 
ClearValuesetColor (VULKAN_HPP_NAMESPACE::ClearColorValue const &color_) VULKAN_HPP_NOEXCEPT
 
ClearValuesetDepthStencil (VULKAN_HPP_NAMESPACE::ClearDepthStencilValue const &depthStencil_) VULKAN_HPP_NOEXCEPT
 
VULKAN_HPP_NAMESPACE::ClearValueoperator= (VULKAN_HPP_NAMESPACE::ClearValue const &rhs) VULKAN_HPP_NOEXCEPT
 
 operator VkClearValue const & () const
 
 operator VkClearValue & ()
 

Data Fields

VkClearColorValue color
 
VkClearDepthStencilValue depthStencil
 

Detailed Description

Definition at line 23445 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ ClearValue() [1/3]

VULKAN_HPP_NAMESPACE::ClearValue::ClearValue ( VULKAN_HPP_NAMESPACE::ClearValue const &  rhs)
inline

Definition at line 23447 of file vulkan.hpp.

23448  {
23449  memcpy( static_cast<void*>(this), &rhs, sizeof( VULKAN_HPP_NAMESPACE::ClearValue ) );
23450  }
#define memcpy
Definition: SDL_malloc.c:630

References memcpy.

◆ ClearValue() [2/3]

VULKAN_HPP_NAMESPACE::ClearValue::ClearValue ( VULKAN_HPP_NAMESPACE::ClearColorValue  color_ = {})
inline

Definition at line 23452 of file vulkan.hpp.

23452  {} )
23453  : color( color_ )
23454  {}

◆ ClearValue() [3/3]

VULKAN_HPP_NAMESPACE::ClearValue::ClearValue ( VULKAN_HPP_NAMESPACE::ClearDepthStencilValue  depthStencil_)
inline

Definition at line 23456 of file vulkan.hpp.

23457  : depthStencil( depthStencil_ )
23458  {}
VkClearDepthStencilValue depthStencil
Definition: vulkan.hpp:23493

Member Function Documentation

◆ operator VkClearValue &()

VULKAN_HPP_NAMESPACE::ClearValue::operator VkClearValue & ( )
inline

Definition at line 23483 of file vulkan.hpp.

23484  {
23485  return *reinterpret_cast<VkClearValue*>(this);
23486  }

◆ operator VkClearValue const &()

VULKAN_HPP_NAMESPACE::ClearValue::operator VkClearValue const & ( ) const
inline

Definition at line 23478 of file vulkan.hpp.

23479  {
23480  return *reinterpret_cast<const VkClearValue*>(this);
23481  }

◆ operator=()

VULKAN_HPP_NAMESPACE::ClearValue& VULKAN_HPP_NAMESPACE::ClearValue::operator= ( VULKAN_HPP_NAMESPACE::ClearValue const &  rhs)
inline

Definition at line 23472 of file vulkan.hpp.

23473  {
23474  memcpy( static_cast<void*>(this), &rhs, sizeof( VULKAN_HPP_NAMESPACE::ClearValue ) );
23475  return *this;
23476  }

References memcpy.

◆ setColor()

ClearValue& VULKAN_HPP_NAMESPACE::ClearValue::setColor ( VULKAN_HPP_NAMESPACE::ClearColorValue const &  color_)
inline

Definition at line 23460 of file vulkan.hpp.

23461  {
23462  color = color_;
23463  return *this;
23464  }
GLuint color

◆ setDepthStencil()

ClearValue& VULKAN_HPP_NAMESPACE::ClearValue::setDepthStencil ( VULKAN_HPP_NAMESPACE::ClearDepthStencilValue const &  depthStencil_)
inline

Definition at line 23466 of file vulkan.hpp.

23467  {
23468  depthStencil = depthStencil_;
23469  return *this;
23470  }

Field Documentation

◆ color

VkClearColorValue VULKAN_HPP_NAMESPACE::ClearValue::color

Definition at line 23492 of file vulkan.hpp.

◆ depthStencil

VkClearDepthStencilValue VULKAN_HPP_NAMESPACE::ClearValue::depthStencil

Definition at line 23493 of file vulkan.hpp.


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