Texture Type
A 2D texture.
Extension
.textureset
Folder Contents
Mipmaps for the different trait configurations. For information on the mipmap type, see Mipmap Type.
Contents.json File
Metadata, on-demand resource tags, texture information, and properties for the texture are shown in (Table 29-1).
Key |
Type |
Description |
---|---|---|
|
Dictionary |
Versioning information for the asset catalog. |
|
String |
The application that authored the asset catalog. |
|
Number |
The version of the asset catalog. |
|
Dictionary |
Properties for the texture. |
|
String |
Interpret the file as an image or as data. For the values, see interpretation below. |
|
Array of strings |
The on-demand resource tags for the texture. |
|
String |
The origin of the coordinate system. For the values, see origin below. |
|
Array of dictionaries |
The mipmap sets for each trait combination. |
|
Slot component |
The color space for the data item. For the values, see color-space in Image Set Type. |
|
Slot component |
The color gamut of the device display. For the values, see display-gamut in Image Set Type. |
|
String |
The name of the folder containing the mipmap for the trait variation. For information on the mipmap type, see Mipmap Type. |
|
Slot component |
The graphics features required for the item. For the values, see graphics-feature-set in Image Set Type. |
|
Slot component |
The device type for the image. For the values, see idiom in Image Set Type. |
|
Slot component |
The memory required by the data item. For the values, see memory in Image Set Type. |
|
String |
The format of the pixels in the image. For the values, see pixel-format below. |
|
Slot Component |
The scale of the image. For the values, see scale in Image Set Type. |
Values for Enumerated Tags
color-space
See color-space in Image Set Type.
display-gamut
See display-gamut in Image Set Type.
graphics-feature-set
See graphics-feature-set in Image Set Type.
idiom
See idiom in Image Set Type.
interpretation
How to interpret the contents of the file (Table 29-2).
memory
See memory in Image Set Type.
origin
The origin of the image coordinate system. Values are shown in (Table 29-3).
pixel-format
The pixel format for a texture. Values are shown in (Table 29-4).
Value |
Description |
---|---|
Tag not included |
Format is determined automatically. |
|
The pixels are in normalized 8-bit red format. |
|
The pixels are in normalized 8-bit red, green format. |
|
The pixels are in normalized 8-bit RGB alpha format. |
|
The pixels are in normalized 8-bit RGB alpha format for the sRGB color space. |
|
The pixels are in 16-bit floating point red format. |
|
The pixels are in 16-bit floating point red, green format. |
|
The pixels are in 16-bit floating point RGB alpha format. |
|
The pixels are in 10-bit extended range sRGB format. |
|
The pixels are in ASTC 4x4 RGB alpha format. |
|
The pixels are in ASTC 4x4 sRGB format. |
|
The pixels are in ASTC 8x8 RGB alpha format. |
|
The pixels are in ASTC 8x8 sRGB format. |
scale
See scale in Image Set Type.
Sample Contents.json File
{
"properties" : {
"interpretation" : "colors"
},
"textures" : [
{
"filename" : "HighFidelityLlama.mipmapset",
"idiom" : "Universal",
"memory" : "4GB",
"pixel-format" : "rbg-10-extended-range-sRGB"
},
{
"filename" : "LowFidelityLlama.mipmapset",
"idiom" : "Universal",
"memory" : "1GB",
"pixel-format" : "rgba-8-unorm"
}
]
"info" : {
"author" : "com.developerName",
"version" : 1
}
}
Copyright © 2018 Apple Inc. All rights reserved. Terms of Use | Privacy Policy | Updated: 2018-04-09