| // 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.00000001.inc: |
| // Pre-generated shader for the ANGLE Vulkan back-end. |
| |
| #pragma once |
| constexpr uint8_t kBlit3DSrc_frag_00000001[] = { |
| 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x5d,0x94,0x4b,0x68,0x5d,0x65, |
| 0x10,0xc7,0xbf,0xef,0x9c,0xfb,0x48,0x93,0x8b,0x4d,0x88,0xa6,0x31,0xde,0xbc,0xda, |
| 0x12,0xb5,0x09,0xb5,0x0b,0x15,0x83,0x28,0x0a,0x05,0x5d,0x14,0x5a,0x15,0x4c,0x17, |
| 0xd9,0x5c,0xb0,0x0b,0x03,0x2a,0x44,0xe9,0x26,0x8b,0x0a,0x46,0xe8,0x26,0x8b,0x6e, |
| 0xb2,0x70,0x51,0x1f,0x2d,0xb5,0xb6,0xa9,0xa2,0x75,0x61,0xeb,0x4e,0xd4,0x16,0x2d, |
| 0x3e,0x82,0x12,0x6d,0x50,0xa2,0x06,0x03,0xbe,0x08,0xd8,0x12,0xad,0x35,0x38,0xf3, |
| 0x9d,0xdf,0xb4,0xe3,0x0d,0x4c,0xce,0x9d,0xff,0x7f,0xbe,0xf9,0xcf,0x7c,0x67,0xe6, |
| 0xe4,0xd9,0x96,0x6a,0x08,0x31,0xb4,0x86,0x96,0x30,0x12,0x43,0xfa,0xeb,0x08,0x59, |
| 0xd0,0x9f,0x6d,0xa1,0x92,0x9e,0x0f,0xed,0x7a,0x6c,0xd7,0xf6,0x67,0x9f,0x7b,0x62, |
| 0xfb,0x9d,0x77,0xed,0x50,0xfe,0x86,0x90,0xa7,0x38,0xe5,0x36,0x8a,0x57,0x92,0xa7, |
| 0xda,0x53,0x8d,0x27,0x9f,0x56,0xbc,0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x9c,0x3e, |
| 0x4d,0xa7,0x05,0x9d,0xfd,0x4e,0x67,0x43,0x2c,0x70,0xd3,0xa9,0x39,0x1d,0xe5,0x5a, |
| 0xc5,0x6a,0xe4,0x6a,0x45,0x67,0xca,0xe9,0x18,0x57,0x73,0x3a,0x1b,0xd1,0x39,0xe0, |
| 0x74,0xda,0x63,0x81,0x9b,0x4e,0xa7,0xd3,0x51,0xae,0x43,0xac,0x93,0x5c,0x1d,0xe8, |
| 0x4c,0x3b,0x1d,0xe3,0x3a,0x9d,0x4e,0x17,0x3a,0x07,0x9d,0xce,0xa6,0x58,0xe0,0xa6, |
| 0xd3,0xe3,0x74,0x94,0xeb,0x16,0xeb,0x21,0x57,0x37,0x3a,0x33,0x4e,0xc7,0xb8,0x1e, |
| 0xa7,0xd3,0x8b,0xce,0x21,0xa7,0xd3,0x17,0x0b,0xdc,0x74,0x06,0x9d,0x8e,0x72,0xfd, |
| 0x62,0x83,0xe4,0xea,0x47,0x67,0xd6,0xe9,0x18,0xa7,0xcf,0x7f,0x65,0x2b,0xef,0x11, |
| 0xfb,0x0f,0x22,0xd8,0x03,0x22,0xf8,0x0c,0x00,0x00 |
| }; |
| |
| // Generated from: |
| // |
| // #version 450 core |
| // |
| // #extension GL_GOOGLE_include_directive : require |
| // |
| // layout(set = 0, binding = 0)uniform itexture3D color; |
| // |
| // layout(location = 0)out ivec4 colorOut0; |
| // layout(location = 1)out ivec4 colorOut1; |
| // layout(location = 2)out ivec4 colorOut2; |
| // layout(location = 3)out ivec4 colorOut3; |
| // layout(location = 4)out ivec4 colorOut4; |
| // layout(location = 5)out ivec4 colorOut5; |
| // layout(location = 6)out ivec4 colorOut6; |
| // layout(location = 7)out ivec4 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(ivec4 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); |
| // |
| // ivec4 colorValue = texture(isampler3D(color, blitSampler), vec3((srcImageCoords . xy)* params . invSrcExtent, srcImageCoords . z)); |
| // |
| // broadcastColor(colorValue); |
| // } |