--------------------------------------------------------------------------------------
| 175 | |
| 176 | // -------------------------------------------------------------------------------------- |
| 177 | bool TriTextureParameter::CopyToResourceSet( |
| 178 | Tr2ResourceSetDescriptionAL& resourceDesc, |
| 179 | Tr2RenderContextEnum::ShaderType stage, |
| 180 | uint32_t registerIndex, |
| 181 | ResourceFlags flags ) const |
| 182 | { |
| 183 | bool isSrgb = ( flags & RESOURCE_FLAG_SRGB ) != 0; |
| 184 | auto colorSpace = isSrgb ? Tr2RenderContextEnum::COLOR_SPACE_SRGB : Tr2RenderContextEnum::COLOR_SPACE_LINEAR; |
| 185 | return resourceDesc.SetSrv( stage, registerIndex, m_cachedTexture, colorSpace ); |
| 186 | } |
| 187 | |
| 188 | // -------------------------------------------------------------------------------------- |
| 189 | bool TriTextureParameter::ApplyUav( |
no test coverage detected