SPV: Implement new extensions GL_KHX_device_group and GL_KHX_multiview.
These correspond to SPV_KHR_device_group and SPV_KHR_multiview. Also, bring tests up to date with Khronos internals, and some misc. related changes.
This commit is contained in:
38
Test/baseResults/spv.multiView.frag.out
Executable file
38
Test/baseResults/spv.multiView.frag.out
Executable file
@@ -0,0 +1,38 @@
|
||||
spv.multiView.frag
|
||||
Warning, version 450 is not yet complete; most version-specific features are present, but some are missing.
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 17
|
||||
|
||||
Capability Shader
|
||||
Capability MultiView
|
||||
Extension "SPV_KHR_multiview"
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "main" 9
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Source GLSL 450
|
||||
SourceExtension "GL_KHX_multiview"
|
||||
Name 4 "main"
|
||||
Name 9 "color"
|
||||
Name 12 "gl_ViewIndexKHR"
|
||||
Decorate 12(gl_ViewIndexKHR) BuiltIn ViewIndex
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
7: TypeVector 6(float) 4
|
||||
8: TypePointer Output 7(fvec4)
|
||||
9(color): 8(ptr) Variable Output
|
||||
10: TypeInt 32 1
|
||||
11: TypePointer UniformConstant 10(int)
|
||||
12(gl_ViewIndexKHR): 11(ptr) Variable UniformConstant
|
||||
15: 6(float) Constant 0
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
13: 10(int) Load 12(gl_ViewIndexKHR)
|
||||
14: 6(float) ConvertSToF 13
|
||||
16: 7(fvec4) CompositeConstruct 14 15 15 15
|
||||
Store 9(color) 16
|
||||
Return
|
||||
FunctionEnd
|
||||
Reference in New Issue
Block a user