MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Tools / GetFeatureProtect

Function GetFeatureProtect

scripts/common_codegen.py:71–79  ·  view source on GitHub ↗

Get platform protection string

(interface)

Source from the content-addressed store, hash-verified

69#
70# Return appropriate feature protect string from 'platform' tag on feature
71def GetFeatureProtect(interface):
72 """Get platform protection string"""
73 platform = interface.get('platform')
74 if platform is not None:
75 return platform_dict[platform]
76
77 provisional = interface.get('provisional')
78 if provisional == 'true':
79 return platform_dict['provisional']
80
81# Returns true if we are running in GitHub actions
82# https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected