void MarkUsed( int requiredMipSize )

book_4_sparkGenerated
code_blocksInput

Description

The MarkUsed method is a member of the Texture class in the Sandbox API. This method is used to mark a texture as being used, specifying the required mip size. This can be useful for managing texture resources efficiently, ensuring that the necessary mip levels are available for rendering.

Usage

To use the MarkUsed method, you need to have an instance of a Texture object. Call the method with an integer parameter that specifies the required mip size. This will inform the system that the texture is in use and the specified mip level should be maintained.

Example

// Assuming 'texture' is an instance of Sandbox.Texture
int requiredMipSize = 2;
texture.MarkUsed(requiredMipSize);