Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::LoadRenderPassInfo Struct Reference

Render pass load info. More...

#include <RenderStateNotationLoader.h>

Public Attributes

const Char * Name = nullptr
 Name of the render pass to load.
 
bool AddToCache = true
 Flag indicating whether to add the render pass to the internal cache.
 
bool LookupInCache = true
 Indicates whether to look up the render pass in the cache.
 
void(* Modify )(RenderPassDesc &, void *) = nullptr
 
void * pUserData = nullptr
 A pointer to the user data to pass to the Modify function.
 

Detailed Description

Render pass load info.

Member Data Documentation

◆ LookupInCache

bool Diligent::LoadRenderPassInfo::LookupInCache = true

Indicates whether to look up the render pass in the cache.

If the render pass with the specified name has already been requested, and the AddToCache flag was set to true, the render pass will be returned from the cache, unless the LookupInCache flag is set to false.

Disabling cache lookup may be useful when the render pass with the same name is already in the cache, but the application wants to load a different render pass with the same name by modifying the render pass desc.

If LookupInCache is false, and AddToCache is true, the new render pass will replace the existing render pass in the cache, if any.

◆ Modify

void(* Diligent::LoadRenderPassInfo::Modify) (RenderPassDesc &, void *) = nullptr

An optional function to be called by the render state notation loader to let the application modify the render pass descriptor.