Description
The WithStaticUsage
method is a member of the Texture3DBuilder
class in the Sandbox namespace. This method configures the texture to be used with static usage, which is typically optimized for textures that do not change frequently. This can improve performance by reducing the overhead associated with dynamic updates.
Usage
To use the WithStaticUsage
method, you need to have an instance of Texture3DBuilder
. Call this method on the instance to set the texture usage to static. This method returns the same Texture3DBuilder
instance, allowing for method chaining.
Example
// Example of using WithStaticUsage method
Texture3DBuilder builder = new Texture3DBuilder();
builder.WithStaticUsage();
// Continue configuring the texture
builder.WithSize(256, 256, 256)
.WithFormat(ImageFormat.RGBA8)
.Finish();