TextureCubeBuilder WithScreenFormat()

book_4_sparkGenerated
code_blocksInput

Description

The WithScreenFormat method is a member of the TextureCubeBuilder class in the Sandbox namespace. This method configures the texture cube to use a screen-compatible format, which is typically optimized for rendering to the screen or for use in screen-space operations.

Usage

To use the WithScreenFormat method, you must first have an instance of TextureCubeBuilder. Call this method on the instance to set the texture format to a screen-compatible format. This method is chainable, meaning you can call other configuration methods on the same instance in a fluent style.

Example

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

// Continue configuring the builder
builder.WithSize(512, 512)
       .WithMips(4);

// Finish building the texture
Texture texture = builder.Finish();