building the qsb files with make

This commit is contained in:
Uwe Rathmann 2024-01-08 16:32:18 +01:00
parent d397e4f26a
commit 242f063925
5 changed files with 31 additions and 5 deletions

View File

@ -9,6 +9,36 @@ set(SOURCES
TextureFilterNode.h TextureFilterNode.cpp
main.cpp)
qt_add_resources(SOURCES images.qrc shaders.qrc)
qt_add_resources(SOURCES images.qrc)
if (QT_VERSION_MAJOR VERSION_LESS 6)
qt_add_resources(SOURCES shaders.qrc)
endif()
qsk_add_example(parrots ${SOURCES})
if (QT_VERSION_MAJOR VERSION_GREATER_EQUAL 6)
qt6_add_shaders(parrots "shaders"
BATCHABLE
PRECOMPILE
QUIET
PREFIX
"/shaders"
FILES
shaders/blur-vulkan.vert
shaders/blur-vulkan.frag
shaders/rgbswap-vulkan.frag
OUTPUTS
blur.vert.qsb
blur.frag.qsb
rgbswap.vert.qsb
)
endif()

View File

@ -4,9 +4,5 @@
<file>shaders/blur.vert</file>
<file>shaders/blur.frag</file>
<file>shaders/rgbswap.frag</file>
<file>shaders/blur.vert.qsb</file>
<file>shaders/blur.frag.qsb</file>
<file>shaders/rgbswap.frag.qsb</file>
</qresource>
</RCC>