TextureCreate2D(BackbufferRatio, Boolean, Int32, TextureFormat, TextureFlags) Method |
Creates a new 2D texture that scales with backbuffer size.
Namespace: Internal.SharpBgfxAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntaxpublic static Texture Create2D(
BackbufferRatio ratio,
bool hasMips,
int arrayLayers,
TextureFormat format,
TextureFlags flags = TextureFlags.None
)
Parameters
- ratio BackbufferRatio
- The amount to scale when the backbuffer resizes.
- hasMips Boolean
- Indicates that texture contains full mip-map chain.
- arrayLayers Int32
- Number of layers in texture array. Must be 1 if Texture2DArray caps flag not set.
- format TextureFormat
- The format of the texture data.
- flags TextureFlags (Optional)
- Flags that control texture behavior.
Return Value
Texture
The newly created texture handle.
See Also