This commit is contained in:
Dr. Chat 2016-02-21 16:47:06 -06:00
parent 3877afe90a
commit 568845e81d
1 changed files with 4 additions and 0 deletions

View File

@ -642,6 +642,10 @@ void SpirvShaderTranslator::ProcessVectorAluInstruction(
// TODO // TODO
} break; } break;
case AluVectorOpcode::kDp4: {
dest = b.createBinOp(spv::Op::OpDot, float_type_, sources[0], sources[1]);
} break;
case AluVectorOpcode::kFloor: { case AluVectorOpcode::kFloor: {
dest = CreateGlslStd450InstructionCall( dest = CreateGlslStd450InstructionCall(
spv::Decoration::DecorationInvariant, vec4_float_type_, spv::Decoration::DecorationInvariant, vec4_float_type_,