| 53 | }; |
| 54 | |
| 55 | uint16 QuantizeResolution(float input) |
| 56 | { |
| 57 | uint16 output = Math::FloorToInt(input); |
| 58 | uint16 alignment = 32; |
| 59 | if (output >= 512) |
| 60 | alignment = 128; |
| 61 | else if (output >= 256) |
| 62 | alignment = 64; |
| 63 | output = Math::AlignDown<uint16>(output, alignment); |
| 64 | return output; |
| 65 | } |
| 66 | |
| 67 | // State for shadow projection |
| 68 | struct ShadowAtlasLightTile |
no test coverage detected