MCPcopy Create free account
hub / github.com/crosire/reshade / get_uniform_variable_name

Method get_uniform_variable_name

source/runtime_api.cpp:167–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167void reshade::runtime::get_uniform_variable_name(api::effect_uniform_variable handle, char *value, size_t *size) const
168{
169 if (size == nullptr)
170 return;
171
172 if (const auto variable = reinterpret_cast<const uniform *>(handle.handle))
173 {
174 if (value == nullptr)
175 {
176 *size = variable->name.size() + 1;
177 }
178 else if (*size != 0)
179 {
180 *size = variable->name.copy(value, *size - 1);
181 value[*size] = '\0';
182 }
183 }
184 else
185 {
186 *size = 0;
187 }
188}
189void reshade::runtime::get_uniform_variable_effect_name(api::effect_uniform_variable handle, char *value, size_t *size) const
190{
191 if (size == nullptr)

Callers 2

draw_history_windowFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected