Rise
The Vieneo Province
Loading...
Searching...
No Matches
Draw Context11 tests

Checks geometry submission, state preservation and resource ownership in the native draw context.

Subsystem: Rendering, shaders, textures and lighting
Fixture/harness: drawcontext11tests
Setup: The standalone DrawContext11Tests harness owns the inputs, local helpers and assertion sink used by the case files below.

Build/entry point: Tests/DrawContext11Tests.vcxproj; declared configurations: Debug|Win32, Release|Win32.

DrawContext11Tests.cpp

Source: Tests/DrawContext11Tests.cpp

Debug Clean

Fixture: Draw Context11 tests
Case symbol: DebugClean
Source: Tests/DrawContext11Tests.cpp:25

Test
Support check: inspects graphics debug messages and rejects resource/state errors reported by the fixture.
Source check messages (including original failure wording)

  • read debug message
  • D3D11 debug layer is clean

Geometry And State

Fixture: Draw Context11 tests
Case symbol: GeometryAndState
Source: Tests/DrawContext11Tests.cpp:74

Test
Geometry And State: authored packed ARGB survives conversion; fan and indexed triangles match every pixel; cached pipeline reapplies native state.
Source check messages (including original failure wording)

  • create authored geometry
  • native fan expansion
  • authored packed ARGB survives conversion
  • fan stays inside geometry
  • create authored 16-bit indices
  • indexed triangle draw
  • fan and indexed triangles match every pixel
  • cached pipeline reapplies native state
  • cached pipeline survives external context changes
  • create 32-bit fan indices
  • indexed fan with signed base vertex
  • indexed fan applies base vertex once
  • out-of-range indices rejected
  • invalid authored vertex rejected
  • out-of-range vertices rejected
  • read authored geometry for physics
  • CPU geometry remains authored layout
  • unlock physics read
  • read-only access retains GPU cache
  • edit authored color
  • locked geometry cannot draw
  • finish authored edit
  • draw revised geometry
  • CPU edit invalidates canonical GPU cache
  • scissored geometry
  • native scissor clips authored draw
  • restore scene state
  • immediate geometry
  • restored state and immediate draw match authored geometry
  • old immediate capacity cannot hide a short new draw
  • NaN viewport rejected before GPU use
  • create mesh layout
  • bind authored HUD material pass
  • native material writes scene color
  • resize native host
  • resize preserves active material
  • draw material after resize
  • resize preserves material uniforms and color
  • minimize host
  • minimized host suspends rendering
  • minimized frame skipped
  • restore host
  • restored host resumes rendering

Culling Preserves Pixels

Fixture: Draw Context11 tests
Case symbol: CullingPreservesPixels
Source: Tests/DrawContext11Tests.cpp:140

Test
Checks component culling preserves every GPU-visible sample and identical adjacent components can merge without changing pixels.
Source check messages (including original failure wording)

  • create culling oracle
  • create culling oracle texture
  • create oracle texture view
  • create translucent batch oracle texture
  • create batch volume view
  • set oracle MSAA
  • unculled oracle draw
  • CPU cull rejected GPU-visible samples
  • culled oracle draw
  • component culling changed rendered pixels
  • identical adjacent components merge
  • create batch geometry
  • individual component draw
  • batch fixture paints pixels
  • merged component draw
  • batching changed overlapping component pixels
  • culling oracle exercises visible and invisible geometry

Batch Boundaries

Fixture: Draw Context11 tests
Case symbol: BatchBoundaries
Source: Tests/DrawContext11Tests.cpp:253

Test
Batch Boundaries: merged range and bounds preserve all vertices; incompatible components stay separate; identical ship transforms/materials merge.
Source check messages (including original failure wording)

  • merged range and bounds preserve all vertices
  • incompatible components stay separate
  • identical ship transforms/materials merge
  • ship material/animation boundary stops merge
  • ship batch starting partway through range
  • last ship component stays within array
  • invisible first component does not merge

Login Clock Reset

Fixture: Draw Context11 tests
Case symbol: LoginClockReset
Source: Tests/DrawContext11Tests.cpp:297

Test
Login Clock Reset: reset frame cannot publish FPS from the old clock epoch; FPS resumes within one sampling window after login.
Source check messages (including original failure wording)

  • create login clock regression host
  • frame that resets game clock
  • game callback reset the clock
  • reset frame cannot publish FPS from the old clock epoch
  • frame in the new FPS window
  • FPS resumes within one sampling window after login

Lifecycle

Fixture: Draw Context11 tests
Case symbol: Lifecycle
Source: Tests/DrawContext11Tests.cpp:320

Test
Lifecycle: one notification registration per native window; WM_CREATE can register real device notifications; WM_DESTROY releases device notifications.
Source check messages (including original failure wording)

  • one notification registration per native window
  • WM_CREATE can register real device notifications
  • WM_DESTROY releases device notifications
  • window registration precedes GPU callbacks
  • create native window host
  • native window requests Windows double-click recognition
  • requested debug layer is enabled
  • initial resource callback order
  • startup window has no caption or resize frame
  • read startup window bounds
  • borderless startup preserves requested client dimensions
  • read startup monitor
  • startup centered in monitor work area
  • transition from splash to framed window
  • game frame restored
  • frame transition resizes native render targets
  • size readback fixture
  • native frame and presentation
  • frame callbacks execute once
  • frame after a stall
  • game receives full elapsed time after a stall
  • keyboard callback reached game
  • native keyboard dispatch
  • F10 press, repeat and release reach game
  • F10 callback preserves key state
  • F10 does not activate an absent Windows menu
  • render after F10 without another input
  • F10 leaves game frames running
  • Alt-F10 remains available to game bindings
  • create native menu fixture
  • attach native menu fixture
  • F10 still activates an attached native menu
  • remove native menu fixture
  • prepare quality change fixture
  • unsupported MSAA rejected
  • unsupported MSAA leaves resources intact
  • change MSAA without resizing the window
  • color/depth sample counts agree
  • MSAA preserves resolution
  • MSAA releases and rebuilds game targets once
  • repeat selected MSAA setting
  • unchanged MSAA does not rebuild resources
  • present changed MSAA scene
  • invalid sample counts rejected
  • invalid samples preserve current targets
  • disable vertical sync
  • present without vertical sync
  • enable vertical sync
  • present with vertical sync
  • single and double clicks reach game callbacks unchanged
  • set quality before device recreation
  • recreate native device and game resources
  • device recreation owns complete callback sequence
  • GPU recreation preserves window notification registration
  • device recreation retains MSAA and VSync choices
  • frame after device recreation
  • host destruction completes native window teardown
  • game resources destroyed once per device
  • repeated cleanup is harmless
  • window cleanup releases notifications exactly once
  • partial game initialization failure propagated
  • partial initialization cleans resources and window
  • failed GPU initialization releases window registration
  • reuse host after failed initialization
  • frame move can close before rendering
  • early frame shutdown releases window registration

Memory And Recovery

Fixture: Draw Context11 tests
Case symbol: MemoryAndRecovery
Source: Tests/DrawContext11Tests.cpp:495

Test
Memory And Recovery: reset returns CPU backing memory to the allocator; failed recreation releases the previous CPU allocation; memory diagnostics include process and address-space data.
Source check messages (including original failure wording)

  • memory fixture device
  • large geometry allocation
  • CPU geometry storage allocated
  • reset returns CPU backing memory to the allocator
  • reuse reset geometry
  • failed recreation releases the previous CPU allocation
  • memory diagnostics include process and address-space data
  • missing GPU budget is explicitly unavailable
  • recovery state is explicit during create
  • old device destroyed before replacement application resources
  • attach device lifetime observer
  • create selected model geometry
  • restore selected model geometry
  • draw retained model
  • selected model visible before failure
  • every model pixel survives device replacement
  • window promotion waits for recovered frame presentation
  • create recovery fixture
  • render failure recreates the device
  • one complete recovery without presenting a failed frame
  • rendering resumes after recovery
  • only successful frame triggers window presentation
  • all recovered device and CPU resources released
  • partial recovery resource
  • create failed-recovery fixture
  • recovery allocation failure propagates and clears recovery state
  • partial recovery cleanup is complete and idempotent

Entry-point checks

Fixture: Draw Context11 tests
Case symbol: main
Source: Tests/DrawContext11Tests.cpp:560

Test
Checks geometry submission, state preservation and resource ownership in the native draw context. This entry point also runs the associated check groups.