mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-22 02:15:45 +00:00
video_core: Fix few issues in Tess stage
This commit is contained in:
parent
e12153f58f
commit
348c6e5b28
18 changed files with 63 additions and 6 deletions
|
@ -1325,6 +1325,10 @@ void EmitContext::DefineInputs(const IR::Program& program) {
|
|||
if (info.uses_invocation_id) {
|
||||
invocation_id = DefineInput(*this, U32[1], false, spv::BuiltIn::InvocationId);
|
||||
}
|
||||
if (info.uses_invocation_info &&
|
||||
(stage == Shader::Stage::TessellationControl || stage == Shader::Stage::TessellationEval)) {
|
||||
patch_vertices_in = DefineInput(*this, U32[1], false, spv::BuiltIn::PatchVertices);
|
||||
}
|
||||
if (info.uses_sample_id) {
|
||||
sample_id = DefineInput(*this, U32[1], false, spv::BuiltIn::SampleId);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue