OrderAttribute
Description
- Derived from
-
Attribute abstract
Controls the order of fields in constant buffers structures and in stage input / output structures.
When GPU code is generated, the fields of a structure are sorted in descending order by the element count of their base type (i.e. the element type for arrays) and then in ascending order by their declaration name:
Additionally, the Order may be used to group structure fields: then the default sorting (see above) is applied separately to each group and the groups are output in ascending order. This can be used to fine-tune data alignment in order to achieve better packing. Fields without an Order belong to an implicit group which is always output last.
Usages
CB_Lighting_Static.EdgeFixup field
CB_Lighting_Static.EnvironmentScale field
CB_Lighting_Static.Horizon field
CB_Lighting_Static.LightSpace field
CB_Lighting_Static.LightVector field
CB_Lighting_Static.Mipmap field
CB_Material_Dynamic2.MaterialEmissive field
CB_Material_Dynamic2.MaterialOpacity field
CB_Material_Dynamic2.MaterialRefraction field
CB_Material_Dynamic2.MaterialSpecularity field
CB_Material_Dynamic2.MaterialTranslucency field
CB_Material_Dynamic2.MaterialTransmission field
CB_Model_Dynamic.DepthBias field
CB_Model_Dynamic.LineThickness field
PS_In_Decal.Distance field