ACMX 2.139.0
Dual-Backend Real-Time GPU Video Synthesis
Loading...
Searching...
No Matches
ShaderLibrary::ProgramData Struct Reference

Cached uniform locations for a single compiled shader program. More...

Public Attributes

GLint alpha_b_loc = -1
GLint alpha_g_loc = -1
GLint alpha_r_loc = -1
GLint alpha_value = -1
GLint amp = -1
GLint amp_high = -1
GLint amp_low = -1
GLint amp_mid = -1
GLint amp_peak = -1
GLint amp_rms = -1
GLint amp_smooth = -1
GLint amp_untouched = -1
GLint compute_work_group_size [3] = {1, 1, 1}
std::vector< GLint > custom_uniform_locs
GLint history_head_loc = -1
 Location of the array ring's oldest physical layer.
GLint history_loc = -1
 Location of optional uniform sampler2DArray history;.
GLint iamp = -1
GLint iChannelResolution [4] = {-1, -1, -1, -1}
GLint iChannelTime [4] = {-1, -1, -1, -1}
GLint iDate = -1
GLint iFrame = -1
GLint iFrameRate = -1
GLint iMouse = -1
GLint iMouseClick = -1
GLint inc_value_loc = -1
GLint inc_valuex_loc = -1
GLint index_value = -1
GLint iResolution = -1
GLint iSampleRate = -1
GLint iTime = -1
GLint iTimeDelta = -1
GLint loc = -1
std::string name
GLint optx_loc = -1
GLint random_var_loc = -1
GLint restore_black_loc = -1
GLint slider_loc [4] = {-1, -1, -1, -1}
 Locations of optional uniform float slider1..slider4;.
GLint spectrum_history_head_loc = -1
 Newest physical array layer.
GLint spectrum_history_loc = -1
 sampler1DArray spectrum_history.
GLint spectrum_history_size_loc = -1
 Runtime array depth.
GLint spectrum_loc = -1
 Live sampler1D spectrum.
GLint spectrum_zero_loc = -1
 Current-frame spectrum0 alias.
GLint texture_array_base_loc = -1
 Base location of textures[0] for bulk glUniform1iv assignment.
std::vector< GLint > texture_array_loc
GLint texture_cache_loc [8] = {-1, -1, -1, -1, -1, -1, -1, -1}
GLint time_f = -1
GLint time_speed_loc = -1
GLint value_alpha_b = -1
GLint value_alpha_g = -1
GLint value_alpha_r = -1

Detailed Description

Cached uniform locations for a single compiled shader program.

Querying glGetUniformLocation every frame is expensive; this struct stores all locations once at compile time.

Definition at line 3107 of file ACMX2/acmx.cpp.

Member Data Documentation

◆ alpha_b_loc

GLint ShaderLibrary::ProgramData::alpha_b_loc = -1

Definition at line 3142 of file ACMX2/acmx.cpp.

Referenced by ShaderLibrary::uploadAcidCamUniforms().

◆ alpha_g_loc

GLint ShaderLibrary::ProgramData::alpha_g_loc = -1

Definition at line 3142 of file ACMX2/acmx.cpp.

Referenced by ShaderLibrary::uploadAcidCamUniforms().

◆ alpha_r_loc

GLint ShaderLibrary::ProgramData::alpha_r_loc = -1

Definition at line 3142 of file ACMX2/acmx.cpp.

Referenced by ShaderLibrary::uploadAcidCamUniforms().

◆ alpha_value

GLint ShaderLibrary::ProgramData::alpha_value = -1

Definition at line 3143 of file ACMX2/acmx.cpp.

Referenced by ShaderLibrary::uploadAcidCamUniforms().

◆ amp

GLint ShaderLibrary::ProgramData::amp = -1

Definition at line 3112 of file ACMX2/acmx.cpp.

◆ amp_high

GLint ShaderLibrary::ProgramData::amp_high = -1

Definition at line 3115 of file ACMX2/acmx.cpp.

◆ amp_low

GLint ShaderLibrary::ProgramData::amp_low = -1

Definition at line 3115 of file ACMX2/acmx.cpp.

◆ amp_mid

GLint ShaderLibrary::ProgramData::amp_mid = -1

Definition at line 3115 of file ACMX2/acmx.cpp.

◆ amp_peak

GLint ShaderLibrary::ProgramData::amp_peak = -1

Definition at line 3114 of file ACMX2/acmx.cpp.

◆ amp_rms

GLint ShaderLibrary::ProgramData::amp_rms = -1

Definition at line 3114 of file ACMX2/acmx.cpp.

◆ amp_smooth

GLint ShaderLibrary::ProgramData::amp_smooth = -1

Definition at line 3114 of file ACMX2/acmx.cpp.

◆ amp_untouched

GLint ShaderLibrary::ProgramData::amp_untouched = -1

Definition at line 3112 of file ACMX2/acmx.cpp.

◆ compute_work_group_size

GLint ShaderLibrary::ProgramData::compute_work_group_size[3] = {1, 1, 1}

Definition at line 3109 of file ACMX2/acmx.cpp.

Referenced by ShaderLibrary::dispatchCompute2D().

◆ custom_uniform_locs

std::vector<GLint> ShaderLibrary::ProgramData::custom_uniform_locs

Definition at line 3151 of file ACMX2/acmx.cpp.

Referenced by ShaderLibrary::uploadCustomUniforms().

◆ history_head_loc

GLint ShaderLibrary::ProgramData::history_head_loc = -1

Location of the array ring's oldest physical layer.

Definition at line 3131 of file ACMX2/acmx.cpp.

◆ history_loc

GLint ShaderLibrary::ProgramData::history_loc = -1

Location of optional uniform sampler2DArray history;.

Definition at line 3130 of file ACMX2/acmx.cpp.

◆ iamp

GLint ShaderLibrary::ProgramData::iamp = -1

Definition at line 3113 of file ACMX2/acmx.cpp.

◆ iChannelResolution

GLint ShaderLibrary::ProgramData::iChannelResolution[4] = {-1, -1, -1, -1}

Definition at line 3136 of file ACMX2/acmx.cpp.

◆ iChannelTime

GLint ShaderLibrary::ProgramData::iChannelTime[4] = {-1, -1, -1, -1}

Definition at line 3135 of file ACMX2/acmx.cpp.

◆ iDate

GLint ShaderLibrary::ProgramData::iDate = -1

Definition at line 3134 of file ACMX2/acmx.cpp.

◆ iFrame

GLint ShaderLibrary::ProgramData::iFrame = -1

Definition at line 3132 of file ACMX2/acmx.cpp.

◆ iFrameRate

GLint ShaderLibrary::ProgramData::iFrameRate = -1

Definition at line 3138 of file ACMX2/acmx.cpp.

◆ iMouse

GLint ShaderLibrary::ProgramData::iMouse = -1

Definition at line 3110 of file ACMX2/acmx.cpp.

◆ iMouseClick

GLint ShaderLibrary::ProgramData::iMouseClick = -1

Definition at line 3139 of file ACMX2/acmx.cpp.

◆ inc_value_loc

GLint ShaderLibrary::ProgramData::inc_value_loc = -1

Definition at line 3148 of file ACMX2/acmx.cpp.

Referenced by ShaderLibrary::uploadAcidCamUniforms().

◆ inc_valuex_loc

GLint ShaderLibrary::ProgramData::inc_valuex_loc = -1

Definition at line 3149 of file ACMX2/acmx.cpp.

Referenced by ShaderLibrary::uploadAcidCamUniforms().

◆ index_value

GLint ShaderLibrary::ProgramData::index_value = -1

Definition at line 3144 of file ACMX2/acmx.cpp.

Referenced by ShaderLibrary::uploadAcidCamUniforms().

◆ iResolution

GLint ShaderLibrary::ProgramData::iResolution = -1

Definition at line 3110 of file ACMX2/acmx.cpp.

◆ iSampleRate

GLint ShaderLibrary::ProgramData::iSampleRate = -1

Definition at line 3137 of file ACMX2/acmx.cpp.

◆ iTime

GLint ShaderLibrary::ProgramData::iTime = -1

Definition at line 3110 of file ACMX2/acmx.cpp.

◆ iTimeDelta

GLint ShaderLibrary::ProgramData::iTimeDelta = -1

Definition at line 3133 of file ACMX2/acmx.cpp.

◆ loc

GLint ShaderLibrary::ProgramData::loc = -1

Definition at line 3110 of file ACMX2/acmx.cpp.

◆ name

std::string ShaderLibrary::ProgramData::name

Definition at line 3108 of file ACMX2/acmx.cpp.

◆ optx_loc

GLint ShaderLibrary::ProgramData::optx_loc = -1

Definition at line 3145 of file ACMX2/acmx.cpp.

Referenced by ShaderLibrary::uploadAcidCamUniforms().

◆ random_var_loc

GLint ShaderLibrary::ProgramData::random_var_loc = -1

Definition at line 3146 of file ACMX2/acmx.cpp.

Referenced by ShaderLibrary::uploadAcidCamUniforms().

◆ restore_black_loc

GLint ShaderLibrary::ProgramData::restore_black_loc = -1

Definition at line 3147 of file ACMX2/acmx.cpp.

Referenced by ShaderLibrary::uploadAcidCamUniforms().

◆ slider_loc

GLint ShaderLibrary::ProgramData::slider_loc[4] = {-1, -1, -1, -1}

Locations of optional uniform float slider1..slider4;.

Definition at line 3153 of file ACMX2/acmx.cpp.

◆ spectrum_history_head_loc

GLint ShaderLibrary::ProgramData::spectrum_history_head_loc = -1

Newest physical array layer.

Definition at line 3119 of file ACMX2/acmx.cpp.

◆ spectrum_history_loc

GLint ShaderLibrary::ProgramData::spectrum_history_loc = -1

sampler1DArray spectrum_history.

Definition at line 3118 of file ACMX2/acmx.cpp.

◆ spectrum_history_size_loc

GLint ShaderLibrary::ProgramData::spectrum_history_size_loc = -1

Runtime array depth.

Definition at line 3120 of file ACMX2/acmx.cpp.

◆ spectrum_loc

GLint ShaderLibrary::ProgramData::spectrum_loc = -1

Live sampler1D spectrum.

Definition at line 3116 of file ACMX2/acmx.cpp.

◆ spectrum_zero_loc

GLint ShaderLibrary::ProgramData::spectrum_zero_loc = -1

Current-frame spectrum0 alias.

Definition at line 3117 of file ACMX2/acmx.cpp.

◆ texture_array_base_loc

GLint ShaderLibrary::ProgramData::texture_array_base_loc = -1

Base location of textures[0] for bulk glUniform1iv assignment.

Definition at line 3129 of file ACMX2/acmx.cpp.

◆ texture_array_loc

std::vector<GLint> ShaderLibrary::ProgramData::texture_array_loc

Definition at line 3128 of file ACMX2/acmx.cpp.

◆ texture_cache_loc

GLint ShaderLibrary::ProgramData::texture_cache_loc[8] = {-1, -1, -1, -1, -1, -1, -1, -1}

Definition at line 3122 of file ACMX2/acmx.cpp.

◆ time_f

GLint ShaderLibrary::ProgramData::time_f = -1

Definition at line 3110 of file ACMX2/acmx.cpp.

◆ time_speed_loc

GLint ShaderLibrary::ProgramData::time_speed_loc = -1

Definition at line 3150 of file ACMX2/acmx.cpp.

◆ value_alpha_b

GLint ShaderLibrary::ProgramData::value_alpha_b = -1

Definition at line 3141 of file ACMX2/acmx.cpp.

Referenced by ShaderLibrary::uploadAcidCamUniforms().

◆ value_alpha_g

GLint ShaderLibrary::ProgramData::value_alpha_g = -1

Definition at line 3141 of file ACMX2/acmx.cpp.

Referenced by ShaderLibrary::uploadAcidCamUniforms().

◆ value_alpha_r

GLint ShaderLibrary::ProgramData::value_alpha_r = -1

Definition at line 3141 of file ACMX2/acmx.cpp.

Referenced by ShaderLibrary::uploadAcidCamUniforms().


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