···5959#define RENDER_MAX_LAYERS (XRT_MAX_LAYERS)
60606161/*!
6262+ * The maximum number samplers per view that can be used by the compute shader
6363+ * for layer composition (layer.comp)
6464+ */
6565+#define RENDER_CS_MAX_SAMPLERS_PER_VIEW 2
6666+6767+/*!
6268 * Max number of images that can be given at a single time to the layer
6369 * squasher in a single dispatch.
6470 */
6565-#define RENDER_MAX_IMAGES_SIZE (RENDER_MAX_LAYERS * XRT_MAX_VIEWS)
6666-#define RENDER_MAX_IMAGES_COUNT(RENDER_RESOURCES) (RENDER_MAX_LAYERS * RENDER_RESOURCES->view_count)
7171+#define RENDER_MAX_IMAGES_SIZE (RENDER_MAX_LAYERS * RENDER_CS_MAX_SAMPLERS_PER_VIEW)
67726873/*!
6974 * Maximum number of times that the layer squasher shader can run per