Created
June 26, 2015 03:54
-
-
Save Subv/74feaf13965a38ec2422 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| auto LookupSourceRegister = [&](const SourceRegister& source_reg) -> const float24* { | |
| switch (source_reg.GetRegisterType()) { | |
| case RegisterType::Input: | |
| return state.input_register_table[source_reg.GetIndex()]; | |
| case RegisterType::Temporary: | |
| return &state.temporary_registers[source_reg.GetIndex()].x; | |
| case RegisterType::FloatUniform: | |
| return &uniforms.f[source_reg.GetIndex()].x; | |
| default: | |
| return dummy_vec4_float24; | |
| } | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment