Struct reshaderlib::Shader
source · pub struct Shader {
pub name: String,
pub repository: String,
pub branch: Option<String>,
pub essential: bool,
}Expand description
A shader repository
Fields§
§name: StringThe name of the shader
repository: StringThe URL to the shader repository
branch: Option<String>The branch to use
essential: boolIs this shader an essential shader?
Implementations§
source§impl Shader
impl Shader
sourcepub fn new(
name: &str,
repository: &str,
essential: bool,
branch: Option<&str>
) -> Self
pub fn new( name: &str, repository: &str, essential: bool, branch: Option<&str> ) -> Self
Creates a new shader repository
sourcepub fn pull(&self, directory: &Path) -> ReShaderResult<()>
pub fn pull(&self, directory: &Path) -> ReShaderResult<()>
Pulls the latest changes from the shader repository
sourcepub fn clone_repo(&self, target_directory: &Path) -> ReShaderResult<Repository>
pub fn clone_repo(&self, target_directory: &Path) -> ReShaderResult<Repository>
Clones the shader repository