Axmol 3.0.0-89d6d9a
Loading...
Searching...
No Matches
ProgramImpl Class Reference

An OpenGL program. More...

#include <ProgramGL.h>

Inherits Program.

Public Member Functions

 ProgramImpl (Data &vsData, Data &fsData)
 ProgramImpl (Data &csData)
GLuint internalHandle () const
 Get program object.
Public Member Functions inherited from Program
UniformLocation getUniformLocation (std::string_view name) const
 Get uniform location by name.
UniformLocation getUniformLocation (rhi::Uniform kind) const
 Get uniform location by engine built-in uniform enum name.
void getUniformLocations (std::string_view name, UniformLocationVector &out) const
 Retrieves all uniform locations associated with the given uniform name.
size_t getUniformBufferSize () const
 Get uniform buffer size in bytes that can hold all the uniforms.
uint32_t getProgramType () const
 Get engine built-in program type.
uint64_t getProgramId () const
 Get program id.
const UniformMap & getActiveUniformInfos () const
 Get all uniformInfos.
Public Member Functions inherited from Object
void retain ()
 Retains the ownership.
void release ()
 Releases the ownership immediately.
Object * autorelease ()
 Releases the ownership sometime soon automatically.
unsigned int getReferenceCount () const
 Returns the Object's current reference count.
uint64_t getObjectID () const noexcept
 Returns the process-local diagnostic identifier assigned at construction.
virtual ~Object ()
 Destructor.

Additional Inherited Members

Public Types inherited from Program
using VertexInputMap = tlx::hash_map<VertexSemantic, VertexInputDesc>
 Get active vertex attributes.

Detailed Description

An OpenGL program.

Constructor & Destructor Documentation

◆ ProgramImpl() [1/2]

ProgramImpl ( Data & vsData,
Data & fsData )
Parameters
vertexShaderSpecifes the vertex shader source.
fragmentShaderSpecifes the fragment shader source.

◆ ProgramImpl() [2/2]

ProgramImpl ( Data & csData)
explicit
Parameters
csDataSpecifies the compute shader source.

Member Function Documentation

◆ internalHandle()

GLuint internalHandle ( ) const
inline

Get program object.

Returns
Program object.

The documentation for this class was generated from the following file:
  • ProgramGL.h