Description
The WithScreenFormat
method is a member of the TextureArrayBuilder
class in the Sandbox namespace. This method configures the texture array to use a format that is optimized for screen rendering. It is a fluent method, meaning it returns the same TextureArrayBuilder
instance, allowing for method chaining.
Usage
Use the WithScreenFormat
method when you want to ensure that the texture array is set up with a format suitable for screen display. This is particularly useful when you are building textures that will be directly rendered to the screen, ensuring optimal performance and compatibility with screen rendering requirements.
Example
// Example of using WithScreenFormat in a method chain
TextureArrayBuilder builder = new TextureArrayBuilder();
builder.WithSize(1024, 768)
.WithScreenFormat()
.WithCount(5)
.Finish();