MCPcopy
hub / github.com/KhronosGroup/Vulkan-Docs / api_name

Method api_name

scripts/vkconventions.py:147–158  ·  view source on GitHub ↗

Return API or specification name for citations in ref pages.ref pages should link to for spectype is the spec this refpage is for: 'api' is the Vulkan API Specification. Defaults to 'api'. If an unrecognized spectype is given, returns None.

(self, spectype='api')

Source from the content-addressed store, hash-verified

145 return '.adoc'
146
147 def api_name(self, spectype='api'):
148 """Return API or specification name for citations in ref pages.ref
149 pages should link to for
150
151 spectype is the spec this refpage is for: 'api' is the Vulkan API
152 Specification. Defaults to 'api'. If an unrecognized spectype is
153 given, returns None.
154 """
155 if spectype == 'api' or spectype is None:
156 return 'Vulkan'
157 else:
158 return None
159
160 @property
161 def api_prefix(self):

Callers 3

refPageTailFunction · 0.45
genRef.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected