Kanzi 3.9.10
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.
 
 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.
 
bool sizeMatches (const CompositionFormatSettings &otherFormat) const
 Checks whether a given size matches with another composition format.
 
void updateSampleCount (unsigned int maxSamples)
 Updates the correct sample count based on maximum.
 

Public Attributes

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

Detailed Description

Format settings for composition target render pass.

Kanzi uses these as parameters when creating a composition target.

Constructor & Destructor Documentation

◆ CompositionFormatSettings() [1/2]

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

Default constructor.

◆ CompositionFormatSettings() [2/2]

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

◆ sizeMatches()

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.

◆ updateSampleCount()

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

◆ width

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

Composition width.

◆ height

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

Composition height.

◆ colorFormat

GraphicsFormat kanzi::CompositionTargetRenderPass::CompositionFormatSettings::colorFormat

Requested color format.

◆ depthTextureFormat

GraphicsFormat kanzi::CompositionTargetRenderPass::CompositionFormatSettings::depthTextureFormat

Requested depth texture format.

◆ depthRenderbufferFormat

GraphicsFormat kanzi::CompositionTargetRenderPass::CompositionFormatSettings::depthRenderbufferFormat

Requested depth renderbuffer format.

◆ depthCompareFunction

GraphicsCompareFunction kanzi::CompositionTargetRenderPass::CompositionFormatSettings::depthCompareFunction

Depth compare function.

◆ addressingMode

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

Addressing mode.

◆ filterMode

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

Sampling mode.

◆ mipmapMode

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

Mipmap mode.

◆ requestedSamples

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

Requested multisampling level.

◆ samples

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

Actual samples to be requested.


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