MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / UpdateCBuffer

Function UpdateCBuffer

BindlessDeferred/AppSettings.cpp:194–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192 }
193
194 void UpdateCBuffer()
195 {
196 CBuffer.Data.EnableSun = EnableSun;
197 CBuffer.Data.SunAreaLightApproximation = SunAreaLightApproximation;
198 CBuffer.Data.SunSize = SunSize;
199 CBuffer.Data.SunDirection = SunDirection;
200 CBuffer.Data.MSAAMode = MSAAMode;
201 CBuffer.Data.RenderLights = RenderLights;
202 CBuffer.Data.RenderDecals = RenderDecals;
203 CBuffer.Data.RenderMode = RenderMode;
204 CBuffer.Data.Exposure = Exposure;
205 CBuffer.Data.BloomExposure = BloomExposure;
206 CBuffer.Data.BloomMagnitude = BloomMagnitude;
207 CBuffer.Data.BloomBlurSigma = BloomBlurSigma;
208 CBuffer.Data.EnableAlbedoMaps = EnableAlbedoMaps;
209 CBuffer.Data.EnableNormalMaps = EnableNormalMaps;
210 CBuffer.Data.EnableSpecular = EnableSpecular;
211 CBuffer.Data.ShowLightCounts = ShowLightCounts;
212 CBuffer.Data.ShowDecalCounts = ShowDecalCounts;
213 CBuffer.Data.ShowMSAAMask = ShowMSAAMask;
214 CBuffer.Data.ShowUVGradients = ShowUVGradients;
215
216 CBuffer.Upload();
217 }
218 void BindCBufferGfx(ID3D12GraphicsCommandList* cmdList, uint32 rootParameter)
219 {
220 CBuffer.SetAsGfxRootParameter(cmdList, rootParameter);

Callers 1

Render_InternalMethod · 0.85

Calls 1

UploadMethod · 0.80

Tested by

no test coverage detected