Skip to main content

IShaderMethods

Trait IShaderMethods 

Source
pub trait IShaderMethods: IShader {
Show 24 methods // Provided methods fn get_maximum_lod(self) -> i32 { ... } fn set_maximum_lod(self, value: impl Into<i32>) { ... } fn get_is_supported(self) -> bool { ... } fn get_render_queue(self) -> i32 { ... } fn get_disable_batching(self) -> DisableBatchingType { ... } fn get_dependency(self, name: impl Into<Il2CppString>) -> Shader { ... } fn get_pass_count(self) -> i32 { ... } fn find_pass_tag_value( self, pass_index: impl Into<i32>, tag_name: impl Into<ShaderTagId>, ) -> ShaderTagId { ... } fn internal_find_pass_tag_value( self, pass_index: impl Into<i32>, tag_name: impl Into<i32>, ) -> i32 { ... } fn ctor(self) { ... } fn get_property_count(self) -> i32 { ... } fn find_property_index(self, property_name: impl Into<Il2CppString>) -> i32 { ... } fn get_property_name_2(self, property_index: impl Into<i32>) -> Il2CppString { ... } fn get_property_name_id_2(self, property_index: impl Into<i32>) -> i32 { ... } fn get_property_type_2( self, property_index: impl Into<i32>, ) -> ShaderPropertyType { ... } fn get_property_description_2( self, property_index: impl Into<i32>, ) -> Il2CppString { ... } fn get_property_flags_2( self, property_index: impl Into<i32>, ) -> ShaderPropertyFlags { ... } fn get_property_attributes_2( self, property_index: impl Into<i32>, ) -> Array<Il2CppString> { ... } fn get_property_default_float_value( self, property_index: impl Into<i32>, ) -> f32 { ... } fn get_property_default_vector_value( self, property_index: impl Into<i32>, ) -> Vector4 { ... } fn get_property_range_limits( self, property_index: impl Into<i32>, ) -> Vector2 { ... } fn get_property_texture_dimension_2( self, property_index: impl Into<i32>, ) -> TextureDimension { ... } fn get_property_texture_default_name_2( self, property_index: impl Into<i32>, ) -> Il2CppString { ... } fn find_texture_stack( self, property_index: impl Into<i32>, ) -> (bool, Il2CppString, i32) { ... }
}

Provided Methods§

Source

fn get_maximum_lod(self) -> i32

get_maximumLOD() overload

Source

fn set_maximum_lod(self, value: impl Into<i32>)

set_maximumLOD(i32) overload

Source

fn get_is_supported(self) -> bool

get_isSupported() overload

Source

fn get_render_queue(self) -> i32

get_renderQueue() overload

Source

fn get_disable_batching(self) -> DisableBatchingType

get_disableBatching() overload

Source

fn get_dependency(self, name: impl Into<Il2CppString>) -> Shader

GetDependency(::unity::Il2CppString) overload

Source

fn get_pass_count(self) -> i32

get_passCount() overload

Source

fn find_pass_tag_value( self, pass_index: impl Into<i32>, tag_name: impl Into<ShaderTagId>, ) -> ShaderTagId

FindPassTagValue(i32, crate::unity_engine::rendering::shadertagid::ShaderTagId) overload

Source

fn internal_find_pass_tag_value( self, pass_index: impl Into<i32>, tag_name: impl Into<i32>, ) -> i32

Internal_FindPassTagValue(i32, i32) overload

Source

fn ctor(self)

.ctor() overload

Source

fn get_property_count(self) -> i32

GetPropertyCount() overload

Source

fn find_property_index(self, property_name: impl Into<Il2CppString>) -> i32

FindPropertyIndex(::unity::Il2CppString) overload

Source

fn get_property_name_2(self, property_index: impl Into<i32>) -> Il2CppString

GetPropertyName(i32) overload

Source

fn get_property_name_id_2(self, property_index: impl Into<i32>) -> i32

GetPropertyNameId(i32) overload

Source

fn get_property_type_2( self, property_index: impl Into<i32>, ) -> ShaderPropertyType

GetPropertyType(i32) overload

Source

fn get_property_description_2( self, property_index: impl Into<i32>, ) -> Il2CppString

GetPropertyDescription(i32) overload

Source

fn get_property_flags_2( self, property_index: impl Into<i32>, ) -> ShaderPropertyFlags

GetPropertyFlags(i32) overload

Source

fn get_property_attributes_2( self, property_index: impl Into<i32>, ) -> Array<Il2CppString>

GetPropertyAttributes(i32) overload

Source

fn get_property_default_float_value(self, property_index: impl Into<i32>) -> f32

GetPropertyDefaultFloatValue(i32) overload

Source

fn get_property_default_vector_value( self, property_index: impl Into<i32>, ) -> Vector4

GetPropertyDefaultVectorValue(i32) overload

Source

fn get_property_range_limits(self, property_index: impl Into<i32>) -> Vector2

GetPropertyRangeLimits(i32) overload

Source

fn get_property_texture_dimension_2( self, property_index: impl Into<i32>, ) -> TextureDimension

GetPropertyTextureDimension(i32) overload

Source

fn get_property_texture_default_name_2( self, property_index: impl Into<i32>, ) -> Il2CppString

GetPropertyTextureDefaultName(i32) overload

Source

fn find_texture_stack( self, property_index: impl Into<i32>, ) -> (bool, Il2CppString, i32)

FindTextureStack(i32, *mut::unity::Il2CppString, *muti32) 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: IShader> IShaderMethods for __T

Available on crate feature unity_engine-shader only.