MTLLoadActionClear does not respect ScissorRect

In OpenGL, If Scissor test is enabled then glClear() call only clears the Scissor rect region. and does not clear whole texture.

From documentation of Metal, MTLLoadActionClear, It seems like Metal does render pass does not respect scissor rect while clearing the rtt.

Is this understanding correct ? Please suggest how to achieve the OpenGL like functionality. in this respect.

Clears wipe the whole texture out. They have since DX10, and Metal is no different. You need to draw rectangles to color, depth, or stencil for any kinds of partial clears. The whole point is to do a fast clear of the content where the hw doesn't even touch pixels. If it had to scissor test then that doesn't work.

removing comment

MTLLoadActionClear does not respect ScissorRect
 
 
Q