FOpenGLShaderParameterCache

Caching of OpenGL uniform parameters.

Choose your operating system:

Windows

macOS

Linux

References

Module

OpenGLDrv

Header

/Engine/Source/Runtime/OpenGLDrv/Public/OpenGLShaderResources.h

Include

#include "OpenGLShaderResources.h"

Syntax

class FOpenGLShaderParameterCache

Remarks

Caching of OpenGL uniform parameters.

Constructors

Name Description

Public function

FOpenGLShaderParameterCache()

Constructor.

Destructors

Name Description

Public function

~FOpenGLShaderParameterCache()

Destructor.

Functions

Name Description

Public function

void

 

CommitPackedGlobals

(
    const FOpenGLLinkedProgram* Li...,
    int32 Stage
)

Commit shader parameters to the currently bound program.

Public function

void

 

CommitPackedUniformBuffers

(
    FOpenGLLinkedProgram* LinkedPr...,
    int32 Stage,
    FUniformBufferRHIRef* UniformB...,
    const TArray< CrossCompiler::FUnifo...
)

Public function

void

 

InitializeResources

(
    int32 UniformArraySize
)

Public function

void

 

MarkAllDirty()

Marks all uniform arrays as dirty.

Public function

void

 

Set

(
    uint32 BufferIndex,
    uint32 ByteOffset,
    uint32 NumBytes,
    const void* NewValues
)

Sets values directly into the packed uniform array

Set parameter values.