Checks native device resources, multisampled depth and projection reconstruction.
Subsystem: Rendering, shaders, textures and lighting
Fixture/harness: device11tests
Setup: The standalone Device11Tests harness owns the inputs, local helpers and assertion sink used by the case files below.
Build/entry point: Tests/Device11Tests.vcxproj; declared configurations: Debug|Win32, Release|Win32.
Device11Tests.cpp
Source: Tests/Device11Tests.cpp
Test Samples
Fixture: Device11 tests
Case symbol: TestSamples
Source: Tests/Device11Tests.cpp:156
- Test
- Test Samples: depth format and sample count preserved; SRV dimension matches multisampling; each sample retains its own depth or clear value.
Source check messages (including original failure wording)
-
create shader-readable depth
-
depth format and sample count preserved
-
SRV dimension matches multisampling
-
each sample retains its own depth or clear value
-
interior sample depth exact
-
outside geometry remains cleared sky
-
diagonal silhouette has partially covered pixels
-
create multisample composite color
-
create composite RTV
-
create resolved color
-
create color staging
-
read composited color
-
sample-frequency composite preserves silhouettes and stencil while reading depth
-
depth safely returns to writable use
-
invalid replacement preserves existing depth resource
-
resize independent depth resource
-
resized depth dimensions
Test Projection
Fixture: Device11 tests
Case symbol: TestProjection
Source: Tests/Device11Tests.cpp:249
- Test
- Test Projection: RH depth reconstruction preserves camera zoom and kilometers.
Source check messages (including original failure wording)
-
RH depth reconstruction preserves camera zoom and kilometers
Check Debug Messages
Fixture: Device11 tests
Case symbol: CheckDebugMessages
Source: Tests/Device11Tests.cpp:277
- Test
- Support check: inspects graphics debug messages and rejects resource/state errors reported by the fixture.
Source check messages (including original failure wording)
-
debug message length
-
read debug message
-
no debug-layer resource/state warnings or errors
Test Diagnostics
Fixture: Device11 tests
Case symbol: TestDiagnostics
Source: Tests/Device11Tests.cpp:301
- Test
- Test Diagnostics: real device identifies its owning adapter and driver query result; diagnostics tolerate absent startup/teardown device; healthy device reason is recorded without inventing a GPU reset.
Source check messages (including original failure wording)
-
real device identifies its owning adapter and driver query result
-
diagnostics tolerate absent startup/teardown device
-
healthy device reason is recorded without inventing a GPU reset
-
error packet suffix preserves both operation and underlying reason
-
missing device reason is explicit, not reported as healthy
-
device-loss diagnostics cover graphics failure classes
-
unrelated errors keep their existing diagnostics
Test Swap Chain
Fixture: Device11 tests
Case symbol: TestSwapChain
Source: Tests/Device11Tests.cpp:323
- Test
- Test Swap Chain: selected samples bound to scene depth; restore without needless resource recreation.
Source check messages (including original failure wording)
-
create hidden lifecycle window
-
attach flip swap chain
-
resize/sample-count change
-
selected samples bound to scene depth
-
resolve color and present
-
minimize suspends renderer
-
minimized present is idle
-
restore without needless resource recreation
-
restore resumes renderer
-
device remains healthy
Entry-point checks
Fixture: Device11 tests
Case symbol: main
Source: Tests/Device11Tests.cpp:351
- Test
- Checks native device resources, multisampled depth and projection reconstruction. This entry point also runs the associated check groups.
Source check messages (including original failure wording)
-
create native D3D11 device
-
standard cloud format capabilities
-
recreate complete device