HLSL: remove pervertex output blocks
This removes pervertex output blocks, in favor of using only loose variables. The pervertex blocks are not required and were only partly implemented, and were adding some complication. This change goes with wrap-entry-point.
This commit is contained in:
committed by
John Kessenich
parent
fbb58a4e0b
commit
2c5ab9c8fc
@@ -44,7 +44,6 @@ Shader version: 450
|
||||
0:? Linker Objects
|
||||
0:? 'Pos_in' (in 4-component vector of float Position)
|
||||
0:? 'Pos_loose' (in 4-component vector of float Position)
|
||||
0:? 'PerVertex_out' (out block{out 4-component vector of float Position @entryPointOutput_Pos})
|
||||
|
||||
|
||||
Linked vertex stage:
|
||||
@@ -95,16 +94,15 @@ Shader version: 450
|
||||
0:? Linker Objects
|
||||
0:? 'Pos_in' (in 4-component vector of float Position)
|
||||
0:? 'Pos_loose' (in 4-component vector of float Position)
|
||||
0:? 'PerVertex_out' (out block{out 4-component vector of float Position @entryPointOutput_Pos})
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 48
|
||||
// Id's are bound by 45
|
||||
|
||||
Capability Shader
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Vertex 4 "main" 31 35 38 47
|
||||
EntryPoint Vertex 4 "main" 31 35 38
|
||||
Name 4 "main"
|
||||
Name 8 "VS_INPUT"
|
||||
MemberName 8(VS_INPUT) 0 "Pos_in"
|
||||
@@ -121,14 +119,9 @@ Shader version: 450
|
||||
Name 38 "@entryPointOutput_Pos"
|
||||
Name 39 "param"
|
||||
Name 41 "param"
|
||||
Name 45 "PerVertex_out"
|
||||
MemberName 45(PerVertex_out) 0 "@entryPointOutput_Pos"
|
||||
Name 47 "PerVertex_out"
|
||||
Decorate 31(Pos_in) BuiltIn Position
|
||||
Decorate 35(Pos_loose) BuiltIn Position
|
||||
Decorate 38(@entryPointOutput_Pos) BuiltIn Position
|
||||
MemberDecorate 45(PerVertex_out) 0 BuiltIn Position
|
||||
Decorate 45(PerVertex_out) Block
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
@@ -146,9 +139,6 @@ Shader version: 450
|
||||
35(Pos_loose): 30(ptr) Variable Input
|
||||
37: TypePointer Output 7(fvec4)
|
||||
38(@entryPointOutput_Pos): 37(ptr) Variable Output
|
||||
45(PerVertex_out): TypeStruct 7(fvec4)
|
||||
46: TypePointer Output 45(PerVertex_out)
|
||||
47(PerVertex_out): 46(ptr) Variable Output
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
29(vsin): 9(ptr) Variable Function
|
||||
|
||||
Reference in New Issue
Block a user