@@ -619,8 +619,8 @@ template <typename CoordT> constexpr size_t coord_size() {
619
619
* another
620
620
*/
621
621
template <typename DataT, typename CoordT>
622
- DataT read_image (const unsampled_image_handle &imageHandle,
623
- const CoordT &coords) {
622
+ DataT read_image (const unsampled_image_handle &imageHandle [[maybe_unused]] ,
623
+ const CoordT &coords [[maybe_unused]] ) {
624
624
constexpr size_t coordSize = detail::coord_size<CoordT>();
625
625
static_assert (coordSize == 1 || coordSize == 2 || coordSize == 4 ,
626
626
" Expected input coordinate to be have 1, 2, or 4 components "
@@ -655,8 +655,8 @@ DataT read_image(const unsampled_image_handle &imageHandle,
655
655
* another
656
656
*/
657
657
template <typename DataT, typename CoordT>
658
- DataT read_image (const sampled_image_handle &imageHandle,
659
- const CoordT &coords) {
658
+ DataT read_image (const sampled_image_handle &imageHandle [[maybe_unused]] ,
659
+ const CoordT &coords [[maybe_unused]] ) {
660
660
constexpr size_t coordSize = detail::coord_size<CoordT>();
661
661
static_assert (coordSize == 1 || coordSize == 2 || coordSize == 4 ,
662
662
" Expected input coordinate to be have 1, 2, or 4 components "
@@ -686,8 +686,9 @@ DataT read_image(const sampled_image_handle &imageHandle,
686
686
* @return Mipmap image data with LOD filtering
687
687
*/
688
688
template <typename DataT, typename CoordT>
689
- DataT read_image (const sampled_image_handle &imageHandle, const CoordT &coords,
690
- const float level) {
689
+ DataT read_image (const sampled_image_handle &imageHandle [[maybe_unused]],
690
+ const CoordT &coords [[maybe_unused]],
691
+ const float level [[maybe_unused]]) {
691
692
constexpr size_t coordSize = detail::coord_size<CoordT>();
692
693
static_assert (coordSize == 1 || coordSize == 2 || coordSize == 4 ,
693
694
" Expected input coordinate to be have 1, 2, or 4 components "
@@ -718,8 +719,10 @@ DataT read_image(const sampled_image_handle &imageHandle, const CoordT &coords,
718
719
* @return Mipmap image data with anisotropic filtering
719
720
*/
720
721
template <typename DataT, typename CoordT>
721
- DataT read_image (const sampled_image_handle &imageHandle, const CoordT &coords,
722
- const CoordT &dX, const CoordT &dY) {
722
+ DataT read_image (const sampled_image_handle &imageHandle [[maybe_unused]],
723
+ const CoordT &coords [[maybe_unused]],
724
+ const CoordT &dX [[maybe_unused]],
725
+ const CoordT &dY [[maybe_unused]]) {
723
726
constexpr size_t coordSize = detail::coord_size<CoordT>();
724
727
static_assert (coordSize == 1 || coordSize == 2 || coordSize == 4 ,
725
728
" Expected input coordinate and gradient to have 1, 2, or 4 "
@@ -748,8 +751,9 @@ DataT read_image(const sampled_image_handle &imageHandle, const CoordT &coords,
748
751
* @param coords The coordinates at which to write image data
749
752
*/
750
753
template <typename DataT, typename CoordT>
751
- void write_image (const unsampled_image_handle &imageHandle,
752
- const CoordT &Coords, const DataT &Color) {
754
+ void write_image (const unsampled_image_handle &imageHandle [[maybe_unused]],
755
+ const CoordT &Coords [[maybe_unused]],
756
+ const DataT &Color [[maybe_unused]]) {
753
757
constexpr size_t coordSize = detail::coord_size<CoordT>();
754
758
static_assert (coordSize == 1 || coordSize == 2 || coordSize == 4 ,
755
759
" Expected input coordinate to be have 1, 2, or 4 components "
0 commit comments