pub struct ProfileCommon {
pub asset: Option<Box<Asset>>,
pub image: Vec<Image>,
pub new_param: Vec<NewParam>,
pub technique: TechniqueFx<CommonData>,
pub extra: Vec<Extra>,
}
Expand description
Opens a block of platform-independent declarations for the common, fixed-function shader.
Fields§
§asset: Option<Box<Asset>>
Asset management information about this element.
image: Vec<Image>
Declares a standard COLLADA image resource.
new_param: Vec<NewParam>
Creates a new parameter from a constrained set of
types recognizable by all platforms, see ParamType
.
technique: TechniqueFx<CommonData>
Declares the only technique for this effect.
extra: Vec<Extra>
Provides arbitrary additional information about this element.
Implementations§
Source§impl ProfileCommon
impl ProfileCommon
Sourcepub fn new(technique: TechniqueFx<CommonData>) -> Self
pub fn new(technique: TechniqueFx<CommonData>) -> Self
Construct a new ProfileCommon
from the TechniqueFx
data.
Trait Implementations§
Source§impl Clone for ProfileCommon
impl Clone for ProfileCommon
Source§fn clone(&self) -> ProfileCommon
fn clone(&self) -> ProfileCommon
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 ProfileCommon
impl Debug for ProfileCommon
Source§impl From<ProfileCommon> for Profile
impl From<ProfileCommon> for Profile
Source§fn from(v: ProfileCommon) -> Self
fn from(v: ProfileCommon) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProfileCommon
impl RefUnwindSafe for ProfileCommon
impl Send for ProfileCommon
impl Sync for ProfileCommon
impl Unpin for ProfileCommon
impl UnwindSafe for ProfileCommon
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