Dp4
This commit is contained in:
parent
3877afe90a
commit
568845e81d
|
@ -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_,
|
||||||
|
|
Loading…
Reference in New Issue