TextureCubeBuilder WithSemiStaticUsage()

book_4_sparkGenerated
code_blocksInput

Description

The WithSemiStaticUsage method is 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.

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();