SDL 2.0
VULKAN_HPP_NAMESPACE::ClearValue Union Reference

#include <vulkan.hpp>

+ Collaboration diagram for VULKAN_HPP_NAMESPACE::ClearValue:

Public Member Functions

 ClearValue (ClearColorValue color_=ClearColorValue())
 
 ClearValue (ClearDepthStencilValue depthStencil_)
 
ClearValuesetColor (ClearColorValue color_)
 
ClearValuesetDepthStencil (ClearDepthStencilValue depthStencil_)
 
 operator VkClearValue const & () const
 
 operator VkClearValue & ()
 

Data Fields

VkClearColorValue color
 
VkClearDepthStencilValue depthStencil
 

Detailed Description

Definition at line 6181 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ ClearValue() [1/2]

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

Definition at line 6183 of file vulkan.hpp.

6184 {
6185 color = color_;
6186 }
GLuint color

◆ ClearValue() [2/2]

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

Definition at line 6188 of file vulkan.hpp.

6189 {
6190 depthStencil = depthStencil_;
6191 }
VkClearDepthStencilValue depthStencil
Definition: vulkan.hpp:6220

References depthStencil.

Member Function Documentation

◆ operator VkClearValue &()

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

Definition at line 6210 of file vulkan.hpp.

6211 {
6212 return *reinterpret_cast<VkClearValue*>(this);
6213 }

◆ operator VkClearValue const &()

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

Definition at line 6205 of file vulkan.hpp.

6206 {
6207 return *reinterpret_cast<const VkClearValue*>(this);
6208 }

◆ setColor()

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

Definition at line 6193 of file vulkan.hpp.

6194 {
6195 color = color_;
6196 return *this;
6197 }

◆ setDepthStencil()

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

Definition at line 6199 of file vulkan.hpp.

6200 {
6201 depthStencil = depthStencil_;
6202 return *this;
6203 }

References depthStencil.

Field Documentation

◆ color

VkClearColorValue VULKAN_HPP_NAMESPACE::ClearValue::color

Definition at line 6219 of file vulkan.hpp.

◆ depthStencil

VkClearDepthStencilValue VULKAN_HPP_NAMESPACE::ClearValue::depthStencil

Definition at line 6220 of file vulkan.hpp.

Referenced by ClearValue(), and setDepthStencil().


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