Also added known-good mechanism to fetch latest validated spirv-tools. Also added -Od and -Os to disable optimizer and optimize for size. Fetching spirv-tools is optional for both glsl and hlsl. Legalization of hlsl is done by default if spirv-opt is present at cmake time. Optimization for glsl is currently done through the option -Os. Legalization testing is currently only done on four existing shaders. A separate baseLegalResults directory holds those results. All previous testing is done with the optimizer disabled.
71 lines
3.5 KiB
Plaintext
71 lines
3.5 KiB
Plaintext
hlsl.flattenOpaqueInit.vert
|
|
WARNING: 0:20: '=' : cannot do member-wise aliasing for opaque members with this initializer
|
|
|
|
// Module Version 10000
|
|
// Generated by (magic number): 80001
|
|
// Id's are bound by 76
|
|
|
|
Capability Shader
|
|
1: ExtInstImport "GLSL.std.450"
|
|
MemoryModel Logical GLSL450
|
|
EntryPoint Vertex 4 "main" 58
|
|
Source HLSL 500
|
|
Name 4 "main"
|
|
Name 17 "FxaaTex"
|
|
MemberName 17(FxaaTex) 0 "smpl"
|
|
MemberName 17(FxaaTex) 1 "tex"
|
|
Name 36 "g_tInputTexture_sampler"
|
|
Name 37 "g_tInputTexture"
|
|
Name 39 "t"
|
|
Name 43 "flattenTemp"
|
|
Name 45 "tex2.smpl"
|
|
Name 50 "tex2.tex"
|
|
Name 58 "@entryPointOutput"
|
|
Decorate 36(g_tInputTexture_sampler) DescriptorSet 0
|
|
Decorate 37(g_tInputTexture) DescriptorSet 0
|
|
Decorate 58(@entryPointOutput) Location 0
|
|
2: TypeVoid
|
|
3: TypeFunction 2
|
|
6: TypeSampler
|
|
7: TypePointer UniformConstant 6
|
|
8: TypeFloat 32
|
|
9: TypeImage 8(float) 2D sampled format:Unknown
|
|
10: TypePointer UniformConstant 9
|
|
11: TypeVector 8(float) 4
|
|
17(FxaaTex): TypeStruct 6 9
|
|
26: TypeSampledImage 9
|
|
28: TypeVector 8(float) 2
|
|
29: 8(float) Constant 1050253722
|
|
30: 8(float) Constant 1053609165
|
|
31: 28(fvec2) ConstantComposite 29 30
|
|
32: 8(float) Constant 0
|
|
36(g_tInputTexture_sampler): 7(ptr) Variable UniformConstant
|
|
37(g_tInputTexture): 10(ptr) Variable UniformConstant
|
|
38: TypePointer UniformConstant 17(FxaaTex)
|
|
39(t): 38(ptr) Variable UniformConstant
|
|
43(flattenTemp): 38(ptr) Variable UniformConstant
|
|
45(tex2.smpl): 7(ptr) Variable UniformConstant
|
|
46: TypeInt 32 1
|
|
47: 46(int) Constant 0
|
|
50(tex2.tex): 10(ptr) Variable UniformConstant
|
|
51: 46(int) Constant 1
|
|
57: TypePointer Output 11(fvec4)
|
|
58(@entryPointOutput): 57(ptr) Variable Output
|
|
4(main): 2 Function None 3
|
|
5: Label
|
|
70: 17(FxaaTex) Load 39(t)
|
|
Store 43(flattenTemp) 70
|
|
63: 7(ptr) AccessChain 43(flattenTemp) 47
|
|
64: 6 Load 63
|
|
Store 45(tex2.smpl) 64
|
|
65: 10(ptr) AccessChain 43(flattenTemp) 51
|
|
66: 9 Load 65
|
|
Store 50(tex2.tex) 66
|
|
72: 9 Load 37(g_tInputTexture)
|
|
73: 6 Load 36(g_tInputTexture_sampler)
|
|
74: 26 SampledImage 72 73
|
|
75: 11(fvec4) ImageSampleExplicitLod 74 31 Lod 32
|
|
Store 58(@entryPointOutput) 75
|
|
Return
|
|
FunctionEnd
|