Skip to content

Commit b024f65

Browse files
committed
#6
:)
1 parent e17539c commit b024f65

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/include/sndx/render/font.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,11 @@ namespace sndx::render {
9494

9595
template <class Packer = DefaultPacker> [[nodiscard]]
9696
Font<ImageAtlas<FT_ULong>> build(size_t dimConstraint, size_t padding = 1) const {
97+
#ifndef __APPLE__
9798
return build<Packer>(std::execution::par_unseq, dimConstraint, padding);
99+
#else
100+
return build<Packer>(dimConstraint, padding);
101+
#endif
98102
}
99103

100104
template <class TextureT, class Packer = DefaultPacker> [[nodiscard]]
@@ -106,7 +110,11 @@ namespace sndx::render {
106110

107111
template <class TextureT, class Packer = DefaultPacker> [[nodiscard]]
108112
auto buildTexture(size_t dimConstraint, size_t padding = 1, bool compress = false) {
113+
#ifndef __APPLE__
109114
return buildTexture<TextureT, Packer>(std::execution::par_unseq, dimConstraint, padding, compress);
115+
#else
116+
return buildTexture<TextureT, Packer>(dimConstraint, padding, compress);
117+
#endif
110118
}
111119
};
112120

src/include/sndx/render/image/imagedata.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ namespace sndx::render {
3535
auto asVecs = reinterpret_cast<const oldVec*>(m_data.data());
3636
auto newVecs = reinterpret_cast<newVec*>(data.data());
3737

38+
#ifndef __APPLE__
3839
std::transform(std::execution::par_unseq, asVecs, asVecs + pixels, newVecs, std::forward<Fn>(func));
40+
#else
41+
std::transform(asVecs, asVecs + pixels, newVecs, std::forward<Fn>(func));
42+
#endif
3943

4044
return ImageData{ m_width, m_height, n, std::move(data) };
4145
}

0 commit comments

Comments
 (0)