Avoiding warnings maybe

This commit is contained in:
samcake 2016-10-07 16:44:51 -07:00
parent 429a7cf58a
commit 8476939ba9
2 changed files with 3 additions and 3 deletions

View file

@ -126,7 +126,7 @@ uint32_t LightClusters::getNumClusters() const {
}
_clusterResourcesInvalid = false;
auto numClusters = getNumClusters();
if (numClusters != _clusterGrid.size()) {
if (numClusters != (uint32_t) _clusterGrid.size()) {
_clusterGrid.clear();
_clusterGrid.resize(numClusters, EMPTY_CLUSTER);
_clusterGridBuffer._size = (numClusters * sizeof(uint32_t));
@ -139,7 +139,7 @@ uint32_t LightClusters::getNumClusters() const {
configListBudget *= 2;
}
if (configListBudget != _clusterContent.size()) {
if (configListBudget != (uint32_t) _clusterContent.size()) {
_clusterContent.clear();
_clusterContent.resize(configListBudget, INVALID_LIGHT);
_clusterContentBuffer._size = (configListBudget * sizeof(LightIndex));

View file

@ -102,7 +102,7 @@ public:
std::vector<LightIndex> _clusterContent;
gpu::BufferView _clusterGridBuffer;
gpu::BufferView _clusterContentBuffer;
int32_t _clusterContentBudget { 0 };
uint32_t _clusterContentBudget { 0 };
bool _clusterResourcesInvalid { true };
void updateClusterResource();