Search Results for

    Show / Hide Table of Contents

    Class GPUShaderProgram

    Mini program that can run on the GPU.

    Inheritance
    GPUShaderProgram
    Assembly: FlaxEngine.dll
    File: Engine/Graphics/Shaders/GPUShaderProgram.h
    Syntax
    public class GPUShaderProgram

    Constructors

    ~GPUShaderProgram()

    Finalizes an instance of the GPUShaderProgram class.

    Declaration
    public virtual ~GPUShaderProgram()

    Fields

    _bindings

    Declaration
    protected ShaderBindings _bindings
    Field Value
    ShaderBindings

    _flags

    Declaration
    protected ShaderFlags _flags
    Field Value
    ShaderFlags

    _name

    Declaration
    protected StringAnsi _name
    Field Value
    StringAnsi

    _owner

    Declaration
    protected GPUShader* _owner
    Field Value
    GPUShader

    Methods

    GetBindings()

    Gets the shader resource bindings.

    Declaration
    public ShaderBindings GetBindings() const
    Returns
    ShaderBindings

    GetBufferHandle()

    Gets buffer handle (platform dependent).

    Declaration
    public virtual void* GetBufferHandle() const = 0
    Returns
    void

    GetBufferSize()

    Gets buffer size (in bytes).

    Declaration
    public virtual uint32 GetBufferSize() const = 0
    Returns
    uint32

    GetFlags()

    Gets the shader flags.

    Declaration
    public ShaderFlags GetFlags() const
    Returns
    ShaderFlags

    GetName()

    Gets name of the shader program.

    Declaration
    public StringAnsi GetName() const
    Returns
    StringAnsi

    GetStage()

    Gets shader program stage type.

    Declaration
    public virtual ShaderStage GetStage() const = 0
    Returns
    ShaderStage

    Init(const GPUShaderProgramInitializer& initializer)

    Declaration
    protected void Init(const GPUShaderProgramInitializer& initializer)
    Parameters
    GPUShaderProgramInitializer initializer

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat