diff options
Diffstat (limited to '3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-msl/vert/texture_buffer.vert')
-rw-r--r-- | 3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-msl/vert/texture_buffer.vert | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-msl/vert/texture_buffer.vert b/3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-msl/vert/texture_buffer.vert index 677a2f8fdd6..3b3d92b5654 100644 --- a/3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-msl/vert/texture_buffer.vert +++ b/3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-msl/vert/texture_buffer.vert @@ -11,7 +11,8 @@ struct main0_out }; // 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); } |