Shaders: Emit an unimplemented warning for indexed vertex fetch instructions
This commit is contained in:
parent
14c5e48120
commit
a5b37dce1d
|
@ -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…
Reference in New Issue