mirror of
https://github.com/libretro/glslang.git
synced 2024-12-13 19:23:20 +00:00
Merge pull request #281 from amdrexu/bugfix
Parser: Add missing vector relational functions for double type.
This commit is contained in:
commit
7fde8bc2a9
@ -16,7 +16,7 @@ Linked vertex stage:
|
||||
EntryPoint Vertex 4 "main" 20 22 28 53
|
||||
Source GLSL 400
|
||||
Name 4 "main"
|
||||
Name 14 "foo(vf4[s1498];"
|
||||
Name 14 "foo(vf4[s1516];"
|
||||
Name 13 "p"
|
||||
Name 17 "builtin_spec_constant("
|
||||
Name 20 "color"
|
||||
@ -96,10 +96,10 @@ Linked vertex stage:
|
||||
Store 20(color) 46
|
||||
48: 10 Load 22(ucol)
|
||||
Store 47(param) 48
|
||||
49: 2 FunctionCall 14(foo(vf4[s1498];) 47(param)
|
||||
49: 2 FunctionCall 14(foo(vf4[s1516];) 47(param)
|
||||
Return
|
||||
FunctionEnd
|
||||
14(foo(vf4[s1498];): 2 Function None 12
|
||||
14(foo(vf4[s1516];): 2 Function None 12
|
||||
13(p): 11(ptr) FunctionParameter
|
||||
15: Label
|
||||
54: 24(ptr) AccessChain 53(dupUcol) 23
|
||||
|
@ -629,6 +629,30 @@ void TBuiltIns::initialize(int version, EProfile profile, int spv, int vulkan)
|
||||
"dmat3 inverse(dmat3);"
|
||||
"dmat4 inverse(dmat4);"
|
||||
|
||||
"bvec2 lessThan(dvec2, dvec2);"
|
||||
"bvec3 lessThan(dvec3, dvec3);"
|
||||
"bvec4 lessThan(dvec4, dvec4);"
|
||||
|
||||
"bvec2 lessThanEqual(dvec2, dvec2);"
|
||||
"bvec3 lessThanEqual(dvec3, dvec3);"
|
||||
"bvec4 lessThanEqual(dvec4, dvec4);"
|
||||
|
||||
"bvec2 greaterThan(dvec2, dvec2);"
|
||||
"bvec3 greaterThan(dvec3, dvec3);"
|
||||
"bvec4 greaterThan(dvec4, dvec4);"
|
||||
|
||||
"bvec2 greaterThanEqual(dvec2, dvec2);"
|
||||
"bvec3 greaterThanEqual(dvec3, dvec3);"
|
||||
"bvec4 greaterThanEqual(dvec4, dvec4);"
|
||||
|
||||
"bvec2 equal(dvec2, dvec2);"
|
||||
"bvec3 equal(dvec3, dvec3);"
|
||||
"bvec4 equal(dvec4, dvec4);"
|
||||
|
||||
"bvec2 notEqual(dvec2, dvec2);"
|
||||
"bvec3 notEqual(dvec3, dvec3);"
|
||||
"bvec4 notEqual(dvec4, dvec4);"
|
||||
|
||||
"\n");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user