Struct naga::valid::ModuleInfo
source · pub struct ModuleInfo {
type_flags: Vec<TypeFlags>,
functions: Vec<FunctionInfo>,
entry_points: Vec<FunctionInfo>,
const_expression_types: Box<[TypeResolution]>,
}
Fields§
§type_flags: Vec<TypeFlags>
§functions: Vec<FunctionInfo>
§entry_points: Vec<FunctionInfo>
§const_expression_types: Box<[TypeResolution]>
Implementations§
source§impl ModuleInfo
impl ModuleInfo
sourcepub(super) fn process_const_expression(
&mut self,
handle: Handle<Expression>,
resolve_context: &ResolveContext<'_>,
gctx: GlobalCtx<'_>,
) -> Result<(), ConstExpressionError>
pub(super) fn process_const_expression( &mut self, handle: Handle<Expression>, resolve_context: &ResolveContext<'_>, gctx: GlobalCtx<'_>, ) -> Result<(), ConstExpressionError>
Populates self.const_expression_types
sourcepub(super) fn process_function(
&self,
fun: &Function,
module: &Module,
flags: ValidationFlags,
capabilities: Capabilities,
) -> Result<FunctionInfo, WithSpan<FunctionError>>
pub(super) fn process_function( &self, fun: &Function, module: &Module, flags: ValidationFlags, capabilities: Capabilities, ) -> Result<FunctionInfo, WithSpan<FunctionError>>
Builds the FunctionInfo
based on the function, and validates the
uniform control flow if required by the expressions of this function.
pub fn get_entry_point(&self, index: usize) -> &FunctionInfo
Trait Implementations§
source§impl Clone for ModuleInfo
impl Clone for ModuleInfo
source§fn clone(&self) -> ModuleInfo
fn clone(&self) -> ModuleInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ModuleInfo
impl Debug for ModuleInfo
source§impl Index<Handle<Expression>> for ModuleInfo
impl Index<Handle<Expression>> for ModuleInfo
Auto Trait Implementations§
impl Freeze for ModuleInfo
impl RefUnwindSafe for ModuleInfo
impl Send for ModuleInfo
impl Sync for ModuleInfo
impl Unpin for ModuleInfo
impl UnwindSafe for ModuleInfo
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)