Dp4
This commit is contained in:
@@ -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_,
|
||||||
|
|||||||
Reference in New Issue
Block a user