mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-21 06:13:07 +01:00
3
3rdparty/spirv-tools/source/text_handler.cpp
vendored
3
3rdparty/spirv-tools/source/text_handler.cpp
vendored
@@ -329,9 +329,8 @@ spv_result_t AssemblyContext::recordTypeDefinition(
|
||||
types_[value] = {pInst->words[2], pInst->words[3] != 0,
|
||||
IdTypeClass::kScalarIntegerType};
|
||||
} else if (pInst->opcode == spv::Op::OpTypeFloat) {
|
||||
if ((pInst->words.size() != 3) && (pInst->words.size() != 4))
|
||||
if (pInst->words.size() != 3)
|
||||
return diagnostic() << "Invalid OpTypeFloat instruction";
|
||||
// TODO(kpet) Do we need to record the FP Encoding here?
|
||||
types_[value] = {pInst->words[2], false, IdTypeClass::kScalarFloatType};
|
||||
} else {
|
||||
types_[value] = {0, false, IdTypeClass::kOtherType};
|
||||
|
||||
Reference in New Issue
Block a user