Struct rin::gl::autoload::ProgramSettings [−][src]
pub struct ProgramSettings<P> where
P: AsRef<Path> + Clone, { pub version: usize, pub precision: ShaderPrecision, pub extensions: Vec<String, Global>, pub defines: Vec<(String, String), Global>, pub shaders: Vec<(u32, P), Global>, pub shader_replace: Vec<(u32, (String, String)), Global>, pub includes_search_paths: Vec<P, Global>, pub includes_dictionary: IndexMap<String, String, RandomState>, }
Program settings to be used by a glsl program autoloader
Fields
version: usize
glsl version, in desktop 330, 400, 420… in gles 2 or 3
precision: ShaderPrecision
precision of the shaders, by now applied to vertex and fragment
extensions: Vec<String, Global>
enabled extensions by name
defines: Vec<(String, String), Global>
add or change defines in the shaders
shaders: Vec<(u32, P), Global>
shader type / path pairs
shader_replace: Vec<(u32, (String, String)), Global>
shader type / replacement pairs where replacement is two strings one for search and the second for replace by every time the shader is realoaded any replacements will be applied
includes_search_paths: Vec<P, Global>
search paths for includes. includes will be looked for in the same folder as the shader and if not found there in each of the paths in this vector until found
includes_dictionary: IndexMap<String, String, RandomState>
includes substitutions that don’t come from files in the file system the key of this hashmap is the name of the include as found in the shaders the value is the source for the include
Implementations
impl<P> ProgramSettings<P> where
P: AsRef<Path> + Clone,
[src]
impl<P> ProgramSettings<P> where
P: AsRef<Path> + Clone,
[src]Trait Implementations
impl<P> Clone for ProgramSettings<P> where
P: Clone + AsRef<Path>,
[src]
impl<P> Clone for ProgramSettings<P> where
P: Clone + AsRef<Path>,
[src]pub fn clone(&self) -> ProgramSettings<P>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<P> RefUnwindSafe for ProgramSettings<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
impl<P> Send for ProgramSettings<P> where
P: Send,
P: Send,
impl<P> Sync for ProgramSettings<P> where
P: Sync,
P: Sync,
impl<P> Unpin for ProgramSettings<P> where
P: Unpin,
P: Unpin,
impl<P> UnwindSafe for ProgramSettings<P> where
P: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]