Rendu
A lightweight rendering engine for experimentations
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
Load Struct Reference

Detailed operation to perform when binding a texture (starting a renderpass). More...

#include <GPUTypes.hpp>

Public Types

enum class  Operation : uint { LOAD , CLEAR , DONTCARE }
 Type of operation to perform when binding a texture (starting a renderpass). More...
 

Public Member Functions

 Load ()
 Default operation.
 
 Load (Operation mod)
 
 Load (const glm::vec4 &val)
 
 Load (float val)
 
 Load (uchar val)
 

Public Attributes

glm::vec4 value {1.0f}
 Clear value.
 
Operation mode = Operation::LOAD
 Operation.
 

Detailed Description

Detailed operation to perform when binding a texture (starting a renderpass).

Member Enumeration Documentation

◆ Operation

enum class Load::Operation : uint
strong

Type of operation to perform when binding a texture (starting a renderpass).

Enumerator
LOAD 

Load existing data.

CLEAR 

Clear existing data.

DONTCARE 

Anything can be done, usually because we will overwrite data everywhere.

Constructor & Destructor Documentation

◆ Load() [1/4]

Load::Load ( Operation  mod)
inline

Specific operation

Parameters
modthe operation to perform

◆ Load() [2/4]

Load::Load ( const glm::vec4 &  val)
inline

Clear color operation.

Parameters
valthe color to clear with

◆ Load() [3/4]

Load::Load ( float  val)
inline

Clear depth operation.

Parameters
valthe depth to clear with

◆ Load() [4/4]

Load::Load ( uchar  val)
inline

Clear stencil operation.

Parameters
valthe stencil value to clear with

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