Kanzi  3.9.7
Kanzi Engine API
kanzi::CompositionTargetRenderPass::CompositionFormatSettings Struct Reference

Format settings for composition target render pass. More...

#include <kanzi/core.ui/graphics3d/composition_target_render_pass.hpp>

Public Member Functions

 CompositionFormatSettings ()=default
 Default constructor. More...
 
 CompositionFormatSettings (unsigned int compositionWidth, unsigned int compositionHeight, GraphicsFormat cFormat, GraphicsFormat dTextureFormat, GraphicsFormat dRenderbufferFormat, GraphicsCompareFunction depthFunc, Sampler::AddressingMode addressing, Sampler::Filter filter, Sampler::MipmapMode mipmaps, unsigned int reqSamples)
 Constructor. More...
 
bool sizeMatches (const CompositionFormatSettings &otherFormat) const
 Checks whether a given size matches with another composition format. More...
 
void updateSampleCount (unsigned int maxSamples)
 Updates the correct sample count based on maximum. More...
 

Public Attributes

Sampler::AddressingMode addressingMode
 Addressing mode. More...
 
GraphicsFormat colorFormat
 Requested color format. More...
 
GraphicsCompareFunction depthCompareFunction
 Depth compare function. More...
 
GraphicsFormat depthRenderbufferFormat
 Requested depth renderbuffer format. More...
 
GraphicsFormat depthTextureFormat
 Requested depth texture format. More...
 
Sampler::Filter filterMode
 Sampling mode. More...
 
unsigned int height
 Composition height. More...
 
Sampler::MipmapMode mipmapMode
 Mipmap mode. More...
 
unsigned int requestedSamples
 Requested multisampling level. More...
 
unsigned int samples
 Actual samples to be requested. More...
 
unsigned int width
 Composition width. More...
 

Detailed Description

Format settings for composition target render pass.

Kanzi uses these as parameters when creating a composition target.

Constructor & Destructor Documentation

kanzi::CompositionTargetRenderPass::CompositionFormatSettings::CompositionFormatSettings ( )
explicitdefault

Default constructor.

kanzi::CompositionTargetRenderPass::CompositionFormatSettings::CompositionFormatSettings ( unsigned int  compositionWidth,
unsigned int  compositionHeight,
GraphicsFormat  cFormat,
GraphicsFormat  dTextureFormat,
GraphicsFormat  dRenderbufferFormat,
GraphicsCompareFunction  depthFunc,
Sampler::AddressingMode  addressing,
Sampler::Filter  filter,
Sampler::MipmapMode  mipmaps,
unsigned int  reqSamples 
)
inline

Constructor.

Parameters
compositionWidthDesired composition width.
compositionHeightDesired composition height.
cFormatColor format.
dTextureFormatDepth texture format.
dRenderbufferFormatDepth renderbuffer format.
depthFuncDepth function.
addressingAddressing mode.
filterFilter mode.
mipmapsMipmap mode.
reqSamplesRequested multisample samples.

Member Function Documentation

bool kanzi::CompositionTargetRenderPass::CompositionFormatSettings::sizeMatches ( const CompositionFormatSettings otherFormat) const
inline

Checks whether a given size matches with another composition format.

Parameters
otherFormatAnother composition format.
Returns
If sizes match, true, otherwise false.
void kanzi::CompositionTargetRenderPass::CompositionFormatSettings::updateSampleCount ( unsigned int  maxSamples)
inline

Updates the correct sample count based on maximum.

Parameters
maxSamplesMaximum level of multisampling supported.

Member Data Documentation

unsigned int kanzi::CompositionTargetRenderPass::CompositionFormatSettings::width

Composition width.

unsigned int kanzi::CompositionTargetRenderPass::CompositionFormatSettings::height

Composition height.

GraphicsFormat kanzi::CompositionTargetRenderPass::CompositionFormatSettings::colorFormat

Requested color format.

GraphicsFormat kanzi::CompositionTargetRenderPass::CompositionFormatSettings::depthTextureFormat

Requested depth texture format.

GraphicsFormat kanzi::CompositionTargetRenderPass::CompositionFormatSettings::depthRenderbufferFormat

Requested depth renderbuffer format.

GraphicsCompareFunction kanzi::CompositionTargetRenderPass::CompositionFormatSettings::depthCompareFunction

Depth compare function.

Sampler::AddressingMode kanzi::CompositionTargetRenderPass::CompositionFormatSettings::addressingMode

Addressing mode.

Sampler::Filter kanzi::CompositionTargetRenderPass::CompositionFormatSettings::filterMode

Sampling mode.

Sampler::MipmapMode kanzi::CompositionTargetRenderPass::CompositionFormatSettings::mipmapMode

Mipmap mode.

unsigned int kanzi::CompositionTargetRenderPass::CompositionFormatSettings::requestedSamples

Requested multisampling level.

unsigned int kanzi::CompositionTargetRenderPass::CompositionFormatSettings::samples

Actual samples to be requested.


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