Click or drag to resize
SoLDMResourceParametersmax2DTexMemory Property

Maximum of 2D textures memory in MB for this data set.

Namespace: OIV.LDM.Nodes
Assembly: OIV.LDM (in OIV.LDM.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
public SoSFInt32 max2DTexMemory { get; }

Property Value

Type: SoSFInt32
Remarks

This field is only considered for OIV.VolumeViz.Nodes.SoSlice nodes.

Each tile needed to render a slice (OIV.VolumeViz.Nodes.SoOrthoSlice, OIV.VolumeViz.Nodes.SoVolumeSkin, etc) must be stored in GPU memory as a 2D texture. This method limits the amount of GPU memory that can be used by (for example) OIV.VolumeViz.Nodes.SoOrthoSlice and OIV.VolumeViz.Nodes.SoVolumeSkin nodes. This can be useful when combining slices and volume rendering because the 3D textures used by volume rendering require much more GPU memory.

Default value is -1, meaning LDM is in charge of the automatic sharing of a given resource. Automatic sharing means LDM will compute, by itself, the amount of associated resource it allocates to each dataset. The automatic allocation takes into account all nodes in scenegraph.

If value is not -1 (default) LDM will not consider this node in memory allocation, and allocated CPU memory for this node will be the exact value set in the field. In this case, the amount of memory is removed from Global value. All other dataset will share (OIV.LDM.SoLDMGlobalResourceParameters.SetMax2DTexMemory(System.UInt64) - ( Sum of memory of all datasets with OIV.LDM.Nodes.SoLDMResourceParameters.max2DTexMemory != -1 )) / ( number of datasets with OIV.LDM.Nodes.SoLDMResourceParameters.max2DTexMemory == -1 )

Note Note

Field available since Open Inventor 9.6.0

See Also