| // GENERATED FILE - DO NOT EDIT. |
| // Generated by gen_vk_internal_shaders.py. |
| // |
| // Copyright 2018 The ANGLE Project Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| // |
| // shaders/gen/Blit3DSrc.frag.00000002.inc: |
| // Pre-generated shader for the ANGLE Vulkan back-end. |
| |
| #pragma once |
| constexpr uint8_t kBlit3DSrc_frag_00000002[] = { |
| 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x5d,0x94,0x4b,0x68,0x5d,0x65, |
| 0x10,0xc7,0xbf,0xef,0x9c,0xfb,0x48,0x73,0x2f,0x36,0x21,0x9a,0xc6,0x98,0x67,0x5b, |
| 0xa2,0x36,0xa1,0x76,0xa1,0x62,0x10,0x45,0xa1,0xa0,0x8b,0x42,0xab,0x82,0xe9,0x22, |
| 0x9b,0x0b,0x76,0x61,0x40,0x85,0x28,0xdd,0x64,0x51,0xc1,0x08,0xdd,0x64,0xd1,0x4d, |
| 0x16,0x2e,0xea,0xa3,0xa5,0xd6,0x36,0x55,0xb4,0x2e,0x6c,0xdd,0x89,0xda,0xa2,0xc5, |
| 0x47,0x50,0xa2,0x0d,0x4a,0xd4,0x60,0xc0,0x17,0x01,0x5b,0xa2,0xb5,0x06,0x67,0xbe, |
| 0xf3,0x9b,0x76,0xbc,0x81,0xc9,0xb9,0xf3,0xff,0xcf,0xcc,0x7f,0xe6,0x3b,0xdf,0x9c, |
| 0x3c,0xdb,0x52,0x0d,0x21,0x86,0xd6,0xd0,0x12,0x46,0x62,0x48,0x7f,0xed,0x21,0x0b, |
| 0xfa,0xb3,0x16,0x2a,0xe9,0xf9,0xd0,0xae,0xc7,0x76,0x6d,0x7f,0xf6,0xb9,0x27,0xb6, |
| 0xdf,0x79,0xd7,0x0e,0xe5,0x6f,0x08,0x79,0x8a,0x53,0x6e,0xa3,0x78,0x25,0x79,0xaa, |
| 0x3d,0xd5,0x78,0xf2,0x69,0xc5,0x3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0x7d, |
| 0x9a,0x4e,0x0b,0x3a,0xfb,0x9d,0xce,0x86,0x58,0xe0,0xa6,0x53,0x77,0x3a,0xca,0xb5, |
| 0x8a,0xd5,0xa9,0xd5,0x8a,0xce,0x94,0xd3,0x31,0xae,0xee,0x74,0x36,0xa2,0x73,0xc0, |
| 0xe9,0xb4,0xc5,0x02,0x37,0x9d,0x0e,0xa7,0xa3,0x5c,0xbb,0x58,0x07,0xb5,0xda,0xd1, |
| 0x99,0x76,0x3a,0xc6,0x75,0x38,0x9d,0x4e,0x74,0x0e,0x3a,0x9d,0x4d,0xb1,0xc0,0x4d, |
| 0xa7,0xdb,0xe9,0x28,0xd7,0x25,0xd6,0x4d,0xad,0x2e,0x74,0x66,0x9c,0x8e,0x71,0xdd, |
| 0x4e,0xa7,0x17,0x9d,0x43,0x4e,0xa7,0x2f,0x16,0xb8,0xe9,0x0c,0x3a,0x1d,0xe5,0xfa, |
| 0xc5,0x06,0xa9,0xd5,0x8f,0xce,0xac,0xd3,0x31,0x4e,0x9f,0xff,0xca,0x56,0xde,0x23, |
| 0xf6,0x1f,0x52,0xc4,0x1f,0x8c,0xf8,0x0c,0x00,0x00 |
| }; |
| |
| // Generated from: |
| // |
| // #version 450 core |
| // |
| // #extension GL_GOOGLE_include_directive : require |
| // |
| // layout(set = 0, binding = 0)uniform utexture3D color; |
| // |
| // layout(location = 0)out uvec4 colorOut0; |
| // layout(location = 1)out uvec4 colorOut1; |
| // layout(location = 2)out uvec4 colorOut2; |
| // layout(location = 3)out uvec4 colorOut3; |
| // layout(location = 4)out uvec4 colorOut4; |
| // layout(location = 5)out uvec4 colorOut5; |
| // layout(location = 6)out uvec4 colorOut6; |
| // layout(location = 7)out uvec4 colorOut7; |
| // |
| // layout(set = 0, binding = 2)uniform sampler blitSampler; |
| // |
| // #line 1 "shaders/src/BlitResolve.inc" |
| // |
| // layout(push_constant)uniform PushConstants { |
| // |
| // vec2 offset; |
| // vec2 stretch; |
| // vec2 invSrcExtent; |
| // int srcLayer; |
| // int samples; |
| // float invSamples; |
| // |
| // int outputMask; |
| // |
| // bool flipX; |
| // bool flipY; |
| // bool rotateXY; |
| // } params; |
| // |
| // vec2 getSrcImageCoords() |
| // { |
| // |
| // vec2 srcImageCoords = vec2(gl_FragCoord . xy); |
| // |
| // srcImageCoords *= params . stretch; |
| // |
| // srcImageCoords -= params . offset; |
| // |
| // if(params . flipX) |
| // srcImageCoords . x = - srcImageCoords . x; |
| // if(params . flipY) |
| // srcImageCoords . y = - srcImageCoords . y; |
| // if(params . rotateXY) |
| // srcImageCoords . xy = srcImageCoords . yx; |
| // |
| // return srcImageCoords; |
| // } |
| // |
| // void broadcastColor(uvec4 colorValue) |
| // { |
| // |
| // if((params . outputMask &(1 << 0))!= 0) |
| // { |
| // colorOut0 = colorValue; |
| // } |
| // if((params . outputMask &(1 << 1))!= 0) |
| // { |
| // colorOut1 = colorValue; |
| // } |
| // if((params . outputMask &(1 << 2))!= 0) |
| // { |
| // colorOut2 = colorValue; |
| // } |
| // if((params . outputMask &(1 << 3))!= 0) |
| // { |
| // colorOut3 = colorValue; |
| // } |
| // if((params . outputMask &(1 << 4))!= 0) |
| // { |
| // colorOut4 = colorValue; |
| // } |
| // if((params . outputMask &(1 << 5))!= 0) |
| // { |
| // colorOut5 = colorValue; |
| // } |
| // if((params . outputMask &(1 << 6))!= 0) |
| // { |
| // colorOut6 = colorValue; |
| // } |
| // if((params . outputMask &(1 << 7))!= 0) |
| // { |
| // colorOut7 = colorValue; |
| // } |
| // } |
| // |
| // #line 58 "shaders/src/Blit3DSrc.frag" |
| // |
| // void main() |
| // { |
| // vec2 srcImageCoordsXY = getSrcImageCoords(); |
| // vec3 srcImageCoords = vec3(srcImageCoordsXY, params . srcLayer); |
| // |
| // uvec4 colorValue = texture(usampler3D(color, blitSampler), vec3((srcImageCoords . xy)* params . invSrcExtent, srcImageCoords . z)); |
| // |
| // broadcastColor(colorValue); |
| // } |