fn put_wrapped_expression_for_packed_vec3_access(
        &mut self,
        expr_handle: Handle<crate::Expression>,
        context: &ExpressionContext,
        is_scoped: bool,
    ) -> BackendResult {
        if let Some(scalar_kind) = context.get_packed_vec_kind(expr_handle) {
            write!(self.out, "{}::{}3(", NAMESPACE, scalar_kind.to_msl_name())?;
            self.put_expression(expr_handle, context, is_scoped)?;
            write!(self.out, ")")?;
        } else {
            self.put_expression(expr_handle, context, is_scoped)?;
        }
        Ok(())
    }
/// Used by expressions like Swizzle and Binary since they need packed_vec3's to be casted to a vec3
Used by expressions like Swizzle and Binary since they need packed_vec3's to be casted to a vec3
Used by expressions like Swizzle and Binary since they need packed_vec3 ' s to be casted to a vec3
fn put_wrapped_expression_for_packed_vec3_access(
        &mut self,
        expr_handle: Handle<crate::Expression>,
        context: &ExpressionContext,
        is_scoped: bool,
    ) -> BackendResult {
        if let Some(scalar_kind) = context.get_packed_vec_kind(expr_handle) {
            write!(self.out, "{}::{}3(", NAMESPACE, scalar_kind.to_msl_name())?;
            self.put_expression(expr_handle, context, is_scoped)?;
            write!(self.out, ")")?;
        } else {
            self.put_expression(expr_handle, context, is_scoped)?;
        }
        Ok(())
    }
fn put_wrapped_expression_for_packed_vec3_access ( & mut self , expr_handle : Handle < crate :: Expression > , context : & ExpressionContext , is_scoped : bool , ) -> BackendResult { if let Some ( scalar_kind ) = context . get_packed_vec_kind ( expr_handle ) { write ! ( self out " " NAMESPACE scalar_kind to_msl_name ( ) ) ? ; self . put_expression ( expr_handle , context , is_scoped ) ? ; write ! ( self out " " ) ? ; } else { self . put_expression ( expr_handle , context , is_scoped ) ? ; } Ok ( ( ) ) }
Used by expressions like Swizzle and Binary since they need packed_vec3's to be casted to a vec3
Used by expressions like Swizzle and Binary since they need packed_vec3 ' s to be casted to a vec3
&mut self
expr_handle
Handle<crate::Expression>
context
&ExpressionContext
is_scoped
bool
&mut self
expr_handle
Handle<crate::Expression>
context
&ExpressionContext
is_scoped
bool