Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qvkgen.cpp File Reference

(e2fef733be92e95ff28225196e14ffeb98d61a1f)

#include <QtCore/qcoreapplication.h>
#include <QtCore/qfile.h>
#include <QtCore/qfileinfo.h>
#include <QtCore/qlist.h>
#include <QtCore/qmap.h>
#include <QtCore/qxmlstream.h>
+ Include dependency graph for qvkgen.cpp:

Go to the source code of this file.

Classes

class  VkSpecParser
 
struct  VkSpecParser::TypedName
 
struct  VkSpecParser::Command
 
class  Preamble
 

Functions

QString funcSig (const VkSpecParser::Command &c, const char *className=nullptr)
 
QString funcCall (const VkSpecParser::Command &c, int idx)
 
bool genVulkanFunctionsH (const QList< VkSpecParser::Command > &commands, const QMap< QString, QStringList > &versionCommandMapping, const QString &licHeaderFn, const QString &outputBase)
 
bool genVulkanFunctionsPH (const QList< VkSpecParser::Command > &commands, const QMap< QString, QStringList > &versionCommandMapping, const QString &licHeaderFn, const QString &outputBase)
 
bool genVulkanFunctionsPC (const QList< VkSpecParser::Command > &commands, const QMap< QString, QStringList > &versionCommandMapping, const QString &licHeaderFn, const QString &outputBase)
 
int main (int argc, char **argv)
 [0]
 

Variables

static const QStringList VERSIONS
 
class Preamble preamble
 

Function Documentation

◆ funcCall()

QString funcCall ( const VkSpecParser::Command & c,
int idx )

Definition at line 262 of file qvkgen.cpp.

References QString::asprintf(), qPrintable, and QStringLiteral.

Referenced by genVulkanFunctionsPC().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ funcSig()

QString funcSig ( const VkSpecParser::Command & c,
const char * className = nullptr )

Definition at line 240 of file qvkgen.cpp.

References QString::asprintf(), className, qPrintable, and QStringLiteral.

Referenced by genVulkanFunctionsH(), and genVulkanFunctionsPC().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ genVulkanFunctionsH()

bool genVulkanFunctionsH ( const QList< VkSpecParser::Command > & commands,
const QMap< QString, QStringList > & versionCommandMapping,
const QString & licHeaderFn,
const QString & outputBase )

Definition at line 312 of file qvkgen.cpp.

References QString::asprintf(), funcSig(), preamble, qPrintable, QStringLiteral, qWarning, QIODeviceBase::Text, VERSIONS, and QIODeviceBase::WriteOnly.

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ genVulkanFunctionsPC()

bool genVulkanFunctionsPC ( const QList< VkSpecParser::Command > & commands,
const QMap< QString, QStringList > & versionCommandMapping,
const QString & licHeaderFn,
const QString & outputBase )

Definition at line 482 of file qvkgen.cpp.

References QString::arg(), QString::asprintf(), funcCall(), funcSig(), preamble, qPrintable, QStringLiteral, qWarning, str, QIODeviceBase::Text, QString::toUtf8(), VERSIONS, and QIODeviceBase::WriteOnly.

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ genVulkanFunctionsPH()

bool genVulkanFunctionsPH ( const QList< VkSpecParser::Command > & commands,
const QMap< QString, QStringList > & versionCommandMapping,
const QString & licHeaderFn,
const QString & outputBase )

Definition at line 409 of file qvkgen.cpp.

References QString::asprintf(), preamble, qPrintable, QStringLiteral, qWarning, QIODeviceBase::Text, VERSIONS, and QIODeviceBase::WriteOnly.

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ main()

int main ( int argc,
char ** argv )

[0]

[0]

[0]

[6]

[0]

[0]

[1]

[1]

[2]

[2]

[3]

[3]

[0]

[0]

[1]

[1]

[0]

[0]

[0]

[0]

Definition at line 587 of file qvkgen.cpp.

References app, VkSpecParser::commands(), QString::fromUtf8(), genVulkanFunctionsH(), genVulkanFunctionsPC(), genVulkanFunctionsPH(), i, VkSpecParser::parse(), QStringLiteral, qWarning, VkSpecParser::setFileName(), and VkSpecParser::versionCommandMapping().

+ Here is the call graph for this function:

Variable Documentation

◆ preamble

◆ VERSIONS

const QStringList VERSIONS
static
Initial value:
= {
QStringLiteral("VK_VERSION_1_0"),
QStringLiteral("VK_VERSION_1_1"),
QStringLiteral("VK_VERSION_1_2"),
QStringLiteral("VK_VERSION_1_3")
}
#define QStringLiteral(str)

Definition at line 12 of file qvkgen.cpp.

Referenced by genVulkanFunctionsH(), genVulkanFunctionsPC(), and genVulkanFunctionsPH().