SRenderObjData

C++
struct SRenderObjData {
  union {
    SLockFreeSingleLinkedListEntry m_LinkedListEntry;
    void * m_pInstance;
  };
  CRendElementBase * m_pRE;
  SSkinningData * m_pSkinningData;
  TArray m_Constants;
  float m_fTempVars[10];
  const DynArray<SShaderParam> * m_pShaderParams;
  uint16 m_nLightID[RT_COMMAND_BUF_COUNT];
  uint32 m_nVisionParams;
  uint32 m_nHUDSilhouetteParams;
  uint32 m_pLayerEffectParams;
  uint64 m_nSubObjHideMask;
  uint64 m_ShadowCasters;
  union {
    SBending* m_pBending;
    const struct ParticleParams* m_pParticleParams;
  };
  uint16 m_FogVolumeContribIdx[2];
  uint16 m_scissorX;
  uint16 m_scissorY;
  uint16 m_scissorWidth;
  uint16 m_scissorHeight;
  uint16 m_LightVolumeId[2];
  uint8 m_screenBounds[4];
  uint16 m_nCustomFlags;
  uint8 m_nCustomData;
  uint8 m_nObjID;
  uint8 m_nVisionScale;
};
File

IShader.h

SRenderObjData::m_Constants Data Member
C++
TArray m_Constants;
SRenderObjData::m_FogVolumeContribIdx Data Member
C++
uint16 m_FogVolumeContribIdx[2];
SRenderObjData::m_fTempVars Data Member
C++
float m_fTempVars[10];
Description

Different useful vars (ObjVal component in shaders)

SRenderObjData::m_LightVolumeId Data Member
C++
uint16 m_LightVolumeId[2];
SRenderObjData::m_nCustomData Data Member
C++
uint8 m_nCustomData;
SRenderObjData::m_nCustomFlags Data Member
C++
uint16 m_nCustomFlags;
SRenderObjData::m_nHUDSilhouetteParams Data Member
C++
uint32 m_nHUDSilhouetteParams;
SRenderObjData::m_nLightID Data Member
C++
uint16 m_nLightID[RT_COMMAND_BUF_COUNT];
SRenderObjData::m_nObjID Data Member
C++
uint8 m_nObjID;
SRenderObjData::m_nSubObjHideMask Data Member
C++
uint64 m_nSubObjHideMask;
SRenderObjData::m_nVisionParams Data Member
C++
uint32 m_nVisionParams;
SRenderObjData::m_nVisionScale Data Member
C++
uint8 m_nVisionScale;
SRenderObjData::m_pLayerEffectParams Data Member
C++
uint32 m_pLayerEffectParams;
Description

only used for layer effects

SRenderObjData::m_pRE Data Member
C++
SRenderObjData::m_pShaderParams Data Member
C++
const DynArray<SShaderParam> * m_pShaderParams;
Description

using a pointer, the client code has to ensure that the data stays valid

SRenderObjData::m_pSkinningData Data Member
C++
SSkinningData * m_pSkinningData;
SRenderObjData::m_scissorHeight Data Member
C++
uint16 m_scissorHeight;
SRenderObjData::m_scissorWidth Data Member
C++
uint16 m_scissorWidth;
SRenderObjData::m_scissorX Data Member
C++
uint16 m_scissorX;
SRenderObjData::m_scissorY Data Member
C++
uint16 m_scissorY;
SRenderObjData::m_screenBounds Data Member
C++
uint8 m_screenBounds[4];
SRenderObjData::m_ShadowCasters Data Member
C++
uint64 m_ShadowCasters;
Description

Mask of shadow casters.

SRenderObjData::GetMemoryUsage Method
C++
void GetMemoryUsage(ICrySizer * pSizer) const;
SRenderObjData::Init Method
C++
void Init();
SRenderObjData::SetShaderParams Method
C++
void SetShaderParams(const DynArray<SShaderParam> * pShaderParams);
SRenderObjData::SRenderObjData Constructor
C++
SRenderObjData();