Repository navigation
libobs: Characterize and extract shader file creators - #4337
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.