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