| 95 | static bool resourcesCreated = false; |
| 96 | |
| 97 | struct Constants |
| 98 | { |
| 99 | float logoIntensity; |
| 100 | float sharpenAmount; |
| 101 | // this must be a 4 byte type, as a regular bool can potentially break the |
| 102 | // HLSL shader logic by not initialising all of the memory. |
| 103 | BOOL sharpenEnabled; |
| 104 | float pad; |
| 105 | } constants = { |
| 106 | // Fade off the logo with time |
| 107 | (g_frameConstants.gameTime > 0.0f ? (1.f - glm::smoothstep(10.0f, 12.0f, g_frameConstants.gameTime)) : 0.0f), |
| 108 | g_settings.sharpening, g_settings.sharpeningEnabled |
nothing calls this directly
no outgoing calls
no test coverage detected