OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::DepthStencilState Struct Reference

デプス・ステンシルステート More...

#include <DepthStencilState.hpp>

Public Types

using storage_type = uint32
 

Public Member Functions

constexpr SIV3D_NODISCARD_CXX20 DepthStencilState (bool _depthEnable=false, bool _depthWriteEnable=false, DepthFunc _depthFunc=DepthFunc::Always)
 
constexpr SIV3D_NODISCARD_CXX20 DepthStencilState (Predefined predefined) noexcept
 
storage_type asValue () const noexcept
 
bool operator== (const DepthStencilState &other) const noexcept
 
bool operator!= (const DepthStencilState &other) const noexcept
 

Public Attributes

bool depthEnable = false
 
bool depthWriteEnable = false
 
DepthFunc depthFunc = DepthFunc::Always
 
uint8 _unused = false
 

Static Public Attributes

static const Predefined Disbaled = Predefined::Disbaled
 
static const Predefined DepthTest = Predefined::DepthTest
 
static const Predefined DepthTestWrite = Predefined::DepthTestWrite
 
static const Predefined Default2D = Predefined::Disbaled
 2D 描画時のデフォルト More...
 
static const Predefined Default3D = Predefined::DepthTestWrite
 3D 描画時のデフォルト More...
 

Detailed Description

デプス・ステンシルステート

Member Typedef Documentation

◆ storage_type

Constructor & Destructor Documentation

◆ DepthStencilState() [1/2]

constexpr SIV3D_NODISCARD_CXX20 s3d::DepthStencilState::DepthStencilState ( bool  _depthEnable = false,
bool  _depthWriteEnable = false,
DepthFunc  _depthFunc = DepthFunc::Always 
)
explicitconstexpr

◆ DepthStencilState() [2/2]

constexpr SIV3D_NODISCARD_CXX20 s3d::DepthStencilState::DepthStencilState ( Predefined  predefined)
constexprnoexcept

Member Function Documentation

◆ asValue()

storage_type s3d::DepthStencilState::asValue ( ) const
noexcept

◆ operator!=()

bool s3d::DepthStencilState::operator!= ( const DepthStencilState other) const
noexcept

◆ operator==()

bool s3d::DepthStencilState::operator== ( const DepthStencilState other) const
noexcept

Member Data Documentation

◆ _unused

uint8 s3d::DepthStencilState::_unused = false

◆ Default2D

const Predefined s3d::DepthStencilState::Default2D = Predefined::Disbaled
static

2D 描画時のデフォルト

Remarks
DepthStencilState::SolidNone

◆ Default3D

const Predefined s3d::DepthStencilState::Default3D = Predefined::DepthTestWrite
static

3D 描画時のデフォルト

Remarks
DepthStencilState::SolidBack

◆ depthEnable

bool s3d::DepthStencilState::depthEnable = false

◆ depthFunc

DepthFunc s3d::DepthStencilState::depthFunc = DepthFunc::Always

◆ DepthTest

const Predefined s3d::DepthStencilState::DepthTest = Predefined::DepthTest
static

◆ DepthTestWrite

const Predefined s3d::DepthStencilState::DepthTestWrite = Predefined::DepthTestWrite
static

◆ depthWriteEnable

bool s3d::DepthStencilState::depthWriteEnable = false

◆ Disbaled

const Predefined s3d::DepthStencilState::Disbaled = Predefined::Disbaled
static
Remarks
DepthStencilState{ false, false, DepthFunc::Always }

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