Misleading docs for Vulkan profiles
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Domain
- documentation
Research direction
Start with chapters/vulkan_profiles.adoc and compare the custom profile instructions with the Vulkan Profiles tutorial linked in the issue. Check the named sections for the unsupported API references and verify the correct support check function against the Vulkan Profiles documentation. Update the inaccurate instructions and references; done when the chapter describes supported workflows and APIs.
Written by the indexing model from the issue text.
Description
The Vulkan guide's chapter on Vulkan Profiles (chapters/vulkan_profiles.adoc) instructs the reader to use several non-existent API tools. I'm not sure if they are outdated or what happened, but I was pretty confused for a while.
Custom profiles:
The docs say to create a profile using a format that does not match Vulkan Profile's actual schema. It then says to "use the profile in your application using either the header-based or JSON-based approach" with the following pseudocode:
// Define a custom profile (typically done offline and saved to a JSON file)
std::string customProfileJson = R"(
{
"file_format_version": "1.0.0",
"profiles": {
"VP_CUSTOM_GAME_PROFILE": {
"version": 1,
"api_version": "1.1.0",
"label": "Custom Game Profile",
"description": "Profile for our game engine",
"capabilities": [
// ... custom capabilities ...
]
}
}
}
)";
// Load the custom profile
VkpProfilesFileLoader loader;
loader.LoadFromString(customProfileJson);
// Use the custom profile
VkpProfile profile = loader.GetProfile("VP_CUSTOM_GAME_PROFILE");
// ... use the profile as before ...
VkpProfilesFileLoader, LoadFromString, VkpProfile, and GetProfile don't appear to exist in the entire Vulkan SDK other than in this doc. These would be great if they actually existed! The Vulkan Profiles tutorial describes how to generate the library with custom profiles, which is the only way I know of making custom profiles.
The same section also mentions the Vulkan Samples profile sample having examples of custom profiles, which is not true.
Support checks:
The CheckSupport function is referenced in the Automated Feature Enabling, Android Baseline Profile Example, Integration with Existing Applications, and Troubleshooting and Common Issues sections, which should be vpGetPhysicalDeviceProfileSupport.
Capabilities report:
VkpProfileCapabilitiesReport and GetProfileCapabilitiesReport are mentioned in the Troubleshooting and Common Issues section as a way to determine which requirements weren't met. This, unfortunately, doesn't seem to exist either.
- Dominant language
- Makefile
- Stars
- 2.3k
- Forks
- 198
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from KhronosGroup/Vulkan-Guide
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
KhronosGroup/Vulkan-Guide#396 ·
-
Naming convention for semaphoresMay be free again @spencer-lunarg claimed this 116 days ago, and no pull request is open. Open
KhronosGroup/Vulkan-Guide#343 · 2 comments · 1 assignee ·
-
Unclear when non-core formats are allowed to be usedMay be free again @gpx1000 claimed this 116 days ago, and no pull request is open. Opendocumentation
KhronosGroup/Vulkan-Guide#185 · 4 comments · 3 reactions · 2 assignees ·
-
Add section with in-depth details on Vulkan Memory ModelMay be free again @sfricke-samsung claimed this 2439 days ago, and no pull request is open. Opendocumentation
KhronosGroup/Vulkan-Guide#28 · 1 assignee ·
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
KhronosGroup/Vulkan-Guide#15 · 4 comments · 4 reactions ·
All issues in KhronosGroup/Vulkan-Guide
Similar issues
-
P4: low
Difficulty 1/5 Under an hour Newbie friendliness 85/100
jeffknupp/association#537 ·
-
content good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
godotengine/godot-docs#12467 ·
Maintainers usually reply within 2 days
-
docs priority:P3 size:XS
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day