TextureCubeBuilder WithDynamicUsage()

robot_2Generated
code_blocksInput

Description

The WithDynamicUsage method is a member of the TextureCubeBuilder class in the Sandbox namespace. This method configures the texture cube to be created with dynamic usage, allowing it to be updated frequently. This is particularly useful for textures that need to be modified or updated at runtime.

Usage

To use the WithDynamicUsage method, call it on an instance of TextureCubeBuilder during the texture building process. This method is chainable, meaning it can be combined with other configuration methods to customize the texture cube further.

Example

// Example of using WithDynamicUsage in a texture cube building process
TextureCubeBuilder builder = new TextureCubeBuilder();
Texture texture = builder
    .WithSize(256, 256)
    .WithFormat(ImageFormat.RGBA8)
    .WithDynamicUsage()
    .Finish();

// The texture is now configured with dynamic usage, allowing for frequent updates.