Skip to content

Tighten wording around capture of API calls#3004

Open
bradgrantham-lunarg wants to merge 2 commits into
LunarG:devfrom
bradgrantham-lunarg:bradgrantham-tighten-principle-reconstruct
Open

Tighten wording around capture of API calls#3004
bradgrantham-lunarg wants to merge 2 commits into
LunarG:devfrom
bradgrantham-lunarg:bradgrantham-tighten-principle-reconstruct

Conversation

@bradgrantham-lunarg

Copy link
Copy Markdown
Contributor

No description provided.

@bradgrantham-lunarg bradgrantham-lunarg requested a review from a team as a code owner June 4, 2026 22:46
**A capture file should contain as much as possible all of the unmodified graphics API call context made by the application for the captured, trimmed range of frames.**

It may contain more commands represented by Metadata commands but it should be possible to **reconstruct** the original app’s sequence of API commands from the captured “api call” blocks.
The capture file should preserve the original application API call, parameters, object associations, and observed results as captured. This data should be stored as an ApiCall or MethodCall block when possible, representing the API call in its original form.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe "Each API call of the original application should be preserved inside of the capture file in the proper sequence it was made and contain properly recorded parameters, object associations and results." The reason I suggest it is because when I start reading it, the sentence sounds like it's relative to all contents of the capture file, but you're identifying the API call specifically and how it's recorded.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this has to be read in context with the next couple of sentences, stating explicitly that ApiCall and MethodCall blocks are preferred, but Metadata commands are an alternative when appropriate. I've changed the paragraph to:

The capture file should preserve the original application API calls and parameters, object associations, and observed results for each call.  This data should be stored as an ApiCall or MethodCall block when possible, representing each API call in its original form.

How about that?

Comment thread docs/GFXReconstruct Architectural Principles.md
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.

2 participants