API Documentation
Public Member Functions | List of all members
nkGraphics::DepthStencilStateManager Class Reference

Manages the depth stencil states recorded. More...

Inheritance diagram for nkGraphics::DepthStencilStateManager:
nkGraphics::Manager< DepthStencilState >

Public Member Functions

DepthStencilStategetDefaultState () const
 
- Public Member Functions inherited from nkGraphics::Manager< DepthStencilState >
DepthStencilStatecreateOrRetrieve (nkMemory::StringView name)
 
DepthStencilStaterecord (nkMemory::StringView name, nkMemory::UniquePtr< DepthStencilState > resource)
 
DepthStencilStateget (nkMemory::StringView name) const
 
DepthStencilStategetByIndex (unsigned int index) const
 
void rename (nkMemory::StringView currentName, nkMemory::StringView newName)
 
void erase (nkMemory::StringView name)
 
nkMemory::UniquePtr< DepthStencilStaterelinquish (nkMemory::StringView name)
 

Detailed Description

Manages the depth stencil states recorded.

DepthStencilState creation / deletion can go through this class, allowing it to act as a repository of resources which lifetime will get managed as needed. Like any Manager, it is always owning the memory it owns, unless it passes back the ownership explicitly.

Member Function Documentation

◆ getDefaultState()

DepthStencilState* nkGraphics::DepthStencilStateManager::getDefaultState ( ) const
Returns
The default state used during rendering if no overload within a pass is provided.

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