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
|
|
@ -48,7 +48,7 @@ Shader version: 500
|
|||
0:? 'ins' ( temp structure{ temp float clip0, temp float clip1, temp float cull0, temp float cull1, temp int ii})
|
||||
0:? Sequence
|
||||
0:10 move second child to first child ( temp float)
|
||||
0:10 direct index ( temp float)
|
||||
0:10 direct index ( out float ClipDistance)
|
||||
0:? '@entryPointOutput.clip1' ( out 2-element array of float ClipDistance)
|
||||
0:10 Constant:
|
||||
0:10 0 (const int)
|
||||
|
|
@ -58,7 +58,7 @@ Shader version: 500
|
|||
0:10 0 (const int)
|
||||
0:? Sequence
|
||||
0:10 move second child to first child ( temp float)
|
||||
0:10 direct index ( temp float)
|
||||
0:10 direct index ( out float ClipDistance)
|
||||
0:? '@entryPointOutput.clip1' ( out 2-element array of float ClipDistance)
|
||||
0:10 Constant:
|
||||
0:10 1 (const int)
|
||||
|
|
@ -68,7 +68,7 @@ Shader version: 500
|
|||
0:10 1 (const int)
|
||||
0:? Sequence
|
||||
0:10 move second child to first child ( temp float)
|
||||
0:10 direct index ( temp float)
|
||||
0:10 direct index ( out float CullDistance)
|
||||
0:? '@entryPointOutput.cull1' ( out 2-element array of float CullDistance)
|
||||
0:10 Constant:
|
||||
0:10 0 (const int)
|
||||
|
|
@ -78,7 +78,7 @@ Shader version: 500
|
|||
0:10 2 (const int)
|
||||
0:? Sequence
|
||||
0:10 move second child to first child ( temp float)
|
||||
0:10 direct index ( temp float)
|
||||
0:10 direct index ( out float CullDistance)
|
||||
0:? '@entryPointOutput.cull1' ( out 2-element array of float CullDistance)
|
||||
0:10 Constant:
|
||||
0:10 1 (const int)
|
||||
|
|
@ -155,7 +155,7 @@ Shader version: 500
|
|||
0:? 'ins' ( temp structure{ temp float clip0, temp float clip1, temp float cull0, temp float cull1, temp int ii})
|
||||
0:? Sequence
|
||||
0:10 move second child to first child ( temp float)
|
||||
0:10 direct index ( temp float)
|
||||
0:10 direct index ( out float ClipDistance)
|
||||
0:? '@entryPointOutput.clip1' ( out 2-element array of float ClipDistance)
|
||||
0:10 Constant:
|
||||
0:10 0 (const int)
|
||||
|
|
@ -165,7 +165,7 @@ Shader version: 500
|
|||
0:10 0 (const int)
|
||||
0:? Sequence
|
||||
0:10 move second child to first child ( temp float)
|
||||
0:10 direct index ( temp float)
|
||||
0:10 direct index ( out float ClipDistance)
|
||||
0:? '@entryPointOutput.clip1' ( out 2-element array of float ClipDistance)
|
||||
0:10 Constant:
|
||||
0:10 1 (const int)
|
||||
|
|
@ -175,7 +175,7 @@ Shader version: 500
|
|||
0:10 1 (const int)
|
||||
0:? Sequence
|
||||
0:10 move second child to first child ( temp float)
|
||||
0:10 direct index ( temp float)
|
||||
0:10 direct index ( out float CullDistance)
|
||||
0:? '@entryPointOutput.cull1' ( out 2-element array of float CullDistance)
|
||||
0:10 Constant:
|
||||
0:10 0 (const int)
|
||||
|
|
@ -185,7 +185,7 @@ Shader version: 500
|
|||
0:10 2 (const int)
|
||||
0:? Sequence
|
||||
0:10 move second child to first child ( temp float)
|
||||
0:10 direct index ( temp float)
|
||||
0:10 direct index ( out float CullDistance)
|
||||
0:? '@entryPointOutput.cull1' ( out 2-element array of float CullDistance)
|
||||
0:10 Constant:
|
||||
0:10 1 (const int)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue