// sampler_declaration_dx9
// : SAMPLER identifier EQUAL sampler_type sampler_state
//
-bool HlslGrammar::acceptSamplerDeclarationDX9(TType& type)
+bool HlslGrammar::acceptSamplerDeclarationDX9(TType& /*type*/)
{
if (! acceptTokenClass(EHTokSampler))
return false;
TOperator textureOp = EOpTexture;
- if (argAggregate->getSequence().size() == (nextArg+1)) { // last parameter is offset form
+ if ((int)argAggregate->getSequence().size() == (nextArg+1)) { // last parameter is offset form
textureOp = EOpTextureOffset;
argOffset = argAggregate->getSequence()[nextArg++]->getAsTyped();
}
bool IsTextureType(const char argOrder) { return argOrder == '%' || argOrder == '@'; }
bool IsTextureArrayed(const char argOrder) { return argOrder == '@'; }
-bool IsTextureMS(const char argOrder) { return false; } // TODO: ...
+bool IsTextureMS(const char /*argOrder*/) { return false; } // TODO: ...
// Reject certain combinations that are illegal sample methods. For example,
// 3D arrays.
const bool isMatMul = (argOrder[0] == '#');
const bool isTexture = IsTextureType(argOrder[0]);
const bool isArrayed = IsTextureArrayed(argOrder[0]);
- const bool isMS = IsTextureMS(argOrder[0]);
+ //const bool isMS = IsTextureMS(argOrder[0]);
char order = *argOrder;
char type = *argType;