Enum gltf::image::Data
[−]
[src]
pub enum Data<'a> { FromBufferView { buffer_view: Loaded<'a, View<'a>>, mime_type: &'a str, }, External { uri: &'a str, mime_type: Option<&'a str>, }, }
Return type of Loaded<Image>::data
.
Variants
FromBufferView
Image data is contained in a buffer view.
Fields of FromBufferView
buffer_view: Loaded<'a, View<'a>> | The buffer view containing the encoded image data. |
mime_type: &'a str | The image data MIME type. |
External
Image data is contained in an external data source.
Fields of External
uri: &'a str | The URI of the external data source. |
mime_type: Option<&'a str> | The image data MIME type, if provided. |