Hash :
36a97db1
Author :
Date :
2020-07-02T23:29:45
Vulkan: Compress internal shaders Shaves ~200KB in binary size. The compressed SPIR-V blobs are in most cases a little smaller than 1/3 of the original size. The internal shader blobs at this point take ~100KB. Bug: angleproject:2022 Change-Id: I1a2cec073cb1f330632c8dce7a550a0cca1e373d Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2280945 Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org> Reviewed-by: Tim Van Patten <timvp@google.com> Reviewed-by: Jamie Madill <jmadill@chromium.org>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166
// GENERATED FILE - DO NOT EDIT.
// Generated by gen_vk_internal_shaders.py.
//
// Copyright 2020 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/BlitResolve.frag.00000005.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kBlitResolve_frag_00000005[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x5d,0x94,0xdb,0x4f,0x94,0x67,
0x10,0xc6,0xdf,0xdd,0x6f,0xd9,0x45,0x8b,0x96,0x82,0x08,0xb5,0xe2,0x89,0xaa,0x05,
0x5b,0xb2,0x6d,0xd9,0xc6,0x86,0xa2,0xa8,0x89,0x78,0x58,0x6d,0x11,0x0f,0xf5,0x5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,0x4d,0x38,0x9d,0x6b,0xe8,
0x94,0x9d,0xce,0x75,0x70,0xd3,0x99,0x72,0x3a,0xca,0xdd,0x88,0xf7,0x30,0xad,0x75,
0x03,0x9d,0x69,0xa7,0x63,0xdc,0x94,0xd3,0xb9,0x85,0xce,0x4d,0xa7,0x73,0x1b,0xdc,
0x74,0x66,0x9c,0x8e,0x72,0x77,0xc4,0x66,0xa8,0x75,0x07,0x9d,0x59,0xa7,0x63,0xdc,
0x8c,0xd3,0xb9,0x87,0xce,0x5d,0xa7,0x73,0x1f,0xdc,0x74,0xe6,0x9c,0x8e,0x72,0x0f,
0xc4,0xe6,0xa8,0xf5,0x00,0x9d,0x79,0xa7,0x63,0xdc,0x9c,0xd3,0x79,0x84,0xce,0x43,
0xa7,0xf3,0x18,0xdc,0x74,0x16,0x9c,0x8e,0x72,0x4f,0xc4,0x16,0xa8,0xf5,0x04,0x9d,
0x45,0xa7,0x63,0xdc,0x82,0xd3,0xf9,0x15,0x9d,0xa7,0x4e,0xe7,0x19,0xb8,0xe9,0xbc,
0x70,0x3a,0xca,0x3d,0x17,0x7b,0x41,0xad,0xe7,0xe8,0x2c,0x39,0x1d,0xe3,0xf4,0xfb,
0x9f,0xdc,0xca,0xed,0x62,0xff,0x03,0x55,0xa5,0x70,0x23,0x9c,0x0c,0x00,0x00
};
// Generated from:
//
// #version 450 core
//
// 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;
//
// layout(set = 0, binding = 0)uniform itexture2DArray 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;
//
// void main()
// {
//
// 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;
//
// ivec4 colorValue = texture(isampler2DArray(color, blitSampler), vec3(srcImageCoords * params . invSrcExtent, params . srcLayer));
//
// 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;
// }
//
// }