void PEXOCCSetTMResourceHints( PEXOCC context, int optimization_hint, unsigned int count, PEXTableIndex *priorities )
None.
Invoke PEXOCCSetTMResourceHints to create an attribute output command which sets the optimization hint in the renderer's pipeline state according to the value specified by optimization_hint.
Use the texture mapping resource hint to specify how the implementation should consider optimizing its resources when subsequent entries of the texture mapping lookup table are activated.
PEXlib defines the following texture mapping resource hints (optimization_hint):
The pipeline state's texture mapping resource hints also includes a prioritized list of indices into the renderer's texture mapping lookup table. This list indicates the expected usage of the indicated textures. If the implementation uses the list, it only applies to subsequently activated textures, both when they are activated and when they are deactivated. Textures already activated and subsequently activated textures that are not in the list are assumed to be at some implementation-dependent priority lower than the textures in the list. The first texture in the list is expected to be activated most often, and the last texture the least, of the specified textures. If the same index appears multiple times in the list, then its highest priority is used. If an index is undefined, then it is ignored. The prioritized textures replace the list in the pipeline state's texture mapping resource hints.
If you specify an unsupported texture mapping resource optimization hint (priorities), then the optimization hint used is PEXTMResourceHintsNone. If priorities includes index zero, then the implementation issues a BadPEXOutputCommand error.
The texture mapping resource hints function is a member of the styled and shaded surface attribute set.
For an overview and for a list of output attribute functions, see Output Attribute Functions.