Commit Graph
7 Commits
Author SHA1 Message Date
Behdad EsfahbodandClaude Opus 4.6 526bb457ff [gpu] Fix D3D11 fullscreen restore (best-effort under Wine)
Wine may not properly restore windowed mode after fullscreen.
Works on native Windows.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 22:29:25 -06:00
Behdad Esfahbod 8aae9a0e0d Reapply "[gpu] Add fullscreen toggle (F key) to D3D11 demo"
This reverts commit ddcedece1d.
2026-03-29 22:26:30 -06:00
Behdad Esfahbod ddcedece1d Revert "[gpu] Add fullscreen toggle (F key) to D3D11 demo"
This reverts commit 66ce800631.
2026-03-29 22:25:42 -06:00
Behdad EsfahbodandClaude Opus 4.6 66ce800631 [gpu] Add fullscreen toggle (F key) to D3D11 demo
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 22:25:06 -06:00
Behdad EsfahbodandClaude Opus 4.6 94e2b88570 [gpu] Fix D3D11 demo: culling, quit, vsync
Disable backface culling (both triangles per quad need to render).
Handle Esc/Q to quit via DestroyWindow. Wire vsync toggle to
swap chain present interval.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 22:23:54 -06:00
Behdad EsfahbodandClaude Opus 4.6 4249b9d894 [gpu] Fix HLSL: declare hb_gpu_atlas before library shader
The library's hb_gpu_fetch references the global hb_gpu_atlas,
so its StructuredBuffer declaration must precede the library
source in the concatenated shader.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 22:19:01 -06:00
Behdad EsfahbodandClaude Opus 4.6 29b5fee519 [gpu] Add D3D11 demo (MinGW cross-compile, Wine)
D3D11 renderer using Win32 windowing and runtime HLSL compilation.
Cross-compiles with MinGW, runs under Wine with DXVK.

Also fixes demo-common.h to guard GL/GLFW includes behind
HB_GPU_NO_GLFW, renames near/far to znear/zfar in demo-view
(reserved on Windows), and adds QueryPerformanceCounter timer
for Win32.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 22:17:13 -06:00