| 1 | <?xml version="1.0"?> |
| 2 | <xsl:stylesheet version="1.0" |
| 3 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
| 4 | <xsl:template match="/registry"> |
| 5 | <xsl:for-each select="commands/command"> |
| 6 | <xsl:variable name="surface" select="param[type = 'VkSurfaceKHR'][not(contains(text(), '*'))]"/> |
| 7 | <xsl:variable name="surfaceInfo" select="param[type = 'VkPhysicalDeviceSurfaceInfo2KHR']"/> |
| 8 | <xsl:variable name="dev" select="param[type = 'VkPhysicalDevice']"/> |
| 9 | <xsl:if test="($surface/text() != '' or $surfaceInfo/text() != '') and $dev/text() != '' and proto/name/text() != 'vkGetPhysicalDeviceSurfaceSupportKHR' and proto/name/text() != 'vkGetPhysicalDeviceSurfacePresentModes2EXT'"> |
| 10 | FORWARD(<xsl:value-of select="substring(proto/name,3)"/>); |
| 11 | </xsl:if> |
| 12 | </xsl:for-each> |
| 13 | </xsl:template> |
| 14 | </xsl:stylesheet> |