+ * @brief Pushes Shader to the discard queue
+ *
+ * Function is called from the UniquePtr custom deleter.
+ *
+ * @param[in] program Pointer to the Shader
+ */
+ void DiscardResource(GLES::Shader* shader)
+ {
+ mDiscardShaderQueue.push(shader);
+ }
+
+ /**
+ * @brief Pushes CommandBuffer to the discard queue
+ *
+ * Function is called from the UniquePtr custom deleter.
+ *
+ * @param[in] program Pointer to the CommandBuffer
+ */
+ void DiscardResource(GLES::CommandBuffer* commandBuffer)
+ {
+ mDiscardCommandBufferQueue.push(commandBuffer);
+ }
+
+ /**
+ * @brief Pushes Sampler to the discard queue
+ *
+ * Function is called from the UniquePtr custom deleter.
+ *
+ * @param[in] program Pointer to the Sampler
+ */
+ void DiscardResource(GLES::Sampler* sampler)
+ {
+ mDiscardSamplerQueue.push(sampler);
+ }
+
+ /**