Build: Fix some warnings.
This commit is contained in:
parent
b4a598ba93
commit
d122a72852
@ -5706,7 +5706,7 @@ spv::Id TGlslangToSpvTraverser::createInvocationsOperation(glslang::TOperator op
|
|||||||
spv::IdImmediate scope = { true, builder.makeUintConstant(spv::ScopeSubgroup) };
|
spv::IdImmediate scope = { true, builder.makeUintConstant(spv::ScopeSubgroup) };
|
||||||
spvGroupOperands.push_back(scope);
|
spvGroupOperands.push_back(scope);
|
||||||
if (groupOperation != spv::GroupOperationMax) {
|
if (groupOperation != spv::GroupOperationMax) {
|
||||||
spv::IdImmediate groupOp = { false, groupOperation };
|
spv::IdImmediate groupOp = { false, (unsigned)groupOperation };
|
||||||
spvGroupOperands.push_back(groupOp);
|
spvGroupOperands.push_back(groupOp);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -5903,7 +5903,7 @@ spv::Id TGlslangToSpvTraverser::CreateInvocationsVectorOperation(spv::Op op, spv
|
|||||||
} else {
|
} else {
|
||||||
spv::IdImmediate scope = { true, builder.makeUintConstant(spv::ScopeSubgroup) };
|
spv::IdImmediate scope = { true, builder.makeUintConstant(spv::ScopeSubgroup) };
|
||||||
spvGroupOperands.push_back(scope);
|
spvGroupOperands.push_back(scope);
|
||||||
spv::IdImmediate groupOp = { false, groupOperation };
|
spv::IdImmediate groupOp = { false, (unsigned)groupOperation };
|
||||||
spvGroupOperands.push_back(groupOp);
|
spvGroupOperands.push_back(groupOp);
|
||||||
spvGroupOperands.push_back(scalar);
|
spvGroupOperands.push_back(scalar);
|
||||||
}
|
}
|
||||||
@ -6249,7 +6249,7 @@ spv::Id TGlslangToSpvTraverser::createSubgroupOperation(glslang::TOperator op, s
|
|||||||
|
|
||||||
// Next, for all operations that use a Group Operation, push that as an operand.
|
// Next, for all operations that use a Group Operation, push that as an operand.
|
||||||
if (groupOperation != spv::GroupOperationMax) {
|
if (groupOperation != spv::GroupOperationMax) {
|
||||||
spv::IdImmediate groupOperand = { false, groupOperation };
|
spv::IdImmediate groupOperand = { false, (unsigned)groupOperation };
|
||||||
spvGroupOperands.push_back(groupOperand);
|
spvGroupOperands.push_back(groupOperand);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user