Cogs.Core
Public Types | Public Member Functions | Public Attributes | List of all members
Cogs::Core::RenderPassOptions Struct Reference

Public Types

enum struct  Flags : uint32_t { None = 0 , NoDepthClip , ScissorTest }
 

Public Member Functions

void setFlag (Flags flag)
 
void unsetFlag (Flags flag)
 
bool getFlag (Flags flag) const
 
COGSCORE_DLL_API void updateHash ()
 

Public Attributes

Flags flags = Flags::None
 
float depthBias = 0.f
 
float depthSlopedBias = 0.f
 
float depthBiasClamp = 0.f
 
uint32_t multiViews = 0
 
glm::ivec4 scissorRectangle {}
 
size_t hash = 0
 

Detailed Description

Definition at line 37 of file CameraSystem.h.

Member Enumeration Documentation

◆ Flags

enum struct Cogs::Core::RenderPassOptions::Flags : uint32_t
strong

Definition at line 39 of file CameraSystem.h.

Member Function Documentation

◆ getFlag()

bool Cogs::Core::RenderPassOptions::getFlag ( Flags  flag) const
inline

Definition at line 53 of file CameraSystem.h.

◆ setFlag()

void Cogs::Core::RenderPassOptions::setFlag ( Flags  flag)
inline

Definition at line 51 of file CameraSystem.h.

◆ unsetFlag()

void Cogs::Core::RenderPassOptions::unsetFlag ( Flags  flag)
inline

Definition at line 52 of file CameraSystem.h.

◆ updateHash()

void Cogs::Core::RenderPassOptions::updateHash ( )

Update the hash value after struct has been modified.

Definition at line 37 of file CameraSystem.cpp.

References Cogs::fnv1a(), and hash.

Member Data Documentation

◆ depthBias

float Cogs::Core::RenderPassOptions::depthBias = 0.f

Definition at line 45 of file CameraSystem.h.

◆ depthBiasClamp

float Cogs::Core::RenderPassOptions::depthBiasClamp = 0.f

Definition at line 47 of file CameraSystem.h.

◆ depthSlopedBias

float Cogs::Core::RenderPassOptions::depthSlopedBias = 0.f

Definition at line 46 of file CameraSystem.h.

◆ flags

Flags Cogs::Core::RenderPassOptions::flags = Flags::None

Definition at line 44 of file CameraSystem.h.

◆ hash

size_t Cogs::Core::RenderPassOptions::hash = 0

Hash for the current contents, call updateHash() when contents have been modified.

Definition at line 56 of file CameraSystem.h.

Referenced by updateHash().

◆ multiViews

uint32_t Cogs::Core::RenderPassOptions::multiViews = 0

Definition at line 48 of file CameraSystem.h.

◆ scissorRectangle

glm::ivec4 Cogs::Core::RenderPassOptions::scissorRectangle {}

Definition at line 49 of file CameraSystem.h.


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