Example application for subpasses in Vulkan.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789
  1. #version 450
  2. layout(input_attachment_index = 0, set = 0, binding = 0) uniform subpassInput inputColor;
  3. layout(location = 0) out vec4 outColor;
  4. void main() {
  5. outColor = vec4(subpassLoad(inputColor).rgb / 2.0, 1.0);
  6. }