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:
parent
fbb58a4e0b
commit
2c5ab9c8fc
11 changed files with 20 additions and 182 deletions
|
|
@ -51,7 +51,6 @@ Shader version: 450
|
|||
0:? Linker Objects
|
||||
0:? 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
||||
0:? 'g_tTex1df4' (layout(binding=0 ) uniform texture1D)
|
||||
0:? 'PerVertex_out' (out block{out 4-component vector of float Position @entryPointOutput_Pos})
|
||||
|
||||
|
||||
Linked vertex stage:
|
||||
|
|
@ -109,18 +108,17 @@ Shader version: 450
|
|||
0:? Linker Objects
|
||||
0:? 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
||||
0:? 'g_tTex1df4' (layout(binding=0 ) uniform texture1D)
|
||||
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 51
|
||||
// Id's are bound by 48
|
||||
|
||||
Capability Shader
|
||||
Capability Sampled1D
|
||||
Capability ImageQuery
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Vertex 4 "main" 42 50
|
||||
EntryPoint Vertex 4 "main" 42
|
||||
Name 4 "main"
|
||||
Name 8 "VS_OUTPUT"
|
||||
MemberName 8(VS_OUTPUT) 0 "Pos"
|
||||
|
|
@ -133,16 +131,11 @@ Shader version: 450
|
|||
Name 32 "vsout"
|
||||
Name 42 "@entryPointOutput_Pos"
|
||||
Name 47 "g_sSamp"
|
||||
Name 48 "PerVertex_out"
|
||||
MemberName 48(PerVertex_out) 0 "@entryPointOutput_Pos"
|
||||
Name 50 "PerVertex_out"
|
||||
Decorate 17(g_tTex1df4) DescriptorSet 0
|
||||
Decorate 17(g_tTex1df4) Binding 0
|
||||
Decorate 42(@entryPointOutput_Pos) BuiltIn Position
|
||||
Decorate 47(g_sSamp) DescriptorSet 0
|
||||
Decorate 47(g_sSamp) Binding 0
|
||||
MemberDecorate 48(PerVertex_out) 0 BuiltIn Position
|
||||
Decorate 48(PerVertex_out) Block
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
|
|
@ -166,9 +159,6 @@ Shader version: 450
|
|||
45: TypeSampler
|
||||
46: TypePointer UniformConstant 45
|
||||
47(g_sSamp): 46(ptr) Variable UniformConstant
|
||||
48(PerVertex_out): TypeStruct 7(fvec4)
|
||||
49: TypePointer Output 48(PerVertex_out)
|
||||
50(PerVertex_out): 49(ptr) Variable Output
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
43:8(VS_OUTPUT) FunctionCall 10(@main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue