MCPcopy Create free account
hub / github.com/TheRealMJP/SHforHLSL / Initialize

Function Initialize

SHTest/SHTest/AppSettings.cpp:16–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14 const uint32 CBufferRegister = 12;
15
16 void Initialize()
17 {
18
19 Settings.Initialize(1);
20
21 Settings.AddGroup("Debug", true);
22
23 EnableVSync.Initialize("EnableVSync", "Debug", "Enable VSync", "Enables or disables vertical sync during Present", true);
24 Settings.AddSetting(&EnableVSync);
25
26 ConstantBufferInit cbInit;
27 cbInit.Size = sizeof(AppSettingsCBuffer);
28 cbInit.Dynamic = true;
29 cbInit.Name = L"AppSettings Constant Buffer";
30 CBuffer.Initialize(cbInit);
31 }
32
33 void Update(uint32 displayWidth, uint32 displayHeight, const Float4x4& viewMatrix)
34 {

Callers

nothing calls this directly

Calls 3

AddGroupMethod · 0.80
AddSettingMethod · 0.80
InitializeMethod · 0.45

Tested by

no test coverage detected