Skip to content

Share the desktop frame host and finish the first texture and depth samples - #4

Closed
atcarter714 wants to merge 1 commit into
migration/generated-com-foundationfrom
samples/desktop-framework
Closed

atcarter714 wants to merge 1 commit into
migration/generated-com-foundationfrom
samples/desktop-framework

Conversation

@atcarter714

@atcarter714 atcarter714 commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

HelloTexture opened a blank window with an empty asset loader and an incomplete shutdown path. It now ports Microsoft's D3D12 Hello Texture checkerboard triangle and closes through the same frame host as ModernTriangle.

  • DXSharp.Framework.Desktop owns the WinForms loop, draw submission, resize, presentation and teardown. Samples supply their own scene resources and draw callback. The host uses one allocator and waits for each draw submission.
  • HelloTexture uploads an RGBA8 texture with padded rows, binds a shader resource view and samples it in HLSL.
  • AdvancedSample draws a rotating lit cube with per-frame world and projection matrices and a D32 depth target rebuilt on resize. Its earlier camera, scene and shadow-map files are retained as reference source.
  • ModernTriangle retains its forced resize qualification through the shared host. Windows WARP CI also runs the texture and depth samples through bounded frame sequences and clean shutdown. The package smoke test references the desktop framework.

Stacked on #3, whose resize and minimize behavior the maintainer verified on an RTX 3080 Ti. All four CI jobs passed at 2018c69. WARP presented after both ModernTriangle resizes. HelloTexture and AdvancedSample each rendered four frames and exited successfully. Windows Debug and Release also passed the package consumer checks. The desktop sample notes identify Hello Frame Buffering, ExecuteIndirect and D3D12 Multithreading as the next Microsoft ports.

Consolidated by the preview 1 release in #9 and retained in main through #31. Verification: this PR head is an ancestor of release/automation at 1ba30ff4a36b6c4a7f8a31f342599026178c2cd0, whose tree 1c2649258445a6a22abeaa58cbc139c9384d0c5f exactly matches released main commit 0dcb5e3fbb984c23a1f313c87ec72ea0cbfe5fc4. Follow-up SDK work is tracked in #32–#35.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant