glsl: Implement SampleId and SetSampleMask
plus some minor refactoring of implementations
This commit is contained in:
parent
d1a68f7997
commit
e7c8f8911f
3 changed files with 35 additions and 30 deletions
|
@ -256,6 +256,12 @@ EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile
|
|||
if (runtime_info.force_early_z) {
|
||||
header += "layout(early_fragment_tests)in;";
|
||||
}
|
||||
if (info.uses_sample_id) {
|
||||
header += "in int gl_SampleID;";
|
||||
}
|
||||
if (info.stores_sample_mask) {
|
||||
header += "out int gl_SampleMask[];";
|
||||
}
|
||||
break;
|
||||
case Stage::Compute:
|
||||
stage_name = "cs";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue