SPV: SampleMask does not depend on SampleRateShading.

Fixes #1158.
Fixes #1159.
This commit is contained in:
John Kessenich
2017-11-20 16:32:49 -07:00
parent e2c15b4f6e
commit cbdf871d7f
11 changed files with 175 additions and 4 deletions

View File

@@ -0,0 +1,32 @@
spv.sample.frag
// Module Version 10000
// Generated by (magic number): 80002
// Id's are bound by 13
Capability Shader
Capability SampleRateShading
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 9 11
ExecutionMode 4 OriginUpperLeft
Source GLSL 450
Name 4 "main"
Name 9 "color"
Name 11 "samp"
Decorate 9(color) Location 0
Decorate 11(samp) Sample
Decorate 11(samp) Location 0
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: TypePointer Input 7(fvec4)
11(samp): 10(ptr) Variable Input
4(main): 2 Function None 3
5: Label
12: 7(fvec4) Load 11(samp)
Store 9(color) 12
Return
FunctionEnd