Description
Begins creation of a custom texture. This method returns a TextureBuilder
object, which can be used to further define the properties and data of the texture. To complete the creation process, you must call the Create
method on the TextureBuilder
instance.
Usage
Use this method when you need to create a texture with custom properties or data that are not covered by the standard texture creation methods. This is particularly useful for generating textures dynamically at runtime.
Example
// Start creating a custom texture
TextureBuilder builder = Texture.CreateCustom();
// Define texture properties and data
// ...
// Finalize the texture creation
Texture customTexture = builder.Create("CustomTextureName", true, textureData, mipLevels);