mirror of
https://github.com/conan-io/conan-center-index.git
synced 2025-08-14 02:35:37 +00:00
(#14726) Bump spirv-cross/1.3.236.0
* add spirv-cross/1.3.236.0 * fix gcc5 * add patch fields
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
sources:
|
||||
"1.3.236.0":
|
||||
url: "https://github.com/KhronosGroup/SPIRV-Cross/archive/refs/tags/sdk-1.3.236.0.tar.gz"
|
||||
sha256: "8140a2b53d1e218e9be1f8d5e2749b1ebe854d456e5cb356218fd288747d5438"
|
||||
"1.3.231.1":
|
||||
url: "https://github.com/KhronosGroup/SPIRV-Cross/archive/refs/tags/sdk-1.3.231.1.tar.gz"
|
||||
sha256: "3b42f5b6e46b45600e09fd55234f59edb7cfca803e49d7830dc6fb5a086143b1"
|
||||
@@ -42,6 +45,11 @@ sources:
|
||||
url: "https://github.com/KhronosGroup/SPIRV-Cross/archive/2020-04-03.tar.gz"
|
||||
sha256: "93f3a6dfad17c9ca0bf4d2d80809e90118e13b47502eb395baba8784025d7e97"
|
||||
patches:
|
||||
"1.3.236.0":
|
||||
- patch_file: "patches/1.3.236.0-0001-fix-gcc5.patch"
|
||||
patch_description: "Fix compilation with gcc-5"
|
||||
patch_type: "portability"
|
||||
base_path: "source_subfolder"
|
||||
"cci.20210621":
|
||||
- patch_file: "patches/0001-fix-bundle-install-cci.20210621.patch"
|
||||
base_path: "source_subfolder"
|
||||
|
@@ -0,0 +1,14 @@
|
||||
--- a/spirv_glsl.cpp
|
||||
+++ b/spirv_glsl.cpp
|
||||
@@ -4955,9 +4955,9 @@ SmallVector<ConstantID> CompilerGLSL::get_composite_constant_ids(ConstantID cons
|
||||
if (is_array(type) || type.basetype == SPIRType::Struct)
|
||||
return constant->subconstants;
|
||||
if (is_matrix(type))
|
||||
- return constant->m.id;
|
||||
+ return SmallVector<ConstantID>(constant->m.id);
|
||||
if (is_vector(type))
|
||||
- return constant->m.c[0].id;
|
||||
+ return SmallVector<ConstantID>(constant->m.c[0].id);
|
||||
SPIRV_CROSS_THROW("Unexpected scalar constant!");
|
||||
}
|
||||
if (!const_composite_insert_ids.count(const_id))
|
@@ -1,4 +1,6 @@
|
||||
versions:
|
||||
"1.3.236.0":
|
||||
folder: all
|
||||
"1.3.231.1":
|
||||
folder: all
|
||||
"1.3.224.0":
|
||||
|
Reference in New Issue
Block a user