Results 1 to 2 of 2

Thread: What does noautovalidity mean in Vulkan API schema (vk.xml)?

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2018

    What does noautovalidity mean in Vulkan API schema (vk.xml)?

    What does noautovalidity mean on a struct member definition in the Vulkan API schema (vk.xml)?

    registry.rnc says "tag stating that no automatic validity language should be generated"

    The Vulkan registry spec says: "prevents automatic validity language being generated for the tagged item. Only suppresses item-specific validity - parenting issues etc. are still captured. It must also be used for structures that have no implicit validity when such structure has explicit validity."

    What is automatic validity language?

    What is an example of something that has noautovalidity, and of that example, what was the item-specific validity that is suppressed? and why was it decided to be suppressed?

    What is an example of a structure that has no implicit validity and has explicit validity? Why?

  2. #2
    Senior Member OpenGL Lord
    Join Date
    Mar 2015
    In the Vulkan specification, those dark-grey blocks about "valid usage?" Things often have two blocks: "Valid Usage" and "Valid Usage (implicit)". The implicit rules are usually obvious: if a parameter is a `VkDevice`, that must refer to a valid `VkDevice`. And so forth. Because these rules are obvious, there is no need for a human being to go around and write those rules out. Therefore, the system generates those rules directly from the parameters and type information in `vk.xml` itself...

    Unless `noautovalidity` is specified for that item.

    Consider `VkDescriptorImageInfo::sampler`. The normal implicit validity for that item would be that `sampler` will be a valid instance of a `VkSampler` object. But it doesn't have to be; it can be `VK_NULL_HANDLE`. So that item is set to have `noautovalidity="true"`.

Similar Threads

  1. Replies: 1
    Last Post: 12-06-2018, 01:17 AM
  2. Replies: 5
    Last Post: 10-05-2018, 01:44 PM
  3. Replies: 4
    Last Post: 12-12-2016, 05:26 AM
  4. Replies: 0
    Last Post: 05-23-2016, 02:59 AM
  5. Replies: 2
    Last Post: 05-04-2016, 10:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean