Merge pull request #1556 from Kangz/msvc
Fix MSVC warning C4065: 'default' but no 'case' labels
This commit is contained in:
commit
b2b3d81e9b
@ -121,8 +121,8 @@ void Builder::postProcessType(const Instruction& inst, Id typeId)
|
|||||||
case OpUConvert:
|
case OpUConvert:
|
||||||
break;
|
break;
|
||||||
case OpExtInst:
|
case OpExtInst:
|
||||||
switch (inst.getImmediateOperand(1)) {
|
|
||||||
#if AMD_EXTENSIONS
|
#if AMD_EXTENSIONS
|
||||||
|
switch (inst.getImmediateOperand(1)) {
|
||||||
case GLSLstd450Frexp:
|
case GLSLstd450Frexp:
|
||||||
case GLSLstd450FrexpStruct:
|
case GLSLstd450FrexpStruct:
|
||||||
if (getSpvVersion() < glslang::EShTargetSpv_1_3 && containsType(typeId, OpTypeInt, 16))
|
if (getSpvVersion() < glslang::EShTargetSpv_1_3 && containsType(typeId, OpTypeInt, 16))
|
||||||
@ -134,10 +134,10 @@ void Builder::postProcessType(const Instruction& inst, Id typeId)
|
|||||||
if (getSpvVersion() < glslang::EShTargetSpv_1_3 && containsType(typeId, OpTypeFloat, 16))
|
if (getSpvVersion() < glslang::EShTargetSpv_1_3 && containsType(typeId, OpTypeFloat, 16))
|
||||||
addExtension(spv::E_SPV_AMD_gpu_shader_half_float);
|
addExtension(spv::E_SPV_AMD_gpu_shader_half_float);
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (basicTypeOp == OpTypeFloat && width == 16)
|
if (basicTypeOp == OpTypeFloat && width == 16)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user