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

Function force_floating_point_value

source/runtime.cpp:4463–4470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4461}
4462
4463static bool force_floating_point_value(const reshadefx::type &type, uint32_t renderer_id)
4464{
4465 if (renderer_id == 0x9000)
4466 return true; // All uniform variables are floating-point in D3D9
4467 if (type.is_matrix() && (renderer_id & 0x10000))
4468 return true; // All matrices are floating-point in GLSL
4469 return false;
4470}
4471
4472void reshade::runtime::get_uniform_value_data(const uniform &variable, uint8_t *data, size_t size, size_t base_index) const
4473{

Calls 1

is_matrixMethod · 0.80

Tested by

no test coverage detected