Whitespace: Nonfunctional: fix inconsistent white space, esp. no tabs.
This commit is contained in:
parent
5c72a73971
commit
267590d452
@ -2,5 +2,5 @@
|
||||
// For the version, it uses the latest git tag followed by the number of commits.
|
||||
// For the date, it uses the current date (when then script is run).
|
||||
|
||||
#define GLSLANG_REVISION "SPIRV99.1384"
|
||||
#define GLSLANG_REVISION "SPIRV99.1390"
|
||||
#define GLSLANG_DATE "05-Aug-2016"
|
||||
|
@ -253,7 +253,7 @@ void TParseContext::handlePragma(const TSourceLoc& loc, const TVector<TString>&
|
||||
//
|
||||
bool TParseContext::parseVectorFields(const TSourceLoc& loc, const TString& compString, int vecSize, TVectorFields& fields)
|
||||
{
|
||||
fields.num = (int) compString.size();
|
||||
fields.num = (int)compString.size();
|
||||
if (fields.num > 4) {
|
||||
error(loc, "illegal vector field selection", compString.c_str(), "");
|
||||
return false;
|
||||
@ -865,7 +865,7 @@ TIntermTyped* TParseContext::handleDotDereference(const TSourceLoc& loc, TInterm
|
||||
TString vectorString = field;
|
||||
TIntermTyped* index = intermediate.addSwizzle(fields, loc);
|
||||
result = intermediate.addIndex(EOpVectorSwizzle, base, index, loc);
|
||||
result->setType(TType(base->getBasicType(), EvqTemporary, base->getType().getQualifier().precision, (int) vectorString.size()));
|
||||
result->setType(TType(base->getBasicType(), EvqTemporary, base->getType().getQualifier().precision, (int)vectorString.size()));
|
||||
}
|
||||
// Swizzle operations propagate specialization-constantness
|
||||
if (base->getType().getQualifier().isSpecConstant())
|
||||
|
@ -275,7 +275,7 @@ bool HlslGrammar::acceptDeclaration(TIntermNode*& node)
|
||||
|
||||
// DX9 sampler declaration use a different syntax
|
||||
// DX9 shaders need to run through HLSL compiler (fxc) via a back compat mode, it isn't going to
|
||||
// be possible to simultanously compile D3D10+ style shaders and DX9 shaders. If we want to compile DX9
|
||||
// be possible to simultaneously compile D3D10+ style shaders and DX9 shaders. If we want to compile DX9
|
||||
// HLSL shaders, this will have to be a master level switch
|
||||
// As such, the sampler keyword in D3D10+ turns into an automatic sampler type, and is commonly used
|
||||
// For that reason, this line is commented out
|
||||
|
@ -998,7 +998,7 @@ void HlslParseContext::decomposeSampleMethods(const TSourceLoc& loc, TIntermType
|
||||
|
||||
const TSampler& texSampler = texType.getSampler();
|
||||
const TSamplerDim dim = texSampler.dim;
|
||||
const int numArgs = (int) argAggregate->getSequence().size();
|
||||
const int numArgs = (int)argAggregate->getSequence().size();
|
||||
|
||||
int numDims = 0;
|
||||
|
||||
@ -1184,7 +1184,7 @@ void HlslParseContext::decomposeSampleMethods(const TSourceLoc& loc, TIntermType
|
||||
lodComponent->setType(TType(coordBaseType, EvqTemporary, 1));
|
||||
}
|
||||
|
||||
const int numArgs = (int) argAggregate->getSequence().size();
|
||||
const int numArgs = (int)argAggregate->getSequence().size();
|
||||
const bool hasOffset = ((!isMS && numArgs == 3) || (isMS && numArgs == 4));
|
||||
|
||||
// Create texel fetch
|
||||
@ -1228,7 +1228,7 @@ void HlslParseContext::decomposeSampleMethods(const TSourceLoc& loc, TIntermType
|
||||
TIntermTyped* argLod = argAggregate->getSequence()[3]->getAsTyped();
|
||||
TIntermTyped* argOffset = nullptr;
|
||||
|
||||
const int numArgs = (int) argAggregate->getSequence().size();
|
||||
const int numArgs = (int)argAggregate->getSequence().size();
|
||||
|
||||
if (numArgs == 5) // offset, if present
|
||||
argOffset = argAggregate->getSequence()[4]->getAsTyped();
|
||||
|
Loading…
x
Reference in New Issue
Block a user