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:
Diffstat (limited to 'reference/opt/shaders-msl/frag/array-of-texture-swizzle.msl2.argument.discrete.swizzle.frag')
-rw-r--r--reference/opt/shaders-msl/frag/array-of-texture-swizzle.msl2.argument.discrete.swizzle.frag34
1 files changed, 17 insertions, 17 deletions
diff --git a/reference/opt/shaders-msl/frag/array-of-texture-swizzle.msl2.argument.discrete.swizzle.frag b/reference/opt/shaders-msl/frag/array-of-texture-swizzle.msl2.argument.discrete.swizzle.frag
index d00acd7e..cc503e86 100644
--- a/reference/opt/shaders-msl/frag/array-of-texture-swizzle.msl2.argument.discrete.swizzle.frag
+++ b/reference/opt/shaders-msl/frag/array-of-texture-swizzle.msl2.argument.discrete.swizzle.frag
@@ -5,23 +5,6 @@
using namespace metal;
-struct spvDescriptorSetBuffer0
-{
- array<texture2d<float>, 4> uSampler0 [[id(0)]];
- array<sampler, 4> uSampler0Smplr [[id(4)]];
- constant uint* spvSwizzleConstants [[id(8)]];
-};
-
-struct main0_out
-{
- float4 FragColor [[color(0)]];
-};
-
-struct main0_in
-{
- float2 vUV [[user(locn0)]];
-};
-
template<typename T> struct spvRemoveReference { typedef T type; };
template<typename T> struct spvRemoveReference<thread T&> { typedef T type; };
template<typename T> struct spvRemoveReference<thread T&&> { typedef T type; };
@@ -82,6 +65,23 @@ inline T spvTextureSwizzle(T x, uint s)
return spvTextureSwizzle(vec<T, 4>(x, 0, 0, 1), s).x;
}
+struct spvDescriptorSetBuffer0
+{
+ array<texture2d<float>, 4> uSampler0 [[id(0)]];
+ array<sampler, 4> uSampler0Smplr [[id(4)]];
+ constant uint* spvSwizzleConstants [[id(8)]];
+};
+
+struct main0_out
+{
+ float4 FragColor [[color(0)]];
+};
+
+struct main0_in
+{
+ float2 vUV [[user(locn0)]];
+};
+
fragment main0_out main0(main0_in in [[stage_in]], constant spvDescriptorSetBuffer0& spvDescriptorSet0 [[buffer(0)]], constant uint* spvSwizzleConstants [[buffer(30)]], texture2d<float> uSampler1 [[texture(0)]], sampler uSampler1Smplr [[sampler(0)]])
{
main0_out out = {};