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
1ee750ae
Commit
1ee750ae
authored
Jun 25, 2020
by
lriki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add pack_matrix test
parent
3cae3c4d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
111 additions
and
0 deletions
+111
-0
hlsl.matpack-pragma-global.frag.out
Test/baseResults/hlsl.matpack-pragma-global.frag.out
+102
-0
hlsl.matpack-pragma-global.frag
Test/hlsl.matpack-pragma-global.frag
+8
-0
Hlsl.FromFile.cpp
gtests/Hlsl.FromFile.cpp
+1
-0
No files found.
Test/baseResults/hlsl.matpack-pragma-global.frag.out
0 → 100644
View file @
1ee750ae
hlsl.matpack-pragma-global.frag
Shader version: 500
gl_FragCoord origin is upper left
0:? Sequence
0:6 Function Definition: @main( ( temp 4-component vector of float)
0:6 Function Parameters:
0:? Sequence
0:7 Branch: Return with expression
0:7 direct index ( temp 4-component vector of float)
0:7 g_GlobalMat1: direct index for structure ( uniform 4X4 matrix of float)
0:7 'anon@0' (layout( column_major std140) uniform block{ uniform 4X4 matrix of float g_GlobalMat1})
0:7 Constant:
0:7 0 (const uint)
0:7 Constant:
0:7 0 (const int)
0:6 Function Definition: main( ( temp void)
0:6 Function Parameters:
0:? Sequence
0:6 move second child to first child ( temp 4-component vector of float)
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
0:6 Function Call: @main( ( temp 4-component vector of float)
0:? Linker Objects
0:? 'anon@0' (layout( column_major std140) uniform block{ uniform 4X4 matrix of float g_GlobalMat1})
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
Linked fragment stage:
Shader version: 500
gl_FragCoord origin is upper left
0:? Sequence
0:6 Function Definition: @main( ( temp 4-component vector of float)
0:6 Function Parameters:
0:? Sequence
0:7 Branch: Return with expression
0:7 direct index ( temp 4-component vector of float)
0:7 g_GlobalMat1: direct index for structure ( uniform 4X4 matrix of float)
0:7 'anon@0' (layout( column_major std140) uniform block{ uniform 4X4 matrix of float g_GlobalMat1})
0:7 Constant:
0:7 0 (const uint)
0:7 Constant:
0:7 0 (const int)
0:6 Function Definition: main( ( temp void)
0:6 Function Parameters:
0:? Sequence
0:6 move second child to first child ( temp 4-component vector of float)
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
0:6 Function Call: @main( ( temp 4-component vector of float)
0:? Linker Objects
0:? 'anon@0' (layout( column_major std140) uniform block{ uniform 4X4 matrix of float g_GlobalMat1})
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
// Module Version 10000
// Generated by (magic number): 8000a
// Id's are bound by 25
Capability Shader
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 23
ExecutionMode 4 OriginUpperLeft
Source HLSL 500
Name 4 "main"
Name 9 "@main("
Name 12 "$Global"
MemberName 12($Global) 0 "g_GlobalMat1"
Name 14 ""
Name 23 "@entryPointOutput"
MemberDecorate 12($Global) 0 ColMajor
MemberDecorate 12($Global) 0 Offset 0
MemberDecorate 12($Global) 0 MatrixStride 16
Decorate 12($Global) Block
Decorate 14 DescriptorSet 0
Decorate 14 Binding 0
Decorate 23(@entryPointOutput) Location 0
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
7: TypeVector 6(float) 4
8: TypeFunction 7(fvec4)
11: TypeMatrix 7(fvec4) 4
12($Global): TypeStruct 11
13: TypePointer Uniform 12($Global)
14: 13(ptr) Variable Uniform
15: TypeInt 32 1
16: 15(int) Constant 0
17: TypePointer Uniform 7(fvec4)
22: TypePointer Output 7(fvec4)
23(@entryPointOutput): 22(ptr) Variable Output
4(main): 2 Function None 3
5: Label
24: 7(fvec4) FunctionCall 9(@main()
Store 23(@entryPointOutput) 24
Return
FunctionEnd
9(@main(): 7(fvec4) Function None 8
10: Label
18: 17(ptr) AccessChain 14 16 16
19: 7(fvec4) Load 18
ReturnValue 19
FunctionEnd
Test/hlsl.matpack-pragma-global.frag
0 → 100644
View file @
1ee750ae
#pragma pack_matrix(row_major)
float4x4
g_GlobalMat1
;
float4
main
()
:
SV_Target0
{
return
g_GlobalMat1
[
0
];
}
gtests/Hlsl.FromFile.cpp
View file @
1ee750ae
...
@@ -279,6 +279,7 @@ INSTANTIATE_TEST_CASE_P(
...
@@ -279,6 +279,7 @@ INSTANTIATE_TEST_CASE_P(
{
"hlsl.logical.unary.frag"
,
"main"
},
{
"hlsl.logical.unary.frag"
,
"main"
},
{
"hlsl.loopattr.frag"
,
"main"
},
{
"hlsl.loopattr.frag"
,
"main"
},
{
"hlsl.matpack-pragma.frag"
,
"main"
},
{
"hlsl.matpack-pragma.frag"
,
"main"
},
{
"hlsl.matpack-pragma-global.frag"
,
"main"
},
{
"hlsl.mip.operator.frag"
,
"main"
},
{
"hlsl.mip.operator.frag"
,
"main"
},
{
"hlsl.mip.negative.frag"
,
"main"
},
{
"hlsl.mip.negative.frag"
,
"main"
},
{
"hlsl.mip.negative2.frag"
,
"main"
},
{
"hlsl.mip.negative2.frag"
,
"main"
},
...
...
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