pub struct GlslTypeInference { /* private fields */ }Expand description
A simple type-inference context for GLSL expression analysis.
Implementations§
Source§impl GlslTypeInference
impl GlslTypeInference
Sourcepub fn new(version: GLSLVersion) -> Self
pub fn new(version: GLSLVersion) -> Self
Create a new inference context for the given GLSL version.
Sourcepub fn num_components(ty: &GLSLType) -> usize
pub fn num_components(ty: &GLSLType) -> usize
Component count of a vector/matrix type.
Sourcepub fn type_available(&self, ty: &GLSLType) -> bool
pub fn type_available(&self, ty: &GLSLType) -> bool
Whether a type is available in this version.
Sourcepub fn version(&self) -> GLSLVersion
pub fn version(&self) -> GLSLVersion
Return the version.
Sourcepub fn num_bindings(&self) -> usize
pub fn num_bindings(&self) -> usize
Number of active bindings.
Auto Trait Implementations§
impl Freeze for GlslTypeInference
impl RefUnwindSafe for GlslTypeInference
impl Send for GlslTypeInference
impl Sync for GlslTypeInference
impl Unpin for GlslTypeInference
impl UnsafeUnpin for GlslTypeInference
impl UnwindSafe for GlslTypeInference
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more