ConstantBufferAttribute
Description
- Derived from
- 
Attribute abstract 
Associated the annotated static class with a constant buffer definition.
When naming constant buffers, the following convention should be taken into account:
- 
Use the name prefix CB_for classes that represent constant buffer definitions.
- 
Use the name suffix _Staticfor constant buffers that hold parameters that are updated roughly once per frame.
- 
Use the name suffix _Dynamicfor constant buffers that hold parameters that are likely to change multiple times per frame.
- 
Use the name suffix _Volatilefor constant buffers that hold parameters that are likely to change between primitive batches.
The data fields of a constant buffer (scalar, vector, matrix, array, struct) will be laid out and packed on the GPU in an implementation-dependent way. The actual data layout of each constant buffer in a compiled render effect is queried at runtime using the graphics API and then used accordingly.
- See also
Usages
CB_Camera_Static class 
CB_Compute_Static class 
CB_Decal_Dynamic class 
CB_Decal_Volatile class 
CB_Demo_Static class 
CB_Graphics_Dynamic class 
CB_Graphics_Static class 
CB_Graphics_Volatile class 
CB_Lighting_Dynamic class 
CB_Lighting_Static class 
CB_Material_Dynamic class 
CB_Material_Dynamic1 class 
CB_Material_Dynamic2 class 
CB_Material_Dynamic3 class 
CB_Material_Static class 
CB_Material_Static class 
CB_Material_Volatile1 class 
CB_Material_Volatile2 class 
CB_Mipmap_Static class 
CB_Model_Dynamic class 
CB_Model_Volatile class 
CB_Process_Static class 
CB_Renderer_Dynamic class 
CB_Shadow_Static class 
CB_Sky_Static class 
CB_Terrain_Dynamic class 
CB_Terrain_Static class 
CB_Texture_Static class 
CB_Texture_Volatile class