HLSL: fix type on clip/cull index result
While adding geometry stage support for clip/cull, it transpired that the existing clip/cull support was not setting the type of the result of indexing into the clup/cull variable. That's a defect independent of the geometry support, so to simplify the geometry PR, this is addressed separately. It doesn't appear to change the generated SPIR-V, but that's probably down to something else tolerating a bad input.
This commit is contained in:
parent
82e95a3aa5
commit
d6f4d9b48c
18 changed files with 180 additions and 174 deletions
|
|
@ -101,7 +101,7 @@ Shader version: 500
|
|||
0:8 0 (const int)
|
||||
0:? Sequence
|
||||
0:8 move second child to first child ( temp float)
|
||||
0:8 direct index ( temp float)
|
||||
0:8 direct index ( out float ClipDistance)
|
||||
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
|
||||
0:8 Constant:
|
||||
0:8 0 (const int)
|
||||
|
|
@ -113,7 +113,7 @@ Shader version: 500
|
|||
0:8 Constant:
|
||||
0:8 0 (const int)
|
||||
0:8 move second child to first child ( temp float)
|
||||
0:8 direct index ( temp float)
|
||||
0:8 direct index ( out float ClipDistance)
|
||||
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
|
||||
0:8 Constant:
|
||||
0:8 1 (const int)
|
||||
|
|
@ -125,7 +125,7 @@ Shader version: 500
|
|||
0:8 Constant:
|
||||
0:8 1 (const int)
|
||||
0:8 move second child to first child ( temp float)
|
||||
0:8 direct index ( temp float)
|
||||
0:8 direct index ( out float ClipDistance)
|
||||
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
|
||||
0:8 Constant:
|
||||
0:8 2 (const int)
|
||||
|
|
@ -138,7 +138,7 @@ Shader version: 500
|
|||
0:8 2 (const int)
|
||||
0:? Sequence
|
||||
0:8 move second child to first child ( temp float)
|
||||
0:8 direct index ( temp float)
|
||||
0:8 direct index ( out float ClipDistance)
|
||||
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
|
||||
0:8 Constant:
|
||||
0:8 4 (const int)
|
||||
|
|
@ -150,7 +150,7 @@ Shader version: 500
|
|||
0:8 Constant:
|
||||
0:8 0 (const int)
|
||||
0:8 move second child to first child ( temp float)
|
||||
0:8 direct index ( temp float)
|
||||
0:8 direct index ( out float ClipDistance)
|
||||
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
|
||||
0:8 Constant:
|
||||
0:8 5 (const int)
|
||||
|
|
@ -162,7 +162,7 @@ Shader version: 500
|
|||
0:8 Constant:
|
||||
0:8 1 (const int)
|
||||
0:8 move second child to first child ( temp float)
|
||||
0:8 direct index ( temp float)
|
||||
0:8 direct index ( out float ClipDistance)
|
||||
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
|
||||
0:8 Constant:
|
||||
0:8 6 (const int)
|
||||
|
|
@ -174,7 +174,7 @@ Shader version: 500
|
|||
0:8 Constant:
|
||||
0:8 2 (const int)
|
||||
0:8 move second child to first child ( temp float)
|
||||
0:8 direct index ( temp float)
|
||||
0:8 direct index ( out float ClipDistance)
|
||||
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
|
||||
0:8 Constant:
|
||||
0:8 7 (const int)
|
||||
|
|
@ -295,7 +295,7 @@ Shader version: 500
|
|||
0:8 0 (const int)
|
||||
0:? Sequence
|
||||
0:8 move second child to first child ( temp float)
|
||||
0:8 direct index ( temp float)
|
||||
0:8 direct index ( out float ClipDistance)
|
||||
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
|
||||
0:8 Constant:
|
||||
0:8 0 (const int)
|
||||
|
|
@ -307,7 +307,7 @@ Shader version: 500
|
|||
0:8 Constant:
|
||||
0:8 0 (const int)
|
||||
0:8 move second child to first child ( temp float)
|
||||
0:8 direct index ( temp float)
|
||||
0:8 direct index ( out float ClipDistance)
|
||||
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
|
||||
0:8 Constant:
|
||||
0:8 1 (const int)
|
||||
|
|
@ -319,7 +319,7 @@ Shader version: 500
|
|||
0:8 Constant:
|
||||
0:8 1 (const int)
|
||||
0:8 move second child to first child ( temp float)
|
||||
0:8 direct index ( temp float)
|
||||
0:8 direct index ( out float ClipDistance)
|
||||
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
|
||||
0:8 Constant:
|
||||
0:8 2 (const int)
|
||||
|
|
@ -332,7 +332,7 @@ Shader version: 500
|
|||
0:8 2 (const int)
|
||||
0:? Sequence
|
||||
0:8 move second child to first child ( temp float)
|
||||
0:8 direct index ( temp float)
|
||||
0:8 direct index ( out float ClipDistance)
|
||||
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
|
||||
0:8 Constant:
|
||||
0:8 4 (const int)
|
||||
|
|
@ -344,7 +344,7 @@ Shader version: 500
|
|||
0:8 Constant:
|
||||
0:8 0 (const int)
|
||||
0:8 move second child to first child ( temp float)
|
||||
0:8 direct index ( temp float)
|
||||
0:8 direct index ( out float ClipDistance)
|
||||
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
|
||||
0:8 Constant:
|
||||
0:8 5 (const int)
|
||||
|
|
@ -356,7 +356,7 @@ Shader version: 500
|
|||
0:8 Constant:
|
||||
0:8 1 (const int)
|
||||
0:8 move second child to first child ( temp float)
|
||||
0:8 direct index ( temp float)
|
||||
0:8 direct index ( out float ClipDistance)
|
||||
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
|
||||
0:8 Constant:
|
||||
0:8 6 (const int)
|
||||
|
|
@ -368,7 +368,7 @@ Shader version: 500
|
|||
0:8 Constant:
|
||||
0:8 2 (const int)
|
||||
0:8 move second child to first child ( temp float)
|
||||
0:8 direct index ( temp float)
|
||||
0:8 direct index ( out float ClipDistance)
|
||||
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
|
||||
0:8 Constant:
|
||||
0:8 7 (const int)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue