setScissorRect: bad docs or validation

"The scissor rectangle must lie entirely within the current attachment. Fragments that lie outside the scissor rectangle are discarded.

The default value is

(0, 0, width, height)
, where
width
and
height
are the x and y dimensions of the attachment, respectively."


I have an attachment of 1333 x 750. I try to set a scissor of


scissor const MTLScissorRect & 0x000000016e9aa2a8

x NSUInteger 0

y NSUInteger 0

width NSUInteger 1333

height NSUInteger 750


The validation layer fails with:


/BuildRoot/Library/Caches/com.apple.xbs/Sources/Metal/Metal-85.83/ToolsLayers/Debug/MTLDebugRenderCommandEncoder.mm:2029: failed assertion `(rect.y(0) + rect.height(750))(750) must be <= 749'



Either the validation or the docs are incorrect - which is it?

setScissorRect: bad docs or validation
 
 
Q