| 222 | } |
| 223 | |
| 224 | void UpdateCBuffer(ID3D11DeviceContext* context) |
| 225 | { |
| 226 | CBuffer.Data.MSAAMode = MSAAMode; |
| 227 | CBuffer.Data.FilterType = FilterType; |
| 228 | CBuffer.Data.FilterSize = FilterSize; |
| 229 | CBuffer.Data.GaussianSigma = GaussianSigma; |
| 230 | CBuffer.Data.CubicB = CubicB; |
| 231 | CBuffer.Data.CubicC = CubicC; |
| 232 | CBuffer.Data.UseStandardResolve = UseStandardResolve; |
| 233 | CBuffer.Data.InverseLuminanceFiltering = InverseLuminanceFiltering; |
| 234 | CBuffer.Data.UseExposureFiltering = UseExposureFiltering; |
| 235 | CBuffer.Data.ExposureFilterOffset = ExposureFilterOffset; |
| 236 | CBuffer.Data.UseGradientMipLevel = UseGradientMipLevel; |
| 237 | CBuffer.Data.EnableTemporalAA = EnableTemporalAA; |
| 238 | CBuffer.Data.TemporalAABlendFactor = TemporalAABlendFactor; |
| 239 | CBuffer.Data.UseTemporalColorWeighting = UseTemporalColorWeighting; |
| 240 | CBuffer.Data.ClampPrevColor = ClampPrevColor; |
| 241 | CBuffer.Data.LowFreqWeight = LowFreqWeight; |
| 242 | CBuffer.Data.HiFreqWeight = HiFreqWeight; |
| 243 | CBuffer.Data.SharpeningAmount = SharpeningAmount; |
| 244 | CBuffer.Data.CurrentScene = CurrentScene; |
| 245 | CBuffer.Data.LightDirection = LightDirection; |
| 246 | CBuffer.Data.LightColor = LightColor; |
| 247 | CBuffer.Data.EnableDirectLighting = EnableDirectLighting; |
| 248 | CBuffer.Data.EnableAmbientLighting = EnableAmbientLighting; |
| 249 | CBuffer.Data.RenderBackground = RenderBackground; |
| 250 | CBuffer.Data.EnableShadows = EnableShadows; |
| 251 | CBuffer.Data.EnableNormalMaps = EnableNormalMaps; |
| 252 | CBuffer.Data.NormalMapIntensity = NormalMapIntensity; |
| 253 | CBuffer.Data.DiffuseIntensity = DiffuseIntensity; |
| 254 | CBuffer.Data.Roughness = Roughness; |
| 255 | CBuffer.Data.SpecularIntensity = SpecularIntensity; |
| 256 | CBuffer.Data.ModelOrientation = ModelOrientation; |
| 257 | CBuffer.Data.ModelRotationSpeed = ModelRotationSpeed; |
| 258 | CBuffer.Data.DoubleSyncInterval = DoubleSyncInterval; |
| 259 | CBuffer.Data.ExposureScale = ExposureScale; |
| 260 | CBuffer.Data.BloomExposure = BloomExposure; |
| 261 | CBuffer.Data.BloomMagnitude = BloomMagnitude; |
| 262 | CBuffer.Data.BloomBlurSigma = BloomBlurSigma; |
| 263 | CBuffer.Data.ManualExposure = ManualExposure; |
| 264 | |
| 265 | CBuffer.ApplyChanges(context); |
| 266 | CBuffer.SetVS(context, 7); |
| 267 | CBuffer.SetHS(context, 7); |
| 268 | CBuffer.SetDS(context, 7); |
| 269 | CBuffer.SetGS(context, 7); |
| 270 | CBuffer.SetPS(context, 7); |
| 271 | CBuffer.SetCS(context, 7); |
| 272 | } |
| 273 | } |
| 274 | |
| 275 | // ================================================================================================ |