Skip to main content

IShaderVariantCollectionMethods

Trait IShaderVariantCollectionMethods 

Source
pub trait IShaderVariantCollectionMethods: IShaderVariantCollection {
    // Provided methods
    fn get_shader_count(self) -> i32 { ... }
    fn get_variant_count(self) -> i32 { ... }
    fn get_is_warmed_up(self) -> bool { ... }
    fn add_variant(
        self,
        shader: impl Into<Shader>,
        pass_type: impl Into<PassType>,
        keywords: impl Into<Array<Il2CppString>>,
    ) -> bool { ... }
    fn remove_variant(
        self,
        shader: impl Into<Shader>,
        pass_type: impl Into<PassType>,
        keywords: impl Into<Array<Il2CppString>>,
    ) -> bool { ... }
    fn contains_variant(
        self,
        shader: impl Into<Shader>,
        pass_type: impl Into<PassType>,
        keywords: impl Into<Array<Il2CppString>>,
    ) -> bool { ... }
    fn clear(self) { ... }
    fn warm_up(self) { ... }
    fn ctor(self) { ... }
    fn add(
        self,
        variant: impl Into<ShaderVariantCollection_ShaderVariant>,
    ) -> bool { ... }
    fn remove(
        self,
        variant: impl Into<ShaderVariantCollection_ShaderVariant>,
    ) -> bool { ... }
    fn contains(
        self,
        variant: impl Into<ShaderVariantCollection_ShaderVariant>,
    ) -> bool { ... }
}

Provided Methods§

Source

fn get_shader_count(self) -> i32

get_shaderCount() overload

Source

fn get_variant_count(self) -> i32

get_variantCount() overload

Source

fn get_is_warmed_up(self) -> bool

get_isWarmedUp() overload

Source

fn add_variant( self, shader: impl Into<Shader>, pass_type: impl Into<PassType>, keywords: impl Into<Array<Il2CppString>>, ) -> bool

AddVariant(crate::unity_engine::shader::Shader, crate::unity_engine::rendering::passtype::PassType, ::unity::Array<::unity::Il2CppString>) overload

Source

fn remove_variant( self, shader: impl Into<Shader>, pass_type: impl Into<PassType>, keywords: impl Into<Array<Il2CppString>>, ) -> bool

RemoveVariant(crate::unity_engine::shader::Shader, crate::unity_engine::rendering::passtype::PassType, ::unity::Array<::unity::Il2CppString>) overload

Source

fn contains_variant( self, shader: impl Into<Shader>, pass_type: impl Into<PassType>, keywords: impl Into<Array<Il2CppString>>, ) -> bool

ContainsVariant(crate::unity_engine::shader::Shader, crate::unity_engine::rendering::passtype::PassType, ::unity::Array<::unity::Il2CppString>) overload

Source

fn clear(self)

Clear() overload

Source

fn warm_up(self)

WarmUp() overload

Source

fn ctor(self)

.ctor() overload

Source

fn add(self, variant: impl Into<ShaderVariantCollection_ShaderVariant>) -> bool

Add(crate::unity_engine::shadervariantcollection::ShaderVariantCollection_ShaderVariant) overload

Source

fn remove( self, variant: impl Into<ShaderVariantCollection_ShaderVariant>, ) -> bool

Remove(crate::unity_engine::shadervariantcollection::ShaderVariantCollection_ShaderVariant) overload

Source

fn contains( self, variant: impl Into<ShaderVariantCollection_ShaderVariant>, ) -> bool

Contains(crate::unity_engine::shadervariantcollection::ShaderVariantCollection_ShaderVariant) overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IShaderVariantCollection> IShaderVariantCollectionMethods for __T

Available on crate feature unity_engine-shadervariantcollection only.