Skip to main content

OpenGLUniformLocationComponent Struct Template

Stores resolved OpenGL uniform locations for one shader/resource handle. More...

Declaration

template <typename THandle, typename TUniformScope> struct helios::opengl::components::OpenGLUniformLocationComponent<THandle, TUniformScope> { ... }

Public Constructors Index

template <typename THandle, typename TUniformScope>
OpenGLUniformLocationComponent ()

Constructs the cache and initializes all entries to "not found" (-1). More...

Public Member Attributes Index

template <typename THandle, typename TUniformScope>
std::array< GLint, UniformSemanticsCount >locations {-1}

Cached uniform locations indexed by UniformSemantics. More...

Public Static Attributes Index

template <typename THandle, typename TUniformScope>
static constexpr autoUniformSemanticsCount = ...

Number of supported uniform semantics. More...

Description

Stores resolved OpenGL uniform locations for one shader/resource handle.

Template Parameters
THandle

Owner handle type used by ECS composition.

TUniformScope

Uniform lifetime scope tag (for example pass or draw scope).

Definition at line 25 of file OpenGLUniformLocationComponent.ixx.

Public Constructors

OpenGLUniformLocationComponent()

template <typename THandle, typename TUniformScope>
helios::opengl::components::OpenGLUniformLocationComponent< THandle, TUniformScope >::OpenGLUniformLocationComponent ()
inline

Constructs the cache and initializes all entries to "not found" (-1).

Definition at line 42 of file OpenGLUniformLocationComponent.ixx.

Reference helios::opengl::components::OpenGLUniformLocationComponent< THandle, TUniformScope >::locations.

Public Member Attributes

locations

template <typename THandle, typename TUniformScope>
std::array<GLint, UniformSemanticsCount> helios::opengl::components::OpenGLUniformLocationComponent< THandle, TUniformScope >::locations {-1}

Cached uniform locations indexed by UniformSemantics.

Definition at line 37 of file OpenGLUniformLocationComponent.ixx.

37 std::array<GLint, UniformSemanticsCount> locations{-1};

Referenced by helios::opengl::components::OpenGLUniformLocationComponent< THandle, TUniformScope >::OpenGLUniformLocationComponent.

Public Static Attributes

UniformSemanticsCount

template <typename THandle, typename TUniformScope>
constexpr auto helios::opengl::components::OpenGLUniformLocationComponent< THandle, TUniformScope >::UniformSemanticsCount
constexpr static

Number of supported uniform semantics.

Initialiser
= static_cast<std::size_t>( std::to_underlying(UniformSemantics::size_) )

Definition at line 30 of file OpenGLUniformLocationComponent.ixx.

30 static inline constexpr auto UniformSemanticsCount = static_cast<std::size_t>(

The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.