XII Release 0.1.0
Loading...
Searching...
No Matches
xiiGALShadingRateFormat Struct Reference

This describes the shading rate texture format supported by the device. More...

#include <GraphicsTypes.h>

Inheritance diagram for xiiGALShadingRateFormat:
[legend]

Public Types

enum  Enum : StorageType {
  Unknown = -1 , Palette , RG8UNormalized , ColumnRowFloat32 ,
  ENUM_COUNT , Default = Unknown
}
 
using StorageType = xiiInt8
 

Detailed Description

This describes the shading rate texture format supported by the device.

Member Enumeration Documentation

◆ Enum

enum xiiGALShadingRateFormat::Enum : StorageType
Enumerator
Unknown 

Variable shading rate is not supported.

Palette 

Single channel 8-bit surface that contains shading rate values. Only 2D and 2D array textures with R8UNormalized format are allowed.

RG8UNormalized 

RG8UNormalized texture that defines the shading rate (0.5, 0.25 etc.). The R channel is used for X axis, G channel is used for Y axis.

ColumnRowFloat32 

This format is only used in Metal when shading rate is defined by column/row rates instead of a texture. The values are 32-bit floating point values in 0 to 1 range (0.5, 0.25 etc.).


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