pub struct DerivedModule<'a> { /* private fields */ }
Implementations§
Source§impl<'a> DerivedModule<'a>
impl<'a> DerivedModule<'a>
pub fn set_shader_source(&mut self, shader: &'a Module, span_offset: usize)
pub fn clear_shader_source(&mut self)
pub fn map_span(&self, span: Span) -> Span
pub fn import_type(&mut self, h_type: &Handle<Type>) -> Handle<Type>
pub fn rename_type( &mut self, h_type: &Handle<Type>, name: Option<String>, ) -> Handle<Type>
pub fn import_const(&mut self, h_const: &Handle<Constant>) -> Handle<Constant>
pub fn import_global( &mut self, h_global: &Handle<GlobalVariable>, ) -> Handle<GlobalVariable>
pub fn import_global_expression( &mut self, h_expr: Handle<Expression>, ) -> Handle<Expression>
pub fn import_pipeline_override( &mut self, h_override: &Handle<Override>, ) -> Handle<Override>
pub fn localize_function(&mut self, func: &Function) -> Function
pub fn import_function( &mut self, func: &Function, span: Span, ) -> Handle<Function>
pub fn map_function_handle( &mut self, h_func: &Handle<Function>, ) -> Handle<Function>
Sourcepub fn import_function_if_new(
&mut self,
func: &Function,
span: Span,
) -> Handle<Function>
pub fn import_function_if_new( &mut self, func: &Function, span: Span, ) -> Handle<Function>
swap an already imported function for a new one. note span cannot be updated
pub fn into_module_with_entrypoints(self) -> Module
Trait Implementations§
Source§impl<'a> Debug for DerivedModule<'a>
impl<'a> Debug for DerivedModule<'a>
Source§impl<'a> Default for DerivedModule<'a>
impl<'a> Default for DerivedModule<'a>
Source§fn default() -> DerivedModule<'a>
fn default() -> DerivedModule<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> From<DerivedModule<'a>> for Module
impl<'a> From<DerivedModule<'a>> for Module
Source§fn from(derived: DerivedModule<'_>) -> Self
fn from(derived: DerivedModule<'_>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for DerivedModule<'a>
impl<'a> !RefUnwindSafe for DerivedModule<'a>
impl<'a> !Send for DerivedModule<'a>
impl<'a> !Sync for DerivedModule<'a>
impl<'a> Unpin for DerivedModule<'a>
impl<'a> !UnwindSafe for DerivedModule<'a>
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