Search Results for

    Show / Hide Table of Contents

    Class GLProgram

    A set of shaders used for drawing.

    Inheritance
    object
    GLProgram
    Namespace: Evergine.OpenGL
    Assembly: Evergine.OpenGL.dll
    Syntax
    public class GLProgram

    Constructors

    GLProgram(GLGraphicsContext, ComputeShaderStateDescription)

    Initializes a new instance of the GLProgram class.

    Declaration
    public GLProgram(GLGraphicsContext context, ComputeShaderStateDescription shaderDescription)
    Parameters
    Type Name Description
    GLGraphicsContext context

    Graphics context.

    ComputeShaderStateDescription shaderDescription

    The current shader description.

    GLProgram(GLGraphicsContext, GraphicsShaderStateDescription)

    Initializes a new instance of the GLProgram class.

    Declaration
    public GLProgram(GLGraphicsContext context, GraphicsShaderStateDescription shaderDescription)
    Parameters
    Type Name Description
    GLGraphicsContext context

    Graphics context.

    GraphicsShaderStateDescription shaderDescription

    The current shader description.

    Fields

    Hash

    The GetHashCode that represents this program.

    Declaration
    public int Hash
    Field Value
    Type Description
    int

    disposed

    Indicates if the instance has been disposed.

    Declaration
    protected bool disposed
    Field Value
    Type Description
    bool

    uniformBlockBindings

    The uniform block binding index.

    Declaration
    protected List<uint> uniformBlockBindings
    Field Value
    Type Description
    List<uint>

    uniformSlots

    The uniform slots.

    Declaration
    protected Dictionary<int, int> uniformSlots
    Field Value
    Type Description
    Dictionary<int, int>

    Methods

    Apply()

    Installs a program object as part of the current graphics state.

    Declaration
    public void Apply()

    Dispose()

    Disposes of this instance.

    Declaration
    public void Dispose()

    ExistsBufferBinding(uint)

    Gets slot binding to the buffer element index.

    Declaration
    public bool ExistsBufferBinding(uint binding)
    Parameters
    Type Name Description
    uint binding

    Slot index.

    Returns
    Type Description
    bool

    If a buffer binding exists in this slot.

    GetAttribLocation(ElementSemanticType, uint, out int)

    Gets the attribute location from the semantic type and index.

    Declaration
    public bool GetAttribLocation(ElementSemanticType semanticType, uint semanticIndex, out int location)
    Parameters
    Type Name Description
    ElementSemanticType semanticType

    The semantic type.

    uint semanticIndex

    The semantic index.

    int location

    The attribute location. -1 if it is not available.

    Returns
    Type Description
    bool

    Indicates if this attribute location is available.

    GetUniformInfo(int)

    Gets uniformInfo binding to a uniform element index.

    Declaration
    public int GetUniformInfo(int slot)
    Parameters
    Type Name Description
    int slot

    Slot index.

    Returns
    Type Description
    int

    Uniform information.

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX