void TParseVersions::explicitInt16Check(const TSourceLoc& loc, const char* op, bool builtIn)
{
if (! builtIn) {
- const char* const extensions[] = {
+ const char* const extensions[] = {
#if AMD_EXTENSIONS
E_GL_AMD_gpu_shader_int16,
#endif
TSampler sampler;
sampler.set(txType.getBasicType(), dim, false, isShadow, false);
- if (!parseContext.setTextureReturnType(sampler, txType, token.loc))
+ if (!parseContext.setTextureReturnType(sampler, txType, token.loc))
return false;
type.shallowCopy(TType(sampler, EvqUniform, arraySizes));
case EHTokSampler3d: // ...
case EHTokSamplerCube: // ...
if (parseContext.hlslDX9Compatible())
- return acceptSamplerTypeDX9(type);
+ return acceptSamplerTypeDX9(type);
else
return acceptSamplerType(type);
break;
if (argAggregate) {
if (argAggregate->getSequence().empty())
return;
- if (argAggregate->getSequence()[0])
- bufferObj = argAggregate->getSequence()[0]->getAsTyped();
+ if (argAggregate->getSequence()[0])
+ bufferObj = argAggregate->getSequence()[0]->getAsTyped();
} else {
bufferObj = arguments->getAsSymbolNode();
}
return;
} else {
if (argAggregate->getSequence().size() == 0 ||
- argAggregate->getSequence()[0] == nullptr ||
+ argAggregate->getSequence()[0] == nullptr ||
argAggregate->getSequence()[0]->getAsTyped()->getBasicType() != EbtSampler)
return;
}