public override void Initialize() { base.Initialize(); // Reset the command list to prep for initialization commands. CommandList.Reset(DirectCmdListAlloc, null); _waves = new Waves(128, 128, 1.0f, 0.03f, 4.0f, 0.2f); LoadTextures(); BuildRootSignature(); BuildDescriptorHeaps(); BuildShadersAndInputLayout(); BuildLandGeometry(); BuildWavesGeometry(); BuildBoxGeometry(); BuildMaterials(); BuildRenderItems(); BuildFrameResources(); BuildPSOs(); // Execute the initialization commands. CommandList.Close(); CommandQueue.ExecuteCommandList(CommandList); // Wait until initialization is complete. FlushCommandQueue(); }