Skip to content

Commit ace4230

Browse files
committed
8261650: Add a comment with details for MTLVC_MAX_INDEX
Reviewed-by: jdv, avu, prr
1 parent 2939553 commit ace4230

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLVertexCache.h

+8-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,14 @@
3030
#include "fontscalerdefs.h"
3131

3232
/**
33-
* Constants that control the size of the vertex cache.
33+
* The max size of the vertex cache.
34+
*
35+
* Note:
36+
* This is the max number of vertices (of struct J2DVertex - 16 bytes)
37+
* that can be accommodated in 4KB.
38+
*
39+
* [MTLRenderCommandEncoder setVertexBytes] expects the data size
40+
* to be less than or equal to 4KB.
3441
*/
3542
#define MTLVC_MAX_INDEX 250
3643

0 commit comments

Comments
 (0)