diff options
Diffstat (limited to '3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-msl-no-opt/frag/texture-access.swizzle.frag')
-rw-r--r-- | 3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-msl-no-opt/frag/texture-access.swizzle.frag | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-msl-no-opt/frag/texture-access.swizzle.frag b/3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-msl-no-opt/frag/texture-access.swizzle.frag index 389b3a68a6d..c31d5d7dca0 100644 --- a/3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-msl-no-opt/frag/texture-access.swizzle.frag +++ b/3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-msl-no-opt/frag/texture-access.swizzle.frag @@ -6,7 +6,8 @@ using namespace metal; // Returns 2D texture coords corresponding to 1D texel buffer coords -inline uint2 spvTexelBufferCoord(uint tc) +static inline __attribute__((always_inline)) +uint2 spvTexelBufferCoord(uint tc) { return uint2(tc % 4096, tc / 4096); } |