![]() |
Rise
The Vieneo Province
|
#include <CloudPass11.h>
Classes | |
| struct | LoadingProgress |
| struct | Target |
| struct | OrganicPrograms |
| struct | LoadingJob |
| struct | TopDirectState |
| struct | LoadingWorker |
Public Types | |
| enum class | OrganicPath { Legacy , Flight , Top } |
Public Member Functions | |
| ~CloudPass11 () | |
| HRESULT | Initialize (ID3D11Device *device, const std::filesystem::path &shaderDirectory={}) |
| HRESULT | PrepareLoadingStep (ID3D11DeviceContext *context, UINT samples, bool organic) |
| const LoadingProgress & | LoadingStatus () const |
| void | LoadingFramePresented () |
| HRESULT | Render (ID3D11DeviceContext *context, Parameters11 ¶meters, ID3D11RenderTargetView *scene, const SceneDepth11 &depth, const D3D11_VIEWPORT &viewport, unsigned activeHeadlights=0, bool atmosphericFog=false, bool spatialRain=false, bool belowNominalCloudBase=false) |
| HRESULT | RenderSkyRing (ID3D11DeviceContext *context, Parameters11 ¶meters, ID3D11RenderTargetView *scene, const SceneDepth11 &depth, const D3D11_VIEWPORT &viewport, ID3D11ShaderResourceView *atmosphere, ID3D11Buffer *vertices, const DirectX::XMFLOAT4X4 &world, UINT segments, float physicalScale) |
| HRESULT | RenderRainLines (ID3D11DeviceContext *context, Parameters11 ¶meters, ID3D11RenderTargetView *scene, const SceneDepth11 &depth, const D3D11_VIEWPORT &viewport, ID3D11Buffer *vertices, const DirectX::XMFLOAT4X4 &world, UINT drops) |
| HRESULT | RenderRainParticles (ID3D11DeviceContext *context, Parameters11 ¶meters, ID3D11RenderTargetView *scene, const SceneDepth11 &depth, const D3D11_VIEWPORT &viewport, ID3D11Buffer *vertices, ID3D11Buffer *indices, UINT drops, bool cloudAttenuation=true) |
| void | SetAdOpacityTarget (ID3D11RenderTargetView *target) |
| bool | AdOpacityWritten () const |
| void | Reset () |
| void | ReleaseTargets () |
| bool | OrganicOrbitAvailable () const |
| bool | OrganicFlightAvailable () const |
| HRESULT | ConfigureOrganic (bool enabled, bool aboveDeck) |
| OrganicPath | SelectedOrganicPath () const |
| void | ConfigureTemporal (const CloudTemporal11::Frame &frame, bool enabled) |
| void | ResetCloudHistory () |
| void | SetVisibilityOptimizationEnabled (bool enabled) |
| void | SetHiddenRayOptimizationEnabled (bool enabled) |
| void | SetRainMsaaSharingEnabled (bool enabled) |
| void | SetRainCloudOcclusionEnabled (bool enabled) |
| void | SetResolutionScale (float value) |
| float | ResolutionScale () const |
| ID3D11ShaderResourceView * | Image () const |
| ID3D11ShaderResourceView * | Distance () const |
| ID3D11ShaderResourceView * | HeadlightDepth () const |
| const std::string & | Status () const |
Private Member Functions | |
| HRESULT | TargetCreate (Target &target, UINT w, UINT h, DXGI_FORMAT format) |
| HRESULT | Draw (ID3D11DeviceContext *context, Program11 &program, Parameters11 ¶meters) |
| HRESULT | ValidateScene (ID3D11DeviceContext *context, ID3D11RenderTargetView *scene, const SceneDepth11 &depth, const D3D11_VIEWPORT &viewport) |
| HRESULT | Geometry (ID3D11DeviceContext *context, Program11 &program, Parameters11 ¶meters, ID3D11RenderTargetView *scene, const SceneDepth11 &depth, const D3D11_VIEWPORT &viewport, ID3D11Buffer *vertices, UINT stride, UINT count, D3D11_PRIMITIVE_TOPOLOGY topology, ID3D11Buffer *indices=nullptr, UINT indexCount=0, bool premultiplied=false) |
| HRESULT | Fail (const char *stage, HRESULT hr) |
| HRESULT | InitializeOrganic () |
| HRESULT | PreparePrograms (unsigned variant, bool fog, bool headlights, bool spatialRain, bool rainMaskEnabled, bool cached, bool sharedSearch, bool directComposite) |
| HRESULT | PrepareTopDirectPrograms (unsigned variant) |
| HRESULT | PrepareTopDirectWork (unsigned variant) |
| HRESULT | PrepareTopDirectTargets (unsigned variant, const D3D11_TEXTURE2D_DESC &scene) |
| HRESULT | PrepareCompositeWork (unsigned variant) |
| HRESULT | LoadFullscreenProgram (Program11 &program, const std::string &name) |
| void | CancelLoading () |
| std::vector< LoadingJob > | LoadingJobs (UINT samples, bool organic, size_t &topBegin) |
| HRESULT | PrepareLoadingObjects (const LoadingJob &job, unsigned variant) |
| HRESULT | PrepareLoadingStepNow (ID3D11DeviceContext *context, UINT samples, bool organic) |
| void | AdoptLoadingPrograms (CloudPass11 &prepared) |
| void | StartLoadingWorker (UINT samples, bool organic) |
| HRESULT | PrepareOrganicRain () |
| HRESULT | PrepareAdOpacity () |
Private Attributes | |
| Microsoft::WRL::ComPtr< ID3D11Device > | device |
| Microsoft::WRL::ComPtr< ID3DDeviceContextState > | passState |
| Microsoft::WRL::ComPtr< ID3D11RasterizerState > | raster |
| Microsoft::WRL::ComPtr< ID3D11DepthStencilState > | compositeDepth |
| Microsoft::WRL::ComPtr< ID3D11DepthStencilState > | disabledDepth |
| Microsoft::WRL::ComPtr< ID3D11BlendState > | blend |
| Microsoft::WRL::ComPtr< ID3D11BlendState > | straightBlend |
| std::vector< Microsoft::WRL::ComPtr< ID3D11SamplerState > > | samplers |
| Program11 | march |
| Program11 | lightDepth |
| Program11 | skyRing |
| Program11 | rainLines |
| Program11 | rainParticles |
| Program11 | clearRainParticles |
| Program11 | orbitalMarch |
| Program11 | orbitalCoverage |
| std::array< Program11, 4 > | cachedComposite |
| std::array< Program11, 4 > | visibleComposite |
| std::array< bool, 4 > | cachedCompositeAvailable {} |
| CloudTemporal11 | temporal |
| CloudTemporal11::Frame | temporalFrame {} |
| bool | orbitalReady =false |
| bool | orbitalCoverageAvailable =false |
| bool | temporalEnabled =false |
| bool | temporalProgramsReady =false |
| std::array< Program11, 4 > | compositePixel |
| std::array< Program11, 4 > | compositeEdge |
| std::array< Program11, 4 > | compositeFogPixel |
| std::array< Program11, 4 > | compositeFogEdge |
| std::array< Program11, 4 > | rainPixel |
| std::array< Program11, 4 > | rainEdge |
| std::array< Program11, 4 > | rainClassify |
| std::shared_ptr< LoadingWorker > | loadingWorker |
| uint64_t | loadingSequence =0 |
| bool | loadingAdopted =false |
| OrganicPrograms | organicFlight |
| OrganicPrograms | organicTop |
| std::array< TopDirectState, 4 > | topDirect |
| OrganicPrograms * | activeOrganic =nullptr |
| Program11 | organicLightDepth |
| Program11 | organicRainParticles |
| bool | organicReady =false |
| std::array< unsigned, 8 > | loadingStep {} |
| LoadingProgress | loadingProgress |
| LoadingProgress | loadingDisplayProgress |
| unsigned | loadingVariant =~0u |
| bool | loadingPresented =false |
| bool | loadingWorkPendingPresentation =false |
| std::array< Program11, 4 > | adPixel |
| std::array< Program11, 4 > | adEdge |
| std::array< Program11, 4 > | adFogPixel |
| std::array< Program11, 4 > | adFogEdge |
| Microsoft::WRL::ComPtr< ID3D11RenderTargetView > | adOpacityTarget |
| Microsoft::WRL::ComPtr< ID3D11BlendState > | adBlend |
| std::filesystem::path | shaderDirectory |
| bool | adOpacityReady =false |
| bool | adOpacityWritten =false |
| Target | image |
| Target | distance |
| Target | coverageImage |
| Target | coverageDistance |
| Target | headlight |
| Target | rainMask |
| Target | hiddenMask |
| Target | fullHiddenMask |
| Target | firstHit |
| std::array< Program11, 4 > | firstHitClassify |
| std::array< Program11, 4 > | seededEdge |
| std::array< Program11, 4 > | seededFogEdge |
| std::array< bool, 4 > | sharedSearchAvailable {} |
| std::array< Program11, 4 > | completeComposite |
| std::array< bool, 4 > | compositeWorkAvailable {} |
| std::array< Microsoft::WRL::ComPtr< ID3D11ComputeShader >, 4 > | compositeWorkScan |
| Microsoft::WRL::ComPtr< ID3D11Buffer > | compositeArguments |
| Microsoft::WRL::ComPtr< ID3D11UnorderedAccessView > | compositeArgumentsView |
| std::array< Program11, 4 > | classifyHidden |
| Program11 | reduceHidden |
| std::array< bool, 4 > | hiddenAvailable {} |
| bool | visibilityOptimizationEnabled =true |
| bool | hiddenRayOptimizationEnabled =true |
| Microsoft::WRL::ComPtr< ID3D11Texture2D > | hiddenDepthTexture |
| Microsoft::WRL::ComPtr< ID3D11DepthStencilView > | hiddenDepth |
| Microsoft::WRL::ComPtr< ID3D11DepthStencilState > | hiddenWrite |
| Microsoft::WRL::ComPtr< ID3D11DepthStencilState > | hiddenRead |
| bool | rainMsaaSharingEnabled =true |
| bool | rainCloudOcclusionEnabled =true |
| float | resolutionScale =.5f |
| UINT | width =0 |
| UINT | height =0 |
| UINT | maskWidth =0 |
| UINT | maskHeight =0 |
| std::string | status ="native cloud pass not initialized" |
Definition at line 17 of file CloudPass11.h.
|
strong |
| Enumerator | |
|---|---|
| Legacy | |
| Flight | |
| Top | |
Definition at line 62 of file CloudPass11.h.
| Rendering::CloudPass11::~CloudPass11 | ( | ) |
|
inline |
Definition at line 50 of file CloudPass11.h.
|
private |
|
private |
| HRESULT Rendering::CloudPass11::ConfigureOrganic | ( | bool | enabled, |
| bool | aboveDeck ) |
Definition at line 559 of file CloudPass11.cpp.
|
inline |
Definition at line 65 of file CloudPass11.h.
|
inline |
Definition at line 84 of file CloudPass11.h.
|
private |
Definition at line 604 of file CloudPass11.cpp.
Definition at line 35 of file CloudPass11.cpp.
|
private |
Definition at line 1040 of file CloudPass11.cpp.
|
inline |
|
inline |
Definition at line 83 of file CloudPass11.h.
| HRESULT Rendering::CloudPass11::Initialize | ( | ID3D11Device * | device, |
| const std::filesystem::path & | shaderDirectory = {} ) |
Definition at line 71 of file CloudPass11.cpp.
|
private |
Definition at line 172 of file CloudPass11.cpp.
|
private |
Definition at line 188 of file CloudPass11.cpp.
| void Rendering::CloudPass11::LoadingFramePresented | ( | ) |
|
private |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
Definition at line 195 of file CloudPass11.cpp.
|
private |
Definition at line 356 of file CloudPass11.cpp.
| HRESULT Rendering::CloudPass11::PrepareLoadingStep | ( | ID3D11DeviceContext * | context, |
| UINT | samples, | ||
| bool | organic ) |
Definition at line 265 of file CloudLoading11.inl.
|
private |
Definition at line 368 of file CloudPass11.cpp.
|
private |
Definition at line 549 of file CloudPass11.cpp.
|
private |
Definition at line 499 of file CloudPass11.cpp.
|
private |
Definition at line 211 of file CloudPass11.cpp.
|
private |
Definition at line 241 of file CloudPass11.cpp.
|
private |
Definition at line 220 of file CloudPass11.cpp.
|
inline |
Definition at line 52 of file CloudPass11.h.
| HRESULT Rendering::CloudPass11::Render | ( | ID3D11DeviceContext * | context, |
| Parameters11 & | parameters, | ||
| ID3D11RenderTargetView * | scene, | ||
| const SceneDepth11 & | depth, | ||
| const D3D11_VIEWPORT & | viewport, | ||
| unsigned | activeHeadlights = 0, | ||
| bool | atmosphericFog = false, | ||
| bool | spatialRain = false, | ||
| bool | belowNominalCloudBase = false ) |
| HRESULT Rendering::CloudPass11::RenderRainLines | ( | ID3D11DeviceContext * | context, |
| Parameters11 & | parameters, | ||
| ID3D11RenderTargetView * | scene, | ||
| const SceneDepth11 & | depth, | ||
| const D3D11_VIEWPORT & | viewport, | ||
| ID3D11Buffer * | vertices, | ||
| const DirectX::XMFLOAT4X4 & | world, | ||
| UINT | drops ) |
Definition at line 1087 of file CloudPass11.cpp.
| HRESULT Rendering::CloudPass11::RenderRainParticles | ( | ID3D11DeviceContext * | context, |
| Parameters11 & | parameters, | ||
| ID3D11RenderTargetView * | scene, | ||
| const SceneDepth11 & | depth, | ||
| const D3D11_VIEWPORT & | viewport, | ||
| ID3D11Buffer * | vertices, | ||
| ID3D11Buffer * | indices, | ||
| UINT | drops, | ||
| bool | cloudAttenuation = true ) |
| HRESULT Rendering::CloudPass11::RenderSkyRing | ( | ID3D11DeviceContext * | context, |
| Parameters11 & | parameters, | ||
| ID3D11RenderTargetView * | scene, | ||
| const SceneDepth11 & | depth, | ||
| const D3D11_VIEWPORT & | viewport, | ||
| ID3D11ShaderResourceView * | atmosphere, | ||
| ID3D11Buffer * | vertices, | ||
| const DirectX::XMFLOAT4X4 & | world, | ||
| UINT | segments, | ||
| float | physicalScale ) |
Definition at line 1073 of file CloudPass11.cpp.
| void Rendering::CloudPass11::Reset | ( | ) |
Definition at line 39 of file CloudPass11.cpp.
|
inline |
Definition at line 70 of file CloudPass11.h.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 73 of file CloudPass11.h.
|
inline |
Definition at line 79 of file CloudPass11.h.
|
inline |
Definition at line 78 of file CloudPass11.h.
|
inline |
|
inline |
Definition at line 72 of file CloudPass11.h.
|
private |
Definition at line 137 of file CloudLoading11.inl.
|
inline |
|
private |
Definition at line 592 of file CloudPass11.cpp.
|
private |
Definition at line 1018 of file CloudPass11.cpp.
|
private |
Definition at line 177 of file CloudPass11.h.
|
private |
Definition at line 188 of file CloudPass11.h.
|
private |
Definition at line 186 of file CloudPass11.h.
|
private |
Definition at line 186 of file CloudPass11.h.
|
private |
Definition at line 186 of file CloudPass11.h.
|
private |
Definition at line 190 of file CloudPass11.h.
|
private |
Definition at line 187 of file CloudPass11.h.
|
private |
Definition at line 190 of file CloudPass11.h.
|
private |
Definition at line 186 of file CloudPass11.h.
|
private |
Definition at line 107 of file CloudPass11.h.
|
private |
Definition at line 111 of file CloudPass11.h.
|
private |
Definition at line 112 of file CloudPass11.h.
|
private |
Definition at line 199 of file CloudPass11.h.
|
private |
Definition at line 109 of file CloudPass11.h.
|
private |
Definition at line 194 of file CloudPass11.h.
|
private |
Definition at line 197 of file CloudPass11.h.
|
private |
Definition at line 198 of file CloudPass11.h.
|
private |
Definition at line 106 of file CloudPass11.h.
|
private |
Definition at line 116 of file CloudPass11.h.
|
private |
Definition at line 117 of file CloudPass11.h.
|
private |
Definition at line 117 of file CloudPass11.h.
|
private |
Definition at line 116 of file CloudPass11.h.
|
private |
Definition at line 195 of file CloudPass11.h.
|
private |
Definition at line 196 of file CloudPass11.h.
|
private |
Definition at line 191 of file CloudPass11.h.
|
private |
Definition at line 191 of file CloudPass11.h.
|
private |
Definition at line 103 of file CloudPass11.h.
|
private |
Definition at line 106 of file CloudPass11.h.
|
private |
Definition at line 191 of file CloudPass11.h.
|
private |
Definition at line 191 of file CloudPass11.h.
|
private |
Definition at line 192 of file CloudPass11.h.
|
private |
Definition at line 191 of file CloudPass11.h.
|
private |
Definition at line 191 of file CloudPass11.h.
|
private |
Definition at line 208 of file CloudPass11.h.
|
private |
Definition at line 201 of file CloudPass11.h.
|
private |
Definition at line 204 of file CloudPass11.h.
|
private |
Definition at line 203 of file CloudPass11.h.
|
private |
Definition at line 191 of file CloudPass11.h.
|
private |
Definition at line 202 of file CloudPass11.h.
|
private |
Definition at line 205 of file CloudPass11.h.
|
private |
Definition at line 205 of file CloudPass11.h.
|
private |
Definition at line 191 of file CloudPass11.h.
|
private |
Definition at line 109 of file CloudPass11.h.
|
private |
Definition at line 149 of file CloudPass11.h.
|
private |
Definition at line 182 of file CloudPass11.h.
|
private |
Definition at line 184 of file CloudPass11.h.
|
private |
Definition at line 181 of file CloudPass11.h.
|
private |
Definition at line 148 of file CloudPass11.h.
|
private |
Definition at line 180 of file CloudPass11.h.
|
private |
Definition at line 183 of file CloudPass11.h.
|
private |
Definition at line 147 of file CloudPass11.h.
|
private |
Definition at line 184 of file CloudPass11.h.
|
private |
Definition at line 109 of file CloudPass11.h.
|
private |
Definition at line 208 of file CloudPass11.h.
|
private |
Definition at line 208 of file CloudPass11.h.
|
private |
Definition at line 110 of file CloudPass11.h.
|
private |
Definition at line 115 of file CloudPass11.h.
|
private |
Definition at line 110 of file CloudPass11.h.
|
private |
Definition at line 115 of file CloudPass11.h.
|
private |
Definition at line 157 of file CloudPass11.h.
|
private |
Definition at line 178 of file CloudPass11.h.
|
private |
Definition at line 178 of file CloudPass11.h.
|
private |
Definition at line 179 of file CloudPass11.h.
|
private |
Definition at line 157 of file CloudPass11.h.
|
private |
Definition at line 104 of file CloudPass11.h.
|
private |
Definition at line 117 of file CloudPass11.h.
|
private |
Definition at line 206 of file CloudPass11.h.
|
private |
Definition at line 117 of file CloudPass11.h.
|
private |
Definition at line 109 of file CloudPass11.h.
|
private |
Definition at line 191 of file CloudPass11.h.
|
private |
Definition at line 206 of file CloudPass11.h.
|
private |
Definition at line 109 of file CloudPass11.h.
|
private |
Definition at line 117 of file CloudPass11.h.
|
private |
Definition at line 105 of file CloudPass11.h.
|
private |
Definition at line 200 of file CloudPass11.h.
|
private |
Definition at line 207 of file CloudPass11.h.
|
private |
Definition at line 108 of file CloudPass11.h.
|
private |
Definition at line 192 of file CloudPass11.h.
|
private |
Definition at line 192 of file CloudPass11.h.
|
private |
Definition at line 189 of file CloudPass11.h.
|
private |
Definition at line 193 of file CloudPass11.h.
|
private |
Definition at line 109 of file CloudPass11.h.
|
private |
Definition at line 209 of file CloudPass11.h.
|
private |
Definition at line 107 of file CloudPass11.h.
|
private |
Definition at line 113 of file CloudPass11.h.
|
private |
Definition at line 115 of file CloudPass11.h.
|
private |
Definition at line 114 of file CloudPass11.h.
|
private |
Definition at line 115 of file CloudPass11.h.
|
private |
Definition at line 173 of file CloudPass11.h.
|
private |
Definition at line 202 of file CloudPass11.h.
|
private |
Definition at line 111 of file CloudPass11.h.
|
private |
Definition at line 208 of file CloudPass11.h.