1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-19 19:16:34 +00:00
Commit Graph

258 Commits

Author SHA1 Message Date
Thomas Harte d31d53eb02 Add a copy shader, which will always be the final stage of output. 2026-01-29 18:28:41 -05:00
Thomas Harte e04f89d2f1 Remove capacity for misuse. 2026-01-29 18:16:59 -05:00
Thomas Harte 7464a0c0ec Go a bit more RAII on vertex arrays. 2026-01-29 18:12:51 -05:00
Thomas Harte 21f1d8421c Avoid hardcoding source buffer size. 2026-01-29 17:06:45 -05:00
Thomas Harte 53bed7db58 Introduce a temporary vertex array to avoid replacement binding. 2026-01-29 15:01:21 -05:00
Thomas Harte 77a2d2cb3c Add call for post hoc binding. 2026-01-29 14:52:17 -05:00
Thomas Harte 5f0ab48ec1 Enable generation of the needed composition shader.
Proving that I've forgotten something about vertex attribute bindings.
2026-01-29 11:03:02 -05:00
Thomas Harte 3ad36fffec Also install fromRGB matrix. 2026-01-29 09:16:54 -05:00
Thomas Harte 5a296fdd52 Move function into anonymous namespace. 2026-01-28 21:22:29 -05:00
Thomas Harte de8d9e6e0c Set source texture unit. 2026-01-28 20:46:24 -05:00
Thomas Harte e72ab3dd01 Factor out clock multiplier selection; apply composition uniforms. 2026-01-28 17:43:19 -05:00
Thomas Harte 1be9b1ed29 Eliminate macro, potentially add #NO_BITWISE. 2026-01-28 16:40:44 -05:00
Thomas Harte 8a6c019b50 Update TODO. 2026-01-28 14:42:13 -05:00
Thomas Harte 5a4d656cde Enable vertex attributes. 2026-01-28 14:41:46 -05:00
Thomas Harte da63d16081 Allow shaders to be moved. 2026-01-28 14:30:31 -05:00
Thomas Harte a4caf78c6e Update S-Video intermediate form. 2026-01-28 14:26:33 -05:00
Thomas Harte 128a6e6089 Attempt proper vertex shader; document updated S-Video plan. 2026-01-28 14:19:16 -05:00
Thomas Harte cdb04f3dea Add note-to-self TODO. 2026-01-27 17:41:02 -05:00
Thomas Harte c11d65295e Add missing mask. 2026-01-27 17:39:29 -05:00
Thomas Harte 92800a5452 Slightly compact. 2026-01-27 17:35:20 -05:00
Thomas Harte 99b58e4835 Add namespace qualifier. 2026-01-27 17:34:08 -05:00
Thomas Harte 00c1631111 Adapt to a regular function. 2026-01-27 17:33:24 -05:00
Thomas Harte 5ac183b7bf Add the RGB types. 2026-01-27 17:17:20 -05:00
Thomas Harte 055ff7f648 Improve INPUT_LUMINANCE8_PHASE8. 2026-01-26 22:36:38 -05:00
Thomas Harte 4f311b510d Prove that INPUT_PHASE_LINKED_LUMINANCE8 isn't yet correct. 2026-01-26 22:24:27 -05:00
Thomas Harte da0b241ea0 Include a test build of the new composition shader. 2026-01-26 22:16:34 -05:00
Thomas Harte 49d61f612f Start finding form for OpenGL composition shader. 2026-01-26 21:42:01 -05:00
Thomas Harte 81a65484a8 Switch to std::swap_ranges. 2026-01-22 12:34:33 -05:00
Thomas Harte 6346ab67f9 Mildly reformat; as a refresher as much as anything. 2026-01-19 15:54:51 -05:00
Thomas Harte a510286439 Further expand and explain interoperability intentions. 2025-12-17 10:16:35 -05:00
Thomas Harte 66d0cfccf3 Add usampler2d default precision. 2025-12-17 04:29:32 +00:00
Thomas Harte 79f16e3b38 Ensure third parameter to textureLod is overtly a float. 2025-12-16 23:17:50 -05:00
Thomas Harte 46ad212792 Merge branch 'OpenGLES' of github.com:TomHarte/CLK into OpenGLES 2025-12-16 23:15:37 -05:00
Thomas Harte f58fb168fc Overtly cast to vec2 (i.e. float). 2025-12-16 23:15:21 -05:00
Thomas Harte 999431111f Log failed shader. 2025-12-17 04:06:19 +00:00
Thomas Harte 0ac8f9ea77 Attempt ES wrapping. 2025-12-16 22:40:57 -05:00
Thomas Harte 0d8fa93a05 Propagate an OpenGL API version, use it to wrap shader programs. 2025-12-16 22:23:48 -05:00
Thomas Harte 1c0b209e8c Further reduce reliance upon memcpy. 2025-12-15 17:19:00 -05:00
Thomas Harte c491ba5cac Use sized types and std::copy_n. 2025-12-10 17:24:07 -05:00
Thomas Harte 7d30762253 Merge branch 'master' into QtFixUp 2025-12-05 23:36:19 -06:00
Thomas Harte 52494e916a Ensure I'm using <optional> everywhere I should. 2025-12-04 13:20:51 -05:00
Thomas Harte cf777816ce Give Qt full ownership of its workaround. 2025-12-01 20:51:15 +00:00
Thomas Harte 16f031df4d After further diagnosis, work around Qt6 GL crash. 2025-11-29 21:57:01 -05:00
Thomas Harte 1c4c3a6cae Avoid VLA extension. 2025-10-29 12:29:15 -04:00
Thomas Harte da96df7df7 Ensure OpenGL appropriately letterboxes or pillarboxes. 2025-10-07 21:37:22 -04:00
Thomas Harte 4ea82581ec Factor out zoom logic, start trying to knock OpenGL into shape. 2025-10-07 13:29:21 -04:00
Thomas Harte 53a3d9042e Switch to multiline strings, shorter comments. 2025-10-06 22:58:50 -04:00
Thomas Harte 27246247a2 OpenGL: fix centring. 2025-10-06 20:58:42 -04:00
Thomas Harte cbc96e2223 Reformat in proximity. 2025-10-06 20:45:20 -04:00
Thomas Harte 8fdf32cde8 Avoid OpenGL churn. 2025-10-06 20:43:12 -04:00