mirror of
https://github.com/xenia-project/xenia.git
synced 2026-04-20 22:13:40 +00:00
Shaders: Emit an unimplemented warning for indexed vertex fetch instructions
This commit is contained in:
parent
14c5e48120
commit
a5b37dce1d
1 changed files with 8 additions and 0 deletions
|
|
@ -535,6 +535,14 @@ void GlslShaderTranslator::ProcessVertexFetchInstruction(
|
|||
EmitSource("// ");
|
||||
instr.Disassemble(&source_);
|
||||
|
||||
if (instr.operands[0].storage_index != 0) {
|
||||
// Unimplemented for now.
|
||||
EmitUnimplementedTranslationError();
|
||||
EmitSourceDepth("pv.xyzw = vec4(0.0, 0.0, 0.0, 0.0);\n");
|
||||
EmitStoreVectorResult(instr.result);
|
||||
return;
|
||||
}
|
||||
|
||||
if (instr.is_predicated) {
|
||||
EmitSourceDepth("if (%cp0) {\n", instr.predicate_condition ? ' ' : '!');
|
||||
Indent();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue