building the qsb files with make
This commit is contained in:
parent
d397e4f26a
commit
242f063925
|
@ -9,6 +9,36 @@ set(SOURCES
|
||||||
TextureFilterNode.h TextureFilterNode.cpp
|
TextureFilterNode.h TextureFilterNode.cpp
|
||||||
main.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})
|
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()
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,5 @@
|
||||||
<file>shaders/blur.vert</file>
|
<file>shaders/blur.vert</file>
|
||||||
<file>shaders/blur.frag</file>
|
<file>shaders/blur.frag</file>
|
||||||
<file>shaders/rgbswap.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>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue