Fields

@:optionaloptionaly:Null<Int>

  • Optional y offset of the texture (in pixels)

@:optionaloptionalx:Null<Int>

  • Optional x offset of the texture (in pixels)

width:Int

  • The width of the texture (in pixels)

type:ResourceTextureType

  • The texture type

@:optionaloptionalpage:Null<Int>

  • Optional array slice (page) index for 2D array textures.

When updating a texture created with type = TEXTURE_TYPE_2D_ARRAY, use this field to select which slice to update.

@:optionaloptionalmipmap:Null<Int>

  • Optional mipmap to upload the data to

height:Int

  • The height of the texture (in pixels)

format:ResourceTextureFormat

  • The texture format

@:optionaloptionalcompression_type:Null<ResourceTextureCompressionType>

  • Specify the compression type for the data in the buffer object that holds the texture data. Defaults to COMPRESSION_TYPE_DEFAULT, i.e no compression.