mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 16:35:07 +03:00
Add SPIRV-Cross (#6130)
* Add SPIRV-Cross * Update validation * Add a proper test * meet minimum version requirement for glsl
This commit is contained in:
parent
be31e4cd94
commit
286b3b5bb9
2 changed files with 40 additions and 0 deletions
36
projects/khronos.org/SPIRV-Cross/package.yml
Normal file
36
projects/khronos.org/SPIRV-Cross/package.yml
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/KhronosGroup/SPIRV-Cross/archive/{{version.tag}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: KhronosGroup/SPIRV-Cross
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
cmake.org: '*'
|
||||||
|
script:
|
||||||
|
- cmake -S . -B build $ARGS
|
||||||
|
- cmake --build build
|
||||||
|
- cmake --install build
|
||||||
|
env:
|
||||||
|
ARGS:
|
||||||
|
- -DSPIRV_CROSS_SHARED=ON
|
||||||
|
- -DSPIRV_CROSS_ENABLE_TESTS=OFF
|
||||||
|
- -DSPIRV_CROSS_STATIC=ON
|
||||||
|
- -DCMAKE_INSTALL_PREFIX={{prefix}}
|
||||||
|
- -DCMAKE_INSTALL_LIBDIR={{prefix}}/lib
|
||||||
|
- -DCMAKE_BUILD_TYPE=Release
|
||||||
|
- -Wno-dev
|
||||||
|
linux:
|
||||||
|
ARGS:
|
||||||
|
- -DCMAKE_EXE_LINKER_FLAGS=-lstdc++fs
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/spirv-cross
|
||||||
|
|
||||||
|
test:
|
||||||
|
dependencies:
|
||||||
|
khronos.org/glslang: '*'
|
||||||
|
script:
|
||||||
|
- glslangValidator -H -V -o test.spv test.frag
|
||||||
|
- spirv-cross --version 310 --es test.spv
|
4
projects/khronos.org/SPIRV-Cross/test.frag
Normal file
4
projects/khronos.org/SPIRV-Cross/test.frag
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#version 140
|
||||||
|
void main() {
|
||||||
|
gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);
|
||||||
|
}
|
Loading…
Reference in a new issue