| 38 | } |
| 39 | |
| 40 | Tr2GpuResourcePool::Texture GetEmptySSAO( Tr2GpuResourcePool& gpuResourcePool ) |
| 41 | { |
| 42 | const uint8_t white[] = { 255, 255, 255, 255 }; |
| 43 | Tr2SubresourceData initData = { white, 4, 4 }; |
| 44 | |
| 45 | return gpuResourcePool.GetPersistentTexture( "EmptySSAO", 1, 1, ImageIO::PIXEL_FORMAT_R8G8B8A8_UNORM, Tr2GpuUsage::SHADER_RESOURCE, &initData ); |
| 46 | } |
| 47 | |
| 48 | void DeleteUpscalingContext( Tr2UpscalingContextAL* context ) |
| 49 | { |
no test coverage detected