Struct gltf::v1::shader::Shader
[−]
[src]
pub struct Shader {
pub uri: String,
pub kind: ShaderType,
pub name: Option<String>,
}Fields
uri: String
The uri of the GLSL source.
Relative paths are relative to the .gltf file. Instead of referencing an external file, the uri can also be a data-uri.
kind: ShaderType
The shader stage.
Allowed values are 35632 (FRAGMENT_SHADER) and 35633 (VERTEX_SHADER).
name: Option<String>
The user-defined name of this object.
This is not necessarily unique, e.g., a shader and a buffer could have the same name, or two shaders could even have the same name.