Commit 20f5ae08 authored by Laszlo Agocs's avatar Laszlo Agocs

Turn manual tests into examples

parent d8d4300a
TEMPLATE = subdirs
SUBDIRS += \
rhi \
shadertools
......@@ -20,3 +20,6 @@ HEADERS = \
INCLUDEPATH += ../shared
RESOURCES = plainqwindow_d3d11.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/rhi/plainqwindow_d3d11
INSTALLS += target
......@@ -20,3 +20,6 @@ HEADERS = \
INCLUDEPATH += ../shared
RESOURCES = plainqwindow_gles2.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/rhi/plainqwindow_gles2
INSTALLS += target
......@@ -45,6 +45,7 @@ void MetalWindow::init()
QRhiMetalInitParams params;
m_r = QRhi::create(QRhi::Metal, &params);
// ### the backend is incomplete so do only the triangle for now
setOnScreenOnly(true);
setTriangleOnly(true);
......
......@@ -20,3 +20,6 @@ HEADERS = \
INCLUDEPATH += ../shared
RESOURCES = plainqwindow_metal.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/rhi/plainqwindow_metal
INSTALLS += target
......@@ -20,3 +20,6 @@ HEADERS = \
INCLUDEPATH += ../shared
RESOURCES = plainqwindow_vulkan.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/rhi/plainqwindow_vulkan
INSTALLS += target
TEMPLATE = subdirs
SUBDIRS += \
plainqwindow_gles2
......@@ -17,8 +18,3 @@ mac {
SUBDIRS += \
plainqwindow_metal
}
SUBDIRS += \
oneshaderthreecontexts_prebaked \
oneshaderthreecontexts_runtime \
qsc
......@@ -14,3 +14,6 @@ HEADERS = \
INCLUDEPATH += ../shared
RESOURCES = vulkanwindow.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/rhi/vulkanwindow
INSTALLS += target
......@@ -16,5 +16,5 @@ qtConfig(vulkan) {
RESOURCES = tri.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/oneshaderthreecontexts_prebaked
target.path = $$[QT_INSTALL_EXAMPLES]/shadertools/oneshaderthreecontexts_prebaked
INSTALLS += target
......@@ -16,5 +16,5 @@ qtConfig(vulkan) {
RESOURCES = tri.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/oneshaderthreecontexts_runtime
target.path = $$[QT_INSTALL_EXAMPLES]/shadertools/oneshaderthreecontexts_runtime
INSTALLS += target
......@@ -88,6 +88,11 @@ int main(int argc, char **argv)
cmdLineParser.process(app);
if (cmdLineParser.positionalArguments().isEmpty()) {
cmdLineParser.showHelp();
return 0;
}
for (const QString &fn : cmdLineParser.positionalArguments()) {
// Compile to SPIR-V.
QString spvName;
......
SOURCES += qsc.cpp
CONFIG += console
TEMPLATE = app
QT += shadertools
CONFIG += console
SOURCES += qsc.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/shadertools/qsc
INSTALLS += target
TEMPLATE = subdirs
SUBDIRS += \
qsc \
oneshaderthreecontexts_runtime \
oneshaderthreecontexts_prebaked
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment