diff options
Diffstat (limited to '3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-msl/frag/sampler.frag')
-rw-r--r-- | 3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-msl/frag/sampler.frag | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-msl/frag/sampler.frag b/3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-msl/frag/sampler.frag index 86917ea080f..6484161b699 100644 --- a/3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-msl/frag/sampler.frag +++ b/3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-msl/frag/sampler.frag @@ -16,7 +16,8 @@ struct main0_in float2 vTex [[user(locn1)]]; }; -inline float4 sample_texture(thread const texture2d<float> tex, thread const sampler texSmplr, thread const float2& uv) +static inline __attribute__((always_inline)) +float4 sample_texture(thread const texture2d<float> tex, thread const sampler texSmplr, thread const float2& uv) { return tex.sample(texSmplr, uv); } |