mirror of
https://github.com/status-im/Vulkan-Docs.git
synced 2025-02-25 20:45:12 +00:00
* Update release number to 122. Internal Issues: * Add style guide language on not using standalone `+` signs (internal issue 736); not using leading whitespace for markup (internal issue 747); and on keeping descriptions of a single API in a contiguous block of markup (internal issue 949), and apply them to the specification. * Add a glossary definition of "`constant integral expression`", pointing to the SPIR-V "`constant instruction`" definition (internal issue 1225). * Many minor edits to improve writing style consistency and capture additional style guidelines (internal issue 1553). * Clarify that <<fragops-depth-write, depth writes are not performed>> if there is no depth framebuffer attachment (internal issue 1771). * Allow implementations to use rectangular line style of interpolation for <<primsrast-lines-bresenham, wide Bresenham lines>>, though replicating attributes is still preferred. Clarify that code:FragCoord is not replicated (internal issue 1772). * Resolve a contradiction in valid usage statements for slink:VkImageCreateInfo and slink:VkImageStencilUsageCreateInfoEXT (internal issue 1773). * Add style guide discussion of markup for indented equations, and use markup workaround for asciidoctor 2 compatibility (internal issue 1793). * Deprecate the `<<VK_EXT_validation_flags>>` extension in `vk.xml` and the extension appendix (internal issue 1801). * Add a new checker script `scripts/xml_consistency.py`. This is not currently run as part of internal CI (internal merge request 3285). * Correct "`an`" -> "`a`" prepositions where needed (internal merge request 3334). * Clarify that the <<features-uniformBufferStandardLayout, pname:uniformBufferStandardLayout>> feature is only required when the extension defining it is supported (internal merge request 3341). * Bring scripts into closer sync with OpenXR, mainly through conversion of comments to docstrings where appropriate, and add gen-scripts-docs.sh (internal merge request 3324). * Correct pname:maxDrawMeshTasksCount to 2^16^-1 in the <<limits-required, Required Limits>> table (internal merge requests 3361). New Extensions * `<<VK_IMG_format_pvrtc>>` (public issue 512).
69 lines
1.8 KiB
Python
69 lines
1.8 KiB
Python
#!/usr/bin/python3 -i
|
|
#
|
|
# Copyright (c) 2019 Collabora, Ltd.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
# Author(s): Ryan Pavlik <ryan.pavlik@collabora.com>
|
|
"""Provides general-purpose data structures."""
|
|
|
|
|
|
class DictOfStringSets:
|
|
"""A dictionary where the values are sets of strings.
|
|
|
|
Has some convenience functions to allow easier maintenance via
|
|
the .add method."""
|
|
|
|
def __init__(self, d=None):
|
|
self.d = {}
|
|
if d:
|
|
for k, v in d.items():
|
|
self.add(k, v)
|
|
|
|
def __getitem__(self, k):
|
|
return self.d[k]
|
|
|
|
def __contains__(self, k):
|
|
return k in self.d
|
|
|
|
def get(self, k, default=None):
|
|
return self.d.get(k, default)
|
|
|
|
def get_dict(self):
|
|
return self.d
|
|
|
|
def items(self):
|
|
"""Return an iterator like dict().items()."""
|
|
return self.d.items()
|
|
|
|
def keys(self):
|
|
"""Return an iterator over keys."""
|
|
return self.d.keys()
|
|
|
|
def values(self):
|
|
"""Return an iterator over values."""
|
|
return self.d.values()
|
|
|
|
def add_key(self, k):
|
|
"""Ensure the set for the given key exists."""
|
|
if k not in self.d:
|
|
self.d[k] = set()
|
|
|
|
def add(self, k, v):
|
|
self.add_key(k)
|
|
if isinstance(v, str):
|
|
v = (v, )
|
|
if not isinstance(v, set):
|
|
v = set(v)
|
|
self.d[k].update(v)
|