Skip to content

libobs: Characterize and extract shader file creators - #4337

Merged
zackees merged 2 commits into
masterfrom
test/4304-shader-file-creators-extract
Nov 9, 2026
Merged

zackees merged 2 commits into
masterfrom
test/4304-shader-file-creators-extract

Conversation

@zackees

@zackees zackees commented Nov 9, 2026

Copy link
Copy Markdown
Member

Refs #4304

Characterize both shader-file creators through exported libobs APIs, then extract their unchanged bodies into shader-file.c.h in the existing graphics unity group. The characterization commit d2785b8 covers context and path gates, file failures, logs, UTF-8/BOM input, constructor dispatch, pointer identity and allocation cleanup. The extraction preserves the validator macro expansion locally.

This is the C characterization and behavior-neutral extraction prerequisite. Rust RED/GREEN and differential mutation validation belong to the Rust follow-up #4306, already pushed on port/4306-shader-file-creators.

Workspace formatting, full lint and focused shader-file characterization are rerun after rebasing onto current master. The three characterization cases run against both the C-reference and hybrid libraries. The originating worker also ran three repetitions per implementation. No existing C test, public header, Rust implementation or serialized test graph changes. Hosted PR CI remains the merge gate; native Windows and macOS builds and the full Tier 2 suite are not claimed locally.

Refs #4304. Exercise public C wrappers with a fake graphics device, real file reading, exact diagnostics and constructor forwarding. Empty and BOM-only files retain their current read-failure behavior.
Refs #4304. Move the two characterized file wrappers verbatim into shader-file.c.h in the existing graphics unity group. Preserve private validator expansions locally. Rust swap follows in #4306.
@zackees
zackees enabled auto-merge November 9, 2026 13:54
@zackees
zackees added this pull request to the merge queue Nov 9, 2026
@zackees
zackees removed this pull request from the merge queue due to a manual request Nov 9, 2026
@zackees
zackees merged commit baa19f0 into master Nov 9, 2026
42 checks passed
@zackees
zackees deleted the test/4304-shader-file-creators-extract branch November 9, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant