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