TextureCubeBuilder WithSemiStaticUsage()

robot_2Generated
code_blocksInput

Description

The WithSemiStaticUsage method is a part of the TextureCubeBuilder class in the Sandbox namespace. This method configures the texture cube to use a semi-static usage pattern. Semi-static usage is typically used for textures that are updated infrequently but still require some level of dynamic updates. This method is useful when you need a balance between static and dynamic usage, allowing for occasional updates without the overhead of fully dynamic textures.

Usage

To use the WithSemiStaticUsage method, you need to have an instance of TextureCubeBuilder. Call this method on the instance to set the usage pattern to semi-static. This method returns the same TextureCubeBuilder instance, allowing for method chaining.

Example

// Example of using WithSemiStaticUsage
TextureCubeBuilder builder = new TextureCubeBuilder();
builder.WithSemiStaticUsage();

// Continue configuring the builder
builder.WithSize(256, 256)
       .WithFormat(ImageFormat.RGBA8)
       .Finish();