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

subpass-input.decoration-binding.ios.framebuffer-fetch.msl2.argument.frag « frag « shaders-msl-no-opt - github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 671a4d1b416ad2be53acdafa89bfaa337aeaf029 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#version 450

layout(set = 0, binding = 10, input_attachment_index = 1) uniform subpassInput uSub;
layout(location = 0) out vec4 FragColor;

layout(set = 0, binding = 9) uniform texture2D uTex;
layout(set = 0, binding = 8) uniform sampler uSampler;

void main()
{
	FragColor = subpassLoad(uSub) + texture(sampler2D(uTex, uSampler), vec2(0.5));
}