Fix build several build errors
glslang/SPIRV/SpvBuilder.cpp:2533:27: error: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [-Werror,-Wsign-compare]
for (int c = 0; c < accessChain.swizzle.size(); ++c)
~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
glslang/hlsl/hlslParseHelper.cpp:69:5: error: field 'cullDistanceInput' will be initialized after field 'clipDistanceOutput' [-Werror,-Wreorder]
cullDistanceInput(nullptr),
^
1 error generated.
glslang/glslang/MachineIndependent/attribute.cpp:85:16: error: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [-Werror,-Wsign-compare]
if (argNum >= args->getSequence().size())
~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
This commit is contained in:
parent
2ad4737dc2
commit
bfe0952118
@ -2530,7 +2530,7 @@ void Builder::remapDynamicSwizzle()
|
|||||||
if (accessChain.component != NoResult && accessChain.swizzle.size() > 1) {
|
if (accessChain.component != NoResult && accessChain.swizzle.size() > 1) {
|
||||||
// build a vector of the swizzle for the component to map into
|
// build a vector of the swizzle for the component to map into
|
||||||
std::vector<Id> components;
|
std::vector<Id> components;
|
||||||
for (int c = 0; c < accessChain.swizzle.size(); ++c)
|
for (int c = 0; c < (int)accessChain.swizzle.size(); ++c)
|
||||||
components.push_back(makeUintConstant(accessChain.swizzle[c]));
|
components.push_back(makeUintConstant(accessChain.swizzle[c]));
|
||||||
Id mapType = makeVectorType(makeUintType(32), (int)accessChain.swizzle.size());
|
Id mapType = makeVectorType(makeUintType(32), (int)accessChain.swizzle.size());
|
||||||
Id map = makeCompositeConstant(mapType, components);
|
Id map = makeCompositeConstant(mapType, components);
|
||||||
|
|||||||
@ -82,7 +82,7 @@ const TConstUnion* TAttributeArgs::getConstUnion(TBasicType basicType, int argNu
|
|||||||
if (args == nullptr)
|
if (args == nullptr)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
if (argNum >= args->getSequence().size())
|
if (argNum >= (int)args->getSequence().size())
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
const TConstUnion* constVal = &args->getSequence()[argNum]->getAsConstantUnion()->getConstArray()[0];
|
const TConstUnion* constVal = &args->getSequence()[argNum]->getAsConstantUnion()->getConstArray()[0];
|
||||||
|
|||||||
@ -65,10 +65,10 @@ HlslParseContext::HlslParseContext(TSymbolTable& symbolTable, TIntermediate& int
|
|||||||
entryPointFunction(nullptr),
|
entryPointFunction(nullptr),
|
||||||
entryPointFunctionBody(nullptr),
|
entryPointFunctionBody(nullptr),
|
||||||
gsStreamOutput(nullptr),
|
gsStreamOutput(nullptr),
|
||||||
clipDistanceInput(nullptr),
|
|
||||||
cullDistanceInput(nullptr),
|
|
||||||
clipDistanceOutput(nullptr),
|
clipDistanceOutput(nullptr),
|
||||||
cullDistanceOutput(nullptr)
|
cullDistanceOutput(nullptr),
|
||||||
|
clipDistanceInput(nullptr),
|
||||||
|
cullDistanceInput(nullptr)
|
||||||
{
|
{
|
||||||
globalUniformDefaults.clear();
|
globalUniformDefaults.clear();
|
||||||
globalUniformDefaults.layoutMatrix = ElmRowMajor;
|
globalUniformDefaults.layoutMatrix = ElmRowMajor;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user