• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// GENERATED FILE - DO NOT EDIT.
2// Generated by gen_vk_internal_shaders.py.
3//
4// Copyright 2018 The ANGLE Project Authors. All rights reserved.
5// Use of this source code is governed by a BSD-style license that can be
6// found in the LICENSE file.
7//
8// shaders/gen/BlitResolve.frag.00000015.inc:
9//   Pre-generated shader for the ANGLE Vulkan back-end.
10
11#pragma once
12constexpr uint8_t kBlitResolve_frag_00000015[] = {
13    0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x7d,0x94,0xdb,0x4b,0x54,0x51,
14    0x14,0xc6,0xb7,0x73,0x74,0x46,0xbb,0x69,0xd8,0xa8,0x69,0x84,0x65,0x46,0x37,0x44,
15    0xb0,0x22,0x88,0x84,0x1e,0xa2,0xc0,0x31,0x2f,0x33,0x9a,0x99,0x35,0x99,0x33,0x3a,
16    0xa6,0x69,0xa8,0x0f,0xd1,0x85,0x08,0x33,0x29,0xe9,0x22,0x95,0x95,0x14,0x53,0x49,
17    0x3e,0x14,0x65,0xfd,0x71,0xd1,0x05,0x82,0xd6,0xda,0xe7,0xb7,0x63,0x33,0x0f,0x1d,
18    0xd8,0xec,0xb3,0xbe,0xf5,0xad,0xcb,0xb7,0x6f,0x41,0xa4,0x21,0x66,0x4c,0x91,0x59,
19    0x67,0x4a,0xcd,0x37,0x13,0x7e,0x9b,0x4d,0x44,0x90,0x70,0x7e,0x5e,0x69,0xc4,0x57,
20    0x66,0x92,0x9d,0xbd,0xe9,0x13,0x7d,0xa9,0xf4,0x74,0x6e,0x30,0x93,0x9d,0x4a,0x4f,
21    0xcf,0x64,0x27,0x86,0x46,0xc7,0xd3,0xd9,0x6b,0x57,0x27,0xa7,0x66,0x84,0xbb,0xde,
22    0x44,0x6d,0xcc,0xc9,0x44,0x32,0xd1,0x34,0x3d,0x93,0x69,0x3a,0x78,0xa8,0x59,0x73,
23    0x6d,0x32,0x81,0xcd,0xa9,0xbe,0x72,0xa9,0x51,0x2c,0xb3,0x8e,0x2b,0x83,0xa3,0x13,
24    0xc6,0x62,0xc6,0x24,0x64,0xe4,0x64,0x54,0x08,0x57,0x7d,0x31,0xef,0x7f,0x83,0xe6,
25    0x94,0xbf,0x72,0x5b,0x23,0xe4,0x9f,0x32,0x25,0xa6,0x9a,0x5e,0x1b,0x98,0x1d,0x56,
26    0x04,0x56,0xea,0x61,0x11,0xb0,0x0a,0x0f,0x0b,0xc0,0x6a,0x3c,0xac,0x18,0x6c,0x9b,
27    0x87,0x95,0x80,0xd5,0x7b,0x58,0x14,0x6c,0x97,0x87,0xc5,0xc0,0xf6,0x78,0x58,0x29,
28    0xd8,0x01,0x0f,0x2b,0x03,0x6b,0xb6,0xba,0x82,0x7f,0xfd,0xa9,0xc6,0x04,0x1a,0xab,
29    0xb0,0x3b,0x64,0xde,0x89,0x3e,0x67,0xef,0xf0,0xec,0x64,0x81,0x3f,0x89,0xdf,0xe5,
30    0xcb,0x91,0x6f,0xa9,0x32,0xb4,0xc7,0x0a,0xf8,0x63,0xf0,0x75,0xcd,0x2a,0x25,0x2a,
31    0x62,0xed,0xc0,0xae,0x4d,0xc4,0xf6,0x11,0x58,0xad,0xaa,0xbd,0x5a,0xf8,0x31,0xb4,
32    0x47,0xb0,0x37,0x62,0x17,0x5b,0x4e,0xb1,0xec,0x75,0x98,0x4b,0xf1,0xa3,0xd8,0xe5,
33    0x60,0x71,0xb1,0xe3,0xe4,0x72,0x76,0x15,0xb6,0x7e,0xdb,0x65,0xa7,0xdd,0x3a,0xba,
34    0x11,0x67,0x44,0x99,0xab,0xbc,0xa1,0xf5,0x6a,0x58,0xcf,0x6a,0xea,0xa9,0xbd,0x15,
35    0x6c,0x3f,0xf5,0x6a,0xa9,0xa7,0xfc,0x3a,0x7c,0x31,0xcf,0xef,0xea,0x3b,0xbb,0x11,
36    0xbf,0xf2,0x77,0xc3,0xd7,0x7a,0x5b,0x44,0xf5,0x5e,0x78,0x6a,0xef,0x2b,0x88,0x6b,
37    0x61,0xbf,0x9d,0xdd,0x4a,0xac,0xe6,0x69,0xe3,0xbc,0x45,0xe9,0xb3,0x8d,0x33,0x1f,
38    0xd8,0x7e,0xcb,0x4c,0x3b,0xbe,0x22,0x72,0x16,0xce,0x9a,0xe3,0x34,0xff,0xed,0xe4,
39    0x50,0xbb,0x03,0xac,0x56,0x7a,0xeb,0x82,0xd7,0x0d,0xd6,0x05,0x4f,0xed,0x24,0x58,
40    0x9d,0x54,0xec,0x21,0x87,0xeb,0xb3,0x8f,0xfd,0x74,0xf6,0x00,0x7d,0x69,0xae,0xf3,
41    0x68,0x88,0xb3,0xdf,0x83,0xf4,0xe9,0xfc,0x23,0xfc,0xc7,0xa9,0x35,0xc2,0x3d,0x76,
42    0xba,0x46,0x59,0xbb,0xff,0xe9,0xba,0xcc,0xff,0x28,0x39,0xd4,0x1e,0xf3,0xfa,0x9d,
43    0xc0,0xa7,0xf5,0xaf,0x93,0x4f,0xcf,0xdb,0x61,0xb9,0x4f,0x11,0xfe,0x0d,0x35,0x7f,
44    0x0a,0xa2,0xf7,0xf5,0x18,0x67,0xf3,0x0e,0xe7,0xaf,0x4b,0x50,0xed,0x7b,0x16,0xcc,
45    0x78,0xd8,0x5d,0x30,0xed,0xa9,0x53,0x30,0xdd,0xfb,0x39,0xb8,0xea,0x3b,0x2e,0x98,
46    0x9e,0x9b,0x7b,0x9c,0xad,0x5a,0xf2,0x2b,0x6f,0x1e,0x7c,0x8e,0xb8,0xfb,0xc4,0xce,
47    0x7b,0x71,0x0f,0x88,0xab,0xf7,0xe2,0x16,0xc0,0x67,0x89,0x7b,0x48,0xec,0x02,0x71,
48    0x7a,0xee,0x1e,0x11,0xd7,0x48,0x9c,0xea,0x7e,0x0c,0xfe,0x49,0x38,0x7a,0x16,0x9f,
49    0x80,0xe9,0x59,0xfc,0x21,0x2b,0xb0,0x84,0xb6,0xdf,0xc2,0x57,0xdf,0xa2,0xde,0x7d,
50    0xd6,0x65,0xd1,0xd3,0xfc,0x94,0x9a,0xfa,0xdd,0x16,0xae,0x62,0xcf,0xc0,0xbb,0xc5,
51    0xd2,0x9e,0x3e,0x82,0x39,0xde,0x2f,0xc9,0xe1,0x72,0xe9,0xfc,0x5d,0x58,0xca,0xfb,
52    0x02,0xa7,0x84,0x98,0x45,0x4f,0xc3,0x0b,0x34,0xb4,0x78,0x1a,0x5e,0x82,0x3b,0x0d,
53    0xaf,0xc0,0x9c,0x86,0xbc,0xa7,0x41,0x7d,0xcb,0x32,0xf2,0xd4,0x5d,0xf6,0x34,0xbc,
54    0xa6,0x76,0x91,0xa7,0xe1,0x0d,0xb8,0xd3,0xf0,0x19,0xcc,0xf1,0x54,0x83,0xcb,0x95,
55    0xf7,0x34,0xac,0xc1,0x59,0x22,0x66,0xd9,0xd3,0xf0,0x16,0x0d,0xad,0x9e,0x86,0x77,
56    0xe0,0x4e,0xc3,0x7b,0x30,0xa7,0x61,0xd5,0xd3,0xa0,0xbe,0x15,0x19,0xab,0xd4,0x5d,
57    0xb1,0xf7,0x36,0xac,0xfb,0x81,0xda,0x6b,0xde,0x9d,0xd0,0x1e,0x1d,0x77,0xd5,0xeb,
58    0xf1,0x2b,0xbc,0x3c,0x71,0x2b,0xf4,0xd3,0x6e,0xcf,0x6d,0xf8,0x16,0xa8,0xad,0xf7,
59    0x3e,0xc5,0x9d,0xef,0x95,0xfe,0x7a,0xec,0x1c,0x72,0x52,0xde,0xb9,0x3c,0x8b,0xae,
60    0x3e,0xef,0x5c,0xf6,0x83,0xbb,0xf3,0x7c,0x8e,0xba,0xfd,0xc4,0xe9,0x7b,0x70,0x81,
61    0xb8,0x01,0xe2,0xf4,0xee,0xa7,0xc1,0x27,0xd9,0x87,0x8b,0x60,0x6e,0xaf,0x2e,0x91,
62    0xcb,0xbf,0x77,0x43,0x60,0xe1,0xbd,0x8b,0xda,0xb7,0x25,0x03,0x77,0x88,0x1c,0x67,
63    0x84,0xab,0xf7,0x38,0x8b,0x86,0x8c,0x17,0x3f,0x0c,0x6e,0xec,0xde,0x04,0xf6,0x3d,
64    0x1d,0xa6,0x27,0x7d,0x2f,0xc6,0x79,0x47,0x74,0x0d,0x26,0x6c,0x6f,0x21,0x96,0x22,
65    0xaf,0xbe,0x25,0x37,0xc0,0x5d,0x5e,0xdd,0xdb,0x9b,0xe0,0xc6,0xfe,0x87,0xfa,0x6e,
66    0x81,0x6b,0x9d,0x1c,0xf6,0x1f,0xe9,0xfc,0x88,0x8c,0xbf,0x4c,0x21,0xcd,0x12,0x40,
67    0x09,0x00,0x00
68};
69
70// Generated from:
71//
72// #version 450 core
73//
74// #extension GL_GOOGLE_include_directive : require
75//
76// #extension GL_ARB_shader_stencil_export : require
77//
78// layout(set = 0, binding = 0)uniform texture2DArray depth;
79//
80// layout(set = 0, binding = 1)uniform utexture2DArray stencil;
81//
82// layout(set = 0, binding = 2)uniform sampler blitSampler;
83//
84// #line 1 "shaders/src/BlitResolve.inc"
85//
86// layout(push_constant)uniform PushConstants {
87//
88//             vec2 offset;
89//     vec2 stretch;
90//     vec2 invSrcExtent;
91//     int srcLayer;
92//     int samples;
93//     float invSamples;
94//
95//     int outputMask;
96//
97//     bool flipX;
98//     bool flipY;
99//     bool rotateXY;
100// } params;
101//
102//         vec2 getSrcImageCoords()
103// {
104//
105//             vec2 srcImageCoords = vec2(gl_FragCoord . xy);
106//
107//     srcImageCoords *= params . stretch;
108//
109//     srcImageCoords -= params . offset;
110//
111//     if(params . flipX)
112//         srcImageCoords . x = - srcImageCoords . x;
113//     if(params . flipY)
114//         srcImageCoords . y = - srcImageCoords . y;
115//     if(params . rotateXY)
116//         srcImageCoords . xy = srcImageCoords . yx;
117//
118//     return srcImageCoords;
119// }
120//
121// #line 123 "shaders/src/BlitResolve.frag"
122//
123// void main()
124// {
125//             vec2 srcImageCoords = getSrcImageCoords();
126//
127//     gl_FragDepth = texture(sampler2DArray(depth, blitSampler), vec3(srcImageCoords * params . invSrcExtent, params . srcLayer)). x;
128//
129//     gl_FragStencilRefARB = int(texture(usampler2DArray(stencil, blitSampler), vec3(srcImageCoords * params . invSrcExtent, params . srcLayer)). x);
130//
131// }
132