shader: Implement PIXLD.MY_INDEX
This commit is contained in:
parent
f3473c5143
commit
95815a3883
14 changed files with 71 additions and 5 deletions
|
@ -998,6 +998,9 @@ void EmitContext::DefineInputs(const Info& info) {
|
|||
if (info.uses_invocation_id) {
|
||||
invocation_id = DefineInput(*this, U32[1], false, spv::BuiltIn::InvocationId);
|
||||
}
|
||||
if (info.uses_sample_id) {
|
||||
sample_id = DefineInput(*this, U32[1], false, spv::BuiltIn::SampleId);
|
||||
}
|
||||
if (info.uses_is_helper_invocation) {
|
||||
is_helper_invocation = DefineInput(*this, U1, false, spv::BuiltIn::HelperInvocation);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue