Class Shader

    Definition

    Namespace:
    Tizen.NUI
    Assembly:
    Tizen.NUI.dll

    Shader allows custom vertex and color transformations in the GPU.

    public class Shader : Animatable, IDynamicResourceHandler, INameScope, System.IDisposable
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    Animatable
    Shader
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable

    Constructors

    View Source

    Shader(string, string, string)

    Creates Shader object with name

    Declaration
    public Shader(string vertexShader, string fragmentShader, string shaderName)
    Parameters
    Type Name Description
    string vertexShader

    The vertex shader code for the effect.

    string fragmentShader

    The fragment Shader code for the effect.

    string shaderName

    The name of this shader object.

    View Source

    Shader(string, string, Value)

    Creates Shader object.

    Declaration
    public Shader(string vertexShader, string fragmentShader, Shader.Hint.Value hints)
    Parameters
    Type Name Description
    string vertexShader

    The vertex shader code for the effect.

    string fragmentShader

    The fragment Shader code for the effect.

    Shader.Hint.Value hints

    The hints to define the geometry of the rendered object.

    View Source

    Shader(string, string, ShaderHint, string)

    Creates Shader object with hints and name

    Declaration
    public Shader(string vertexShader, string fragmentShader, ShaderHint hints, string shaderName)
    Parameters
    Type Name Description
    string vertexShader

    The vertex shader code for the effect.

    string fragmentShader

    The fragment Shader code for the effect.

    ShaderHint hints

    The hints to define the geometry of the rendered object.

    string shaderName

    The name of this shader object.

    View Source

    Shader(string, string, ShaderHint)

    Creates Shader object.

    Declaration
    public Shader(string vertexShader, string fragmentShader, ShaderHint hints)
    Parameters
    Type Name Description
    string vertexShader

    The vertex shader code for the effect.

    string fragmentShader

    The fragment Shader code for the effect.

    ShaderHint hints

    The hints to define the geometry of the rendered object.

    View Source

    Shader(string, string)

    Creates Shader object.

    Declaration
    public Shader(string vertexShader, string fragmentShader)
    Parameters
    Type Name Description
    string vertexShader

    The vertex shader code for the effect.

    string fragmentShader

    The fragment Shader code for the effect.

    Properties

    View Source

    AliveCount

    Gets the number of currently alived Shader object.

    Declaration
    public static int AliveCount { get; }
    Property Value
    Type Description
    int
    View Source

    Name

    Gets the name of program.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    string
    View Source

    Program

    Gets and Sets the program property.

    Declaration
    public PropertyMap Program { get; set; }
    Property Value
    Type Description
    PropertyMap

    Methods

    View Source

    Dispose(DisposeTypes)

    Declaration
    protected override void Dispose(DisposeTypes type)
    Parameters
    Type Name Description
    DisposeTypes type
    Overrides
    BaseHandle.Dispose(DisposeTypes)
    View Source

    ReleaseSwigCPtr(HandleRef)

    Declaration
    protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
    Parameters
    Type Name Description
    System.Runtime.InteropServices.HandleRef swigCPtr
    Overrides
    Animatable.ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef)

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable

    Extension Methods

    BindableObjectExtensions.SetBinding(BindableObject, BindableProperty, string, BindingMode, IValueConverter, string)
    NameScopeExtensions.FindByName<T>(Element, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX