Skip to content

Commit 5f9ee4a

Browse files
committed
Fix granularity operator<
1 parent 0a0dd39 commit 5f9ee4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/nbl/video/SPhysicalDeviceLimits.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ struct SPhysicalDeviceLimits
614614
if (maxPushConstantsSize > _rhs.maxPushConstantsSize) return false;
615615
if (maxMemoryAllocationCount > _rhs.maxMemoryAllocationCount) return false;
616616
if (maxSamplerAllocationCount > _rhs.maxSamplerAllocationCount) return false;
617-
if (bufferImageGranularity > _rhs.bufferImageGranularity) return false;
617+
if (bufferImageGranularity < _rhs.bufferImageGranularity) return false;
618618
if (maxPerStageDescriptorSamplers > _rhs.maxPerStageDescriptorSamplers) return false;
619619
if (maxPerStageDescriptorUBOs > _rhs.maxPerStageDescriptorUBOs) return false;
620620
if (maxPerStageDescriptorSSBOs > _rhs.maxPerStageDescriptorSSBOs) return false;
@@ -770,7 +770,7 @@ struct SPhysicalDeviceLimits
770770
if (maxBufferSize > _rhs.maxBufferSize) return false;
771771
if (primitiveOverestimationSize > _rhs.primitiveOverestimationSize) return false;
772772
if (maxExtraPrimitiveOverestimationSize > _rhs.maxExtraPrimitiveOverestimationSize) return false;
773-
if (extraPrimitiveOverestimationSizeGranularity > _rhs.extraPrimitiveOverestimationSizeGranularity) return false;
773+
if (extraPrimitiveOverestimationSizeGranularity < _rhs.extraPrimitiveOverestimationSizeGranularity) return false;
774774
if (primitiveUnderestimation && !_rhs.primitiveUnderestimation) return false;
775775
if (conservativePointAndLineRasterization && !_rhs.conservativePointAndLineRasterization) return false;
776776
if (degenerateTrianglesRasterized && !_rhs.degenerateTrianglesRasterized) return false;

0 commit comments

Comments
 (0)