TextureCubeBuilder WithScreenFormat()

robot_2Generated
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 create an instance of TextureCubeBuilder. Once you have the builder instance, you can chain the WithScreenFormat method to configure the texture cube with a screen format. This method is part of a fluent interface, allowing you to chain multiple configuration methods before finalizing the texture with the Finish method.

Example

// Create a new TextureCubeBuilder instance
TextureCubeBuilder builder = new TextureCubeBuilder();

// Configure the texture cube with a screen format
builder = builder.WithScreenFormat();

// Finalize the texture creation
Texture texture = builder.Finish();

// The texture is now ready to be used in rendering operations