Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Kristian Arntzen <post@arntzen-software.no>2019-06-21 13:44:33 +0300
committerHans-Kristian Arntzen <post@arntzen-software.no>2019-06-21 13:54:08 +0300
commite2c95bdcbc054fb362ff39e78fbd216f1a91f7b6 (patch)
treee5f5f3c4d6c9b9aa618360649e0aca888f0520a3 /reference/shaders-msl/frag/separate-image-sampler-argument.frag
parenta1f7c8dc8ea2f94443951ee27003bffa562c1f13 (diff)
MSL: Rewrite how resource indices are fallback-assigned.
We used to use the Binding decoration for this, but this method is hopelessly broken. If no explicit MSL resource remapping exists, we remap automatically in a manner which should always "just work".
Diffstat (limited to 'reference/shaders-msl/frag/separate-image-sampler-argument.frag')
-rw-r--r--reference/shaders-msl/frag/separate-image-sampler-argument.frag2
1 files changed, 1 insertions, 1 deletions
diff --git a/reference/shaders-msl/frag/separate-image-sampler-argument.frag b/reference/shaders-msl/frag/separate-image-sampler-argument.frag
index c0c2ea11..46c0524a 100644
--- a/reference/shaders-msl/frag/separate-image-sampler-argument.frag
+++ b/reference/shaders-msl/frag/separate-image-sampler-argument.frag
@@ -15,7 +15,7 @@ float4 samp(thread const texture2d<float> t, thread const sampler s)
return t.sample(s, float2(0.5));
}
-fragment main0_out main0(texture2d<float> uDepth [[texture(1)]], sampler uSampler [[sampler(0)]])
+fragment main0_out main0(texture2d<float> uDepth [[texture(0)]], sampler uSampler [[sampler(0)]])
{
main0_out out = {};
out.FragColor = samp(uDepth, uSampler);