Search Results for

    Show / Hide Table of Contents

    Class ParticleEmitterGPUGenerator

    The GPU shader source generator tool.

    Inheritance
    ShaderGenerator
    ParticleEmitterGPUGenerator
    Inherited Members
    ShaderGenerator::_callStack
    ShaderGenerator::_functions
    ShaderGenerator::_graphStack
    ShaderGenerator::_includes
    ShaderGenerator::_localIndex
    ShaderGenerator::_mathFunctions
    ShaderGenerator::_parameters
    ShaderGenerator::_perGroupProcessCall
    ShaderGenerator::_subs
    ShaderGenerator::_writer
    ShaderGenerator::Assets
    ParticleEmitterGPUGenerator
    ShaderGenerator::eatBox(Node* caller, Box* box)
    ShaderGenerator::Error
    ParticleEmitterGPUGenerator
    ShaderGenerator::findOrAddCubeTexture(const Guid& id)
    ShaderGenerator::findOrAddGlobalSDF()
    ShaderGenerator::findOrAddNormalMap(const Guid& id)
    ShaderGenerator::findOrAddSceneTexture(MaterialSceneTextures type)
    ShaderGenerator::findOrAddTexture(const Guid& id)
    ShaderGenerator::findOrAddTextureGroupSampler(int32 index)
    ShaderGenerator::findParam(const String& shaderName)
    ShaderGenerator::findParam(const Guid& id)
    ShaderGenerator::getLocalName(int32 index)
    ShaderGenerator::getParamName(int32 index)
    ParticleEmitterGPUGenerator
    ParticleEmitterGPUGenerator
    ShaderGenerator::OnError(Node* node, Box* box, const StringView& message)
    ParticleEmitterGPUGenerator
    ParticleEmitterGPUGenerator
    ShaderGenerator::ProcessGroupBitwise(Box* box, Node* node, Value& value)
    ShaderGenerator::ProcessGroupBoolean(Box* box, Node* node, Value& value)
    ShaderGenerator::ProcessGroupComparisons(Box* box, Node* node, Value& value)
    ShaderGenerator::ProcessGroupConstants(Box* box, Node* node, Value& value)
    ShaderGenerator::ProcessGroupMath(Box* box, Node* node, Value& value)
    ShaderGenerator::ProcessGroupPacking(Box* box, Node* node, Value& value)
    ShaderGenerator::ShaderGenerator()
    ShaderGenerator::tryGetValue(Box* box, int32 defaultValueBoxIndex, const Value& defaultValue)
    ShaderGenerator::tryGetValue(Box* box, const Value& defaultValue)
    ShaderGenerator::tryGetValue(Box* box, const Variant& defaultValue)
    ParticleEmitterGPUGenerator
    ParticleEmitterGPUGenerator
    ShaderGenerator::writeFunction1(Node* caller, const Value& valueA, const String& function)
    ShaderGenerator::writeFunction2(Node* caller, const Value& valueA, const Value& valueB, const String& function)
    ShaderGenerator::writeFunction2(Node* caller, const Value& valueA, const Value& valueB, const String& function, ValueType resultType)
    ShaderGenerator::writeFunction3(Node* caller, const Value& valueA, const Value& valueB, const Value& valueC, const String& function, ValueType resultType)
    ShaderGenerator::writeLocal(ValueType type, Node* caller)
    ShaderGenerator::writeLocal(ValueType type, Node* caller, const String& name)
    ShaderGenerator::writeLocal(ValueType type, const Value& value, Node* caller)
    ShaderGenerator::writeLocal(const Value& value, Node* caller)
    ShaderGenerator::writeLocal(ValueType type, const String& value, Node* caller)
    ShaderGenerator::writeLocal(ValueType type, const String& value, Node* caller, const String& name)
    ShaderGenerator::writeOperation2(Node* caller, const Value& valueA, const Value& valueB, Char op1)
    ShaderGenerator::~ShaderGenerator()
    Assembly: FlaxEngine.dll
    File: Engine/Particles/Graph/GPU/ParticleEmitterGraph.GPU.h
    Syntax
    public class ParticleEmitterGPUGenerator : public ShaderGenerator

    Constructors

    ~ParticleEmitterGPUGenerator()

    Finalizes an instance of the ParticleEmitterGPUGenerator class.

    Declaration
    public ~ParticleEmitterGPUGenerator()

    ParticleEmitterGPUGenerator()

    Initializes a new instance of the ParticleEmitterGPUGenerator class.

    Declaration
    public ParticleEmitterGPUGenerator()

    Methods

    AddGraph(ParticleEmitterGraphGPU* graph)

    Adds a new graph to the generator data (will be deleted after usage).

    Declaration
    public void AddGraph(ParticleEmitterGraphGPU* graph)
    Parameters
    ParticleEmitterGraphGPU graph

    The graph to add.

    Generate(WriteStream& source, BytesContainer& parametersData, int32& customDataSize)

    Generates GPU particles simulation source code (first graph should be the base one).

    Declaration
    public bool Generate(WriteStream& source, BytesContainer& parametersData, int32& customDataSize)
    Parameters
    WriteStream source

    The output source code.

    BytesContainer parametersData

    The output material parameters data.

    int32 customDataSize

    The output custom data size (in bytes) required by the nodes to store the additional global state for the simulation in the particles buffer on a GPU.

    Returns
    bool

    True if cannot generate code, otherwise false.

    GetRootGraph()

    Gets the root graph.

    Declaration
    public ParticleEmitterGraphGPU* GetRootGraph() const
    Returns
    ParticleEmitterGraphGPU

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