Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::DepthRangeCalculator::CreateInfo Struct Reference

Depth range calculator create info. More...

#include <DepthRangeCalculator.hpp>

Public Attributes

IRenderDevicepDevice = nullptr
 Render device.
 
IRenderStateCachepStateCache = nullptr
 An optional render state cache.
 
bool PackMatrixRowMajor = false
 
bool AsyncShaders = false
 Whether to compile shaders asynchronously.
 
bool ReadBackData = false
 Whether to read back the depth range data to the CPU.
 

Detailed Description

Depth range calculator create info.

Member Data Documentation

◆ PackMatrixRowMajor

bool Diligent::DepthRangeCalculator::CreateInfo::PackMatrixRowMajor = false

Whether shader matrices are laid out in row-major order in GPU memory.

By default, shader matrices are laid out in column-major order in GPU memory. If this option is set to true, shaders will be compiled with the SHADER_COMPILE_FLAG_PACK_MATRIX_ROW_MAJOR flag and use the row-major layout.