Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
994d4bf3
Commit
994d4bf3
authored
Jul 27, 2018
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests: Add more string -> float tests. Related to #1456.
parent
561a43d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
166 additions
and
6 deletions
+166
-6
stringToDouble.vert.out
Test/baseResults/stringToDouble.vert.out
+146
-4
stringToDouble.vert
Test/stringToDouble.vert
+20
-2
No files found.
Test/baseResults/stringToDouble.vert.out
View file @
994d4bf3
stringToDouble.vert
stringToDouble.vert
Shader version: 460
Shader version: 460
Requested GL_KHX_shader_explicit_arithmetic_types_float16
0:? Sequence
0:? Sequence
0:3 Function Definition: main( ( global void)
0:3 Function Definition: main( ( global void)
0:3 Function Parameters:
0:3 Function Parameters:
...
@@ -440,10 +441,80 @@ Shader version: 460
...
@@ -440,10 +441,80 @@ Shader version: 460
0:95 Constant:
0:95 Constant:
0:95 5.7089907708238e+45
0:95 5.7089907708238e+45
0:97 Sequence
0:97 Sequence
0:97 move second child to first child ( temp
double
)
0:97 move second child to first child ( temp
float
)
0:97 'pi
' ( temp double
)
0:97 'pi
1' ( temp float
)
0:97 Constant:
0:97 Constant:
0:97 3.141593
0:97 3.141593
0:98 Sequence
0:98 move second child to first child ( temp float)
0:98 'pi2' ( temp float)
0:98 Constant:
0:98 3.141593
0:99 Sequence
0:99 move second child to first child ( temp float)
0:99 'pi3' ( temp float)
0:99 Constant:
0:99 3.141593
0:101 Sequence
0:101 move second child to first child ( temp double)
0:101 'dpi1' ( temp double)
0:101 Constant:
0:101 3.141593
0:102 Sequence
0:102 move second child to first child ( temp double)
0:102 'dpi2' ( temp double)
0:102 Constant:
0:102 3.141593
0:103 Sequence
0:103 move second child to first child ( temp double)
0:103 'dpi3' ( temp double)
0:103 Constant:
0:103 3.141593
0:105 Sequence
0:105 move second child to first child ( temp float)
0:105 'dfpi1' ( temp float)
0:105 Constant:
0:105 3.141593
0:106 Sequence
0:106 move second child to first child ( temp float)
0:106 'dfpi2' ( temp float)
0:106 Constant:
0:106 3.141593
0:107 Sequence
0:107 move second child to first child ( temp float)
0:107 'dfpi3' ( temp float)
0:107 Constant:
0:107 3.141593
0:109 Sequence
0:109 move second child to first child ( temp double)
0:109 'lfpi1' ( temp double)
0:109 Constant:
0:109 3.141593
0:110 Sequence
0:110 move second child to first child ( temp double)
0:110 'lfpi2' ( temp double)
0:110 Constant:
0:110 3.141593
0:111 Sequence
0:111 move second child to first child ( temp double)
0:111 'lfpi3' ( temp double)
0:111 Constant:
0:111 3.141593
0:113 Sequence
0:113 move second child to first child ( temp double)
0:113 'hfpi1' ( temp double)
0:113 Constant:
0:113 3.141593
0:114 Sequence
0:114 move second child to first child ( temp double)
0:114 'hfpi2' ( temp double)
0:114 Constant:
0:114 3.141593
0:115 Sequence
0:115 move second child to first child ( temp double)
0:115 'hfpi3' ( temp double)
0:115 Constant:
0:115 3.141593
0:? Linker Objects
0:? Linker Objects
0:? 'gl_VertexID' ( gl_VertexId int VertexId)
0:? 'gl_VertexID' ( gl_VertexId int VertexId)
0:? 'gl_InstanceID' ( gl_InstanceId int InstanceId)
0:? 'gl_InstanceID' ( gl_InstanceId int InstanceId)
...
@@ -453,6 +524,7 @@ Linked vertex stage:
...
@@ -453,6 +524,7 @@ Linked vertex stage:
Shader version: 460
Shader version: 460
Requested GL_KHX_shader_explicit_arithmetic_types_float16
0:? Sequence
0:? Sequence
0:3 Function Definition: main( ( global void)
0:3 Function Definition: main( ( global void)
0:3 Function Parameters:
0:3 Function Parameters:
...
@@ -893,10 +965,80 @@ Shader version: 460
...
@@ -893,10 +965,80 @@ Shader version: 460
0:95 Constant:
0:95 Constant:
0:95 5.7089907708238e+45
0:95 5.7089907708238e+45
0:97 Sequence
0:97 Sequence
0:97 move second child to first child ( temp
double
)
0:97 move second child to first child ( temp
float
)
0:97 'pi
' ( temp double
)
0:97 'pi
1' ( temp float
)
0:97 Constant:
0:97 Constant:
0:97 3.141593
0:97 3.141593
0:98 Sequence
0:98 move second child to first child ( temp float)
0:98 'pi2' ( temp float)
0:98 Constant:
0:98 3.141593
0:99 Sequence
0:99 move second child to first child ( temp float)
0:99 'pi3' ( temp float)
0:99 Constant:
0:99 3.141593
0:101 Sequence
0:101 move second child to first child ( temp double)
0:101 'dpi1' ( temp double)
0:101 Constant:
0:101 3.141593
0:102 Sequence
0:102 move second child to first child ( temp double)
0:102 'dpi2' ( temp double)
0:102 Constant:
0:102 3.141593
0:103 Sequence
0:103 move second child to first child ( temp double)
0:103 'dpi3' ( temp double)
0:103 Constant:
0:103 3.141593
0:105 Sequence
0:105 move second child to first child ( temp float)
0:105 'dfpi1' ( temp float)
0:105 Constant:
0:105 3.141593
0:106 Sequence
0:106 move second child to first child ( temp float)
0:106 'dfpi2' ( temp float)
0:106 Constant:
0:106 3.141593
0:107 Sequence
0:107 move second child to first child ( temp float)
0:107 'dfpi3' ( temp float)
0:107 Constant:
0:107 3.141593
0:109 Sequence
0:109 move second child to first child ( temp double)
0:109 'lfpi1' ( temp double)
0:109 Constant:
0:109 3.141593
0:110 Sequence
0:110 move second child to first child ( temp double)
0:110 'lfpi2' ( temp double)
0:110 Constant:
0:110 3.141593
0:111 Sequence
0:111 move second child to first child ( temp double)
0:111 'lfpi3' ( temp double)
0:111 Constant:
0:111 3.141593
0:113 Sequence
0:113 move second child to first child ( temp double)
0:113 'hfpi1' ( temp double)
0:113 Constant:
0:113 3.141593
0:114 Sequence
0:114 move second child to first child ( temp double)
0:114 'hfpi2' ( temp double)
0:114 Constant:
0:114 3.141593
0:115 Sequence
0:115 move second child to first child ( temp double)
0:115 'hfpi3' ( temp double)
0:115 Constant:
0:115 3.141593
0:? Linker Objects
0:? Linker Objects
0:? 'gl_VertexID' ( gl_VertexId int VertexId)
0:? 'gl_VertexID' ( gl_VertexId int VertexId)
0:? 'gl_InstanceID' ( gl_InstanceId int InstanceId)
0:? 'gl_InstanceID' ( gl_InstanceId int InstanceId)
...
...
Test/stringToDouble.vert
View file @
994d4bf3
#version 460
#version 460
//#pragma glslang_binary_double_output
#extension GL_KHX_shader_explicit_arithmetic_types_float16 : enable
void
main
()
void
main
()
{
{
float
w1
=
00000
.
000
;
float
w1
=
00000
.
000
;
...
@@ -94,5 +94,23 @@ void main()
...
@@ -94,5 +94,23 @@ void main()
double
b44
=
5708990770823839207320493820740630171355185151999e-3
;
double
b44
=
5708990770823839207320493820740630171355185151999e-3
;
double
b45
=
5708990770823839207320493820740630171355185152001e-3
;
double
b45
=
5708990770823839207320493820740630171355185152001e-3
;
double
pi
=
3
.
1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679
;
float
pi1
=
3
.
1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679
f
;
float
pi2
=
3
.
14159265358979
f
;
float
pi3
=
3
.
141592653589793
f
;
double
dpi1
=
3
.
1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679
;
double
dpi2
=
3
.
14159265358979
;
double
dpi3
=
3
.
141592653589793
;
float
dfpi1
=
3
.
1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679
f
;
float
dfpi2
=
3
.
14159265358979
f
;
float
dfpi3
=
3
.
141592653589793
f
;
double
lfpi1
=
3
.
1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679L
F
;
double
lfpi2
=
3
.
14159265358979L
f
;
double
lfpi3
=
3
.
141592653589793l
F
;
double
hfpi1
=
3
.
1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679
hF
;
double
hfpi2
=
3
.
14159265358979
hF
;
double
hfpi3
=
3
.
141592653589793
hf
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment