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

Shading rate properties. More...

#include <GraphicsTypes.h>

Public Member Functions

bool operator== (const ShadingRateProperties &RHS) const noexcept
 Comparison operator tests if two structures are equivalent.
 

Public Attributes

ShadingRateMode ShadingRates [DILIGENT_MAX_SHADING_RATES] = {}
 
Uint8 NumShadingRates = 0
 The number of valid elements in ShadingRates array.
 
SHADING_RATE_CAP_FLAGS CapFlags = SHADING_RATE_CAP_FLAG_NONE
 Shading rate capability flags, see Diligent::SHADING_RATE_CAP_FLAGS.
 
SHADING_RATE_COMBINER Combiners = SHADING_RATE_COMBINER_PASSTHROUGH
 Combination of all supported shading rate combiners (see Diligent::SHADING_RATE_COMBINER).
 
SHADING_RATE_FORMAT Format = SHADING_RATE_FORMAT_UNKNOWN
 Indicates which shading rate texture format is used by this device (see Diligent::SHADING_RATE_FORMAT).
 
SHADING_RATE_TEXTURE_ACCESS ShadingRateTextureAccess = SHADING_RATE_TEXTURE_ACCESS_UNKNOWN
 Shading rate texture access type (see Diligent::SHADING_RATE_TEXTURE_ACCESS).
 
BIND_FLAGS BindFlags = BIND_NONE
 Indicates which bind flags are allowed for shading rate texture.
 
Uint32 MinTileSize [2] = {}
 Minimal supported tile size.
 
Uint32 MaxTileSize [2] = {}
 Maximum supported tile size.
 
Uint32 MaxSabsampledArraySlices = 0
 Maximum size of the texture array created with MISC_TEXTURE_FLAG_SUBSAMPLED flag.
 

Detailed Description

Shading rate properties.

Member Function Documentation

◆ operator==()

bool Diligent::ShadingRateProperties::operator== ( const ShadingRateProperties & RHS) const
inlinenoexcept

Comparison operator tests if two structures are equivalent.

Parameters
[in]RHS- reference to the structure to perform comparison with
Returns
  • True if all members of the two structures are equal.
  • False otherwise.

Member Data Documentation

◆ MaxTileSize

Uint32 Diligent::ShadingRateProperties::MaxTileSize[2] = {}

Maximum supported tile size.

Shading rate texture size must be greater than or equal to (framebuffer_size / MaxTileSize).

◆ MinTileSize

Uint32 Diligent::ShadingRateProperties::MinTileSize[2] = {}

Minimal supported tile size.

Shading rate texture size must be less than or equal to (framebuffer_size / MinTileSize).

◆ ShadingRates

ShadingRateMode Diligent::ShadingRateProperties::ShadingRates[DILIGENT_MAX_SHADING_RATES] = {}

Contains a list of supported combinations of shading rate and number of samples. The list is sorted from the lower to higher rate.