![]() |
Rise
The Vieneo Province
|
#include <AdDiagnostics11.h>
Classes | |
| struct | Vertex |
| struct | Facet |
| struct | Patch |
| struct | CachedMesh |
| struct | Candidate |
| struct | Frame |
| struct | OverlayDraw |
| struct | VehicleIdentity |
| struct | CachedCreative |
| struct | Snapshot |
Public Types | |
| using | CreativeMetadata = AdCreativeMetadata |
Public Member Functions | |
| const CreativeMetadata * | PrepareCreative (RenderDevice &device, ID3D11ShaderResourceView *view) |
| AdDiagnostics11 ()=default | |
| ~AdDiagnostics11 () | |
| void | SetEnabled (bool value) |
| bool | Enabled () const |
| void | SetOverlayVisible (bool value) |
| bool | OverlayVisible () const |
| bool | Collecting () const |
| void | ResetResources () |
| void | SyncPlacement (unsigned slot, uint64_t entity, const std::string &creative) |
| void | BeginFrame (RenderDevice &device, double now, bool eligible, const char *blocker=nullptr) |
| void | RegisterDraw (RenderDevice &device, const AdViewability::Placement &placement, unsigned slot, Geometry11 &geometry, unsigned first, unsigned count, unsigned material, const DirectX::XMFLOAT4X4 &world, const DirectX::XMFLOAT4X4 &view, const DirectX::XMFLOAT4X4 &projection, float distanceKm) |
| void | RegisterSignDraw (RenderDevice &device, const AdViewability::Placement &placement, const CreativeMetadata *metadata, const std::weak_ptr< void > &lifetime, unsigned animationFrame, unsigned animationFrames, const AnimatedAdMetadata::Summary &average, Geometry11 &geometry, unsigned first, unsigned count, unsigned material, const DirectX::XMFLOAT4X4 &world, const DirectX::XMFLOAT4X4 &view, const DirectX::XMFLOAT4X4 &projection, float distanceKm) |
| void | SetAnimatedInventory (bool value) |
| void | RegisterOverlayDraw (RenderDevice &device, Geometry11 &geometry, unsigned first, unsigned count, unsigned material) |
| HRESULT | CaptureScene (RenderDevice &device) |
| ID3D11RenderTargetView * | CloudOpacityTarget () const |
| ID3D11RenderTargetView * | WetGlassExclusionTarget () const |
| void | WetGlassResult (HRESULT result) |
| void | FinishScene (RenderDevice &device, bool weatherMeasured, const std::vector< DirectX::XMFLOAT4 > &uiRects, const char *uiBlocker=nullptr) |
| void | DrawOverlay (RenderFont *font, RenderSprite *sprite, unsigned width, unsigned height, std::vector< RECT > *drawnBounds=nullptr) |
| const AdViewability::Tracker & | Results () const |
| const std::string & | Status () const |
| const std::string & | LogPath () const |
| const std::string & | Blocker () const |
| uint64_t | Dropped () const |
Static Public Attributes | |
| static constexpr unsigned | MaximumCandidates = 16 |
| static constexpr unsigned | RingSize = 3 |
| static constexpr unsigned | MaximumReplayDraws = 256 |
| static constexpr unsigned | MaximumCreatives = 64 |
| static constexpr unsigned | MaximumCreativePixels = 1024*1024 |
Private Types | |
| using | Query = Microsoft::WRL::ComPtr<ID3D11Query> |
Private Member Functions | |
| HRESULT | Initialize (RenderDevice &device) |
| void | Poll (RenderDevice &device, double now) |
| void | RegisterPreparedDraw (RenderDevice &device, const AdViewability::Placement &placement, unsigned slot, const CreativeMetadata *metadata, const std::weak_ptr< void > &lifetime, unsigned animationFrame, unsigned animationFrames, const AnimatedAdMetadata::Summary &average, Geometry11 &geometry, unsigned first, unsigned count, unsigned program, const DirectX::XMFLOAT4X4 &world, const DirectX::XMFLOAT4X4 &view, const DirectX::XMFLOAT4X4 &projection, float distanceKm) |
| std::vector< std::shared_ptr< Patch > > & | Mesh (RenderDevice &device, Geometry11 &geometry, unsigned first, unsigned count, const DirectX::XMFLOAT4 &bounds, unsigned frontConvention=0) |
| void | Checkpoint (double now, bool force=false) |
| void | LogWorker () |
| void | StopLog () |
Private Attributes | |
| std::deque< CachedCreative > | creatives |
| Microsoft::WRL::ComPtr< ID3D11Device > | metadataDevice |
| unsigned | metadataBudget = 65536 |
| double | metadataFrame = -1 |
| bool | enabled = false |
| bool | collecting = false |
| bool | eligible = false |
| bool | overlayVisible = true |
| bool | uiBlocked = false |
| double | nextPoll = 0 |
| double | sourceSeconds = 0 |
| double | lastCheckpoint = 0 |
| uint64_t | sequence = 0 |
| uint64_t | dropped = 0 |
| uint64_t | eligibilityGeneration = 0 |
| unsigned | nextFrame = 0 |
| std::vector< VehicleIdentity > | vehicles |
| std::array< Frame, RingSize > | ring |
| std::vector< Candidate > | candidates |
| std::vector< OverlayDraw > | overlays |
| std::string | overlayFailure |
| std::deque< CachedMesh > | meshes |
| AdViewability::Tracker | tracker |
| Microsoft::WRL::ComPtr< ID3D11Device > | native |
| Microsoft::WRL::ComPtr< ID3DDeviceContextState > | passState |
| std::array< std::array< Program11, 4 >, 4 > | programs |
| std::array< Program11, 3 > | overlayPrograms |
| Microsoft::WRL::ComPtr< ID3D11DepthStencilState > | referenceDepth |
| Microsoft::WRL::ComPtr< ID3D11DepthStencilState > | visibleDepth |
| Microsoft::WRL::ComPtr< ID3D11RasterizerState > | raster |
| Microsoft::WRL::ComPtr< ID3D11BlendState > | noColor |
| Microsoft::WRL::ComPtr< ID3D11BlendState > | opacityBlend |
| SceneDepth11 | opaqueDepth |
| Microsoft::WRL::ComPtr< ID3D11Texture2D > | opacityTexture |
| Microsoft::WRL::ComPtr< ID3D11RenderTargetView > | opacityTarget |
| Microsoft::WRL::ComPtr< ID3D11ShaderResourceView > | opacityView |
| Microsoft::WRL::ComPtr< ID3D11Texture2D > | glassTexture |
| Microsoft::WRL::ComPtr< ID3D11RenderTargetView > | glassTarget |
| Microsoft::WRL::ComPtr< ID3D11ShaderResourceView > | glassView |
| Microsoft::WRL::ComPtr< ID3D11RenderTargetView > | sceneTarget |
| D3D11_VIEWPORT | viewport {} |
| bool | sceneCaptured = false |
| bool | wetGlassExcluded = false |
| bool | initializationFailed = false |
| bool | animatedInventory = false |
| uint32_t | samplingState = 0x51a7d123 |
| std::string | status = "off" |
| std::string | logPath |
| std::string | frameBlocker |
| std::string | overlayText |
| double | nextOverlayRefresh = 0 |
| std::string | sessionId |
| std::string | sessionStartUtc |
| uint64_t | sessionAnchorUnixMs = 0 |
| uint64_t | checkpointSequence = 0 |
| double | sessionAnchorSeconds = -1 |
| std::thread | writer |
| std::mutex | logMutex |
| std::condition_variable | logReady |
| std::deque< Snapshot > | snapshots |
| bool | logStop = false |
| std::atomic< bool > | logFailed { false } |
Definition at line 16 of file AdDiagnostics11.h.
Definition at line 22 of file AdDiagnostics11.h.
|
private |
Definition at line 65 of file AdDiagnostics11.h.
|
default |
| Rendering::AdDiagnostics11::~AdDiagnostics11 | ( | ) |
| void Rendering::AdDiagnostics11::BeginFrame | ( | RenderDevice & | device, |
| double | now, | ||
| bool | eligible, | ||
| const char * | blocker = nullptr ) |
Definition at line 245 of file AdDiagnostics11.cpp.
|
inline |
Definition at line 62 of file AdDiagnostics11.h.
| HRESULT Rendering::AdDiagnostics11::CaptureScene | ( | RenderDevice & | device | ) |
Definition at line 513 of file AdDiagnostics11.cpp.
|
private |
Definition at line 758 of file AdDiagnostics11.cpp.
|
inline |
|
inline |
| void Rendering::AdDiagnostics11::DrawOverlay | ( | RenderFont * | font, |
| RenderSprite * | sprite, | ||
| unsigned | width, | ||
| unsigned | height, | ||
| std::vector< RECT > * | drawnBounds = nullptr ) |
Definition at line 698 of file AdDiagnostics11.cpp.
|
inline |
Definition at line 63 of file AdDiagnostics11.h.
|
inline |
| void Rendering::AdDiagnostics11::FinishScene | ( | RenderDevice & | device, |
| bool | weatherMeasured, | ||
| const std::vector< DirectX::XMFLOAT4 > & | uiRects, | ||
| const char * | uiBlocker = nullptr ) |
Definition at line 562 of file AdDiagnostics11.cpp.
|
private |
Definition at line 197 of file AdDiagnostics11.cpp.
|
inline |
Definition at line 61 of file AdDiagnostics11.h.
|
private |
Definition at line 802 of file AdDiagnostics11.cpp.
|
private |
Definition at line 269 of file AdDiagnostics11.cpp.
|
inline |
Definition at line 31 of file AdDiagnostics11.h.
|
private |
Definition at line 661 of file AdDiagnostics11.cpp.
| const AdDiagnostics11::CreativeMetadata * Rendering::AdDiagnostics11::PrepareCreative | ( | RenderDevice & | device, |
| ID3D11ShaderResourceView * | view ) |
Definition at line 119 of file AdDiagnostics11.cpp.
| void Rendering::AdDiagnostics11::RegisterDraw | ( | RenderDevice & | device, |
| const AdViewability::Placement & | placement, | ||
| unsigned | slot, | ||
| Geometry11 & | geometry, | ||
| unsigned | first, | ||
| unsigned | count, | ||
| unsigned | material, | ||
| const DirectX::XMFLOAT4X4 & | world, | ||
| const DirectX::XMFLOAT4X4 & | view, | ||
| const DirectX::XMFLOAT4X4 & | projection, | ||
| float | distanceKm ) |
Definition at line 371 of file AdDiagnostics11.cpp.
| void Rendering::AdDiagnostics11::RegisterOverlayDraw | ( | RenderDevice & | device, |
| Geometry11 & | geometry, | ||
| unsigned | first, | ||
| unsigned | count, | ||
| unsigned | material ) |
Definition at line 546 of file AdDiagnostics11.cpp.
|
private |
Definition at line 392 of file AdDiagnostics11.cpp.
| void Rendering::AdDiagnostics11::RegisterSignDraw | ( | RenderDevice & | device, |
| const AdViewability::Placement & | placement, | ||
| const CreativeMetadata * | metadata, | ||
| const std::weak_ptr< void > & | lifetime, | ||
| unsigned | animationFrame, | ||
| unsigned | animationFrames, | ||
| const AnimatedAdMetadata::Summary & | average, | ||
| Geometry11 & | geometry, | ||
| unsigned | first, | ||
| unsigned | count, | ||
| unsigned | material, | ||
| const DirectX::XMFLOAT4X4 & | world, | ||
| const DirectX::XMFLOAT4X4 & | view, | ||
| const DirectX::XMFLOAT4X4 & | projection, | ||
| float | distanceKm ) |
Definition at line 381 of file AdDiagnostics11.cpp.
| void Rendering::AdDiagnostics11::ResetResources | ( | ) |
Definition at line 100 of file AdDiagnostics11.cpp.
|
inline |
Definition at line 59 of file AdDiagnostics11.h.
|
inline |
| void Rendering::AdDiagnostics11::SetEnabled | ( | bool | value | ) |
Definition at line 85 of file AdDiagnostics11.cpp.
|
inline |
Definition at line 30 of file AdDiagnostics11.h.
|
inline |
Definition at line 60 of file AdDiagnostics11.h.
|
private |
Definition at line 823 of file AdDiagnostics11.cpp.
| void Rendering::AdDiagnostics11::SyncPlacement | ( | unsigned | slot, |
| uint64_t | entity, | ||
| const std::string & | creative ) |
|
inline |
Definition at line 540 of file AdDiagnostics11.cpp.
|
private |
Definition at line 176 of file AdDiagnostics11.h.
|
private |
Definition at line 153 of file AdDiagnostics11.h.
|
private |
Definition at line 182 of file AdDiagnostics11.h.
|
private |
Definition at line 147 of file AdDiagnostics11.h.
|
private |
Definition at line 139 of file AdDiagnostics11.h.
|
private |
Definition at line 149 of file AdDiagnostics11.h.
|
private |
Definition at line 149 of file AdDiagnostics11.h.
|
private |
Definition at line 147 of file AdDiagnostics11.h.
|
private |
Definition at line 147 of file AdDiagnostics11.h.
|
private |
Definition at line 178 of file AdDiagnostics11.h.
|
private |
Definition at line 170 of file AdDiagnostics11.h.
|
private |
Definition at line 169 of file AdDiagnostics11.h.
|
private |
Definition at line 171 of file AdDiagnostics11.h.
|
private |
Definition at line 175 of file AdDiagnostics11.h.
|
private |
Definition at line 148 of file AdDiagnostics11.h.
|
private |
Definition at line 189 of file AdDiagnostics11.h.
|
private |
Definition at line 185 of file AdDiagnostics11.h.
|
private |
Definition at line 178 of file AdDiagnostics11.h.
|
private |
Definition at line 186 of file AdDiagnostics11.h.
|
private |
Definition at line 188 of file AdDiagnostics11.h.
|
staticconstexpr |
Definition at line 19 of file AdDiagnostics11.h.
|
static |
Definition at line 21 of file AdDiagnostics11.h.
|
staticconstexpr |
Definition at line 21 of file AdDiagnostics11.h.
|
staticconstexpr |
Definition at line 20 of file AdDiagnostics11.h.
|
private |
Definition at line 156 of file AdDiagnostics11.h.
|
private |
Definition at line 141 of file AdDiagnostics11.h.
|
private |
Definition at line 140 of file AdDiagnostics11.h.
|
private |
Definition at line 142 of file AdDiagnostics11.h.
|
private |
Definition at line 158 of file AdDiagnostics11.h.
|
private |
Definition at line 150 of file AdDiagnostics11.h.
|
private |
Definition at line 180 of file AdDiagnostics11.h.
|
private |
Definition at line 148 of file AdDiagnostics11.h.
|
private |
Definition at line 164 of file AdDiagnostics11.h.
|
private |
Definition at line 164 of file AdDiagnostics11.h.
|
private |
Definition at line 167 of file AdDiagnostics11.h.
|
private |
Definition at line 166 of file AdDiagnostics11.h.
|
private |
Definition at line 168 of file AdDiagnostics11.h.
|
private |
Definition at line 165 of file AdDiagnostics11.h.
|
private |
Definition at line 155 of file AdDiagnostics11.h.
|
private |
Definition at line 161 of file AdDiagnostics11.h.
|
private |
Definition at line 154 of file AdDiagnostics11.h.
|
private |
Definition at line 179 of file AdDiagnostics11.h.
|
private |
Definition at line 147 of file AdDiagnostics11.h.
|
private |
Definition at line 159 of file AdDiagnostics11.h.
|
private |
Definition at line 160 of file AdDiagnostics11.h.
|
private |
Definition at line 163 of file AdDiagnostics11.h.
|
private |
Definition at line 162 of file AdDiagnostics11.h.
Definition at line 152 of file AdDiagnostics11.h.
|
static |
Definition at line 19 of file AdDiagnostics11.h.
|
private |
Definition at line 177 of file AdDiagnostics11.h.
|
private |
Definition at line 174 of file AdDiagnostics11.h.
|
private |
Definition at line 172 of file AdDiagnostics11.h.
|
private |
Definition at line 149 of file AdDiagnostics11.h.
|
private |
Definition at line 183 of file AdDiagnostics11.h.
|
private |
Definition at line 182 of file AdDiagnostics11.h.
|
private |
Definition at line 181 of file AdDiagnostics11.h.
|
private |
Definition at line 181 of file AdDiagnostics11.h.
|
private |
Definition at line 187 of file AdDiagnostics11.h.
|
private |
Definition at line 148 of file AdDiagnostics11.h.
|
private |
Definition at line 178 of file AdDiagnostics11.h.
|
private |
Definition at line 157 of file AdDiagnostics11.h.
|
private |
Definition at line 147 of file AdDiagnostics11.h.
|
private |
Definition at line 151 of file AdDiagnostics11.h.
|
private |
Definition at line 173 of file AdDiagnostics11.h.
|
private |
Definition at line 162 of file AdDiagnostics11.h.
|
private |
Definition at line 174 of file AdDiagnostics11.h.
|
private |
Definition at line 184 of file AdDiagnostics11.h.