Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::uniforms_cache Struct Reference

Structure for caching uniforms. More...

#include <gpu_program.h>

Public Member Functions

void cache_uniform (gpu_program *program, gfx::program::uniform_ptr &uniform, const hpp::string_view &name, gfx::uniform_type type, uint16_t num=1)
 Caches a uniform in the GPU program.
 

Detailed Description

Structure for caching uniforms.

Definition at line 170 of file gpu_program.h.

Member Function Documentation

◆ cache_uniform()

void unravel::uniforms_cache::cache_uniform ( gpu_program * program,
gfx::program::uniform_ptr & uniform,
const hpp::string_view & name,
gfx::uniform_type type,
uint16_t num = 1 )
inline

Caches a uniform in the GPU program.

Parameters
programThe GPU program.
uniformThe uniform to cache.
nameThe name of the uniform.

Definition at line 180 of file gpu_program.h.


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