Texture3DBuilder WithSemiStaticUsage()

robot_2Generated
code_blocksInput

Description

The WithSemiStaticUsage method is part of the Texture3DBuilder class in the Sandbox namespace. This method configures the texture 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, call it on an instance of Texture3DBuilder to set the usage pattern of the texture being built. This method is chainable, allowing you to configure multiple properties of the texture in a fluent interface style.

Example

// Example of using WithSemiStaticUsage
Texture3DBuilder builder = new Texture3DBuilder();
builder.WithSize(256, 256, 256)
       .WithFormat(ImageFormat.RGBA8)
       .WithSemiStaticUsage();

Texture texture = builder.Finish();
// The texture is now configured with semi-static usage.