Fields

width:Int

  • The width of the texture (in pixels)

type:ResourceTextureType

  • The texture type

@:optionaloptionalpage_count:Null<Int>

  • Optional number of pages for a 2D texture array (when type is TEXTURE_TYPE_2D_ARRAY)

@:optionaloptionalnum_mipmaps:Null<Int>

  • Optional number of mipmaps to generate or present in the optional buffer

height:Int

  • The height of the texture (in pixels)

@:optionaloptionalgenerate_mipmaps:Null<Bool>

  • Optional flag to specify if mipmaps should be generated. Defaults to false

format:ResourceTextureFormat

  • The texture format

@:optionaloptionalflags:Null<Int>

  • Optional texture usage flags (bitmask) for the created texture

@:optionaloptionaldepth:Null<Int>

  • Optional depth of the texture (required if type is TEXTURE_TYPE_CUBE_MAP (=6) or TEXTURE_TYPE_2D_ARRAY)

@:optionaloptionalbuffer:Null<Buffer>

  • Optional buffer containing pixel data, the format of the pixel data must match the specified format field