[go: up one dir, main page]

Struct gltf::v1::shader::Shader [] [src]

pub struct Shader {
    pub uri: String,
    pub kind: ShaderType,
    pub name: Option<String>,
}

Fields

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.

The shader stage.

Allowed values are 35632 (FRAGMENT_SHADER) and 35633 (VERTEX_SHADER).

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.

Trait Implementations

impl Debug for Shader
[src]

Formats the value using the given formatter.

impl Default for Shader
[src]

Returns the "default value" for a type. Read more