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
// 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/ImageClear.frag.00000005.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageClear_frag_00000005[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x2d,0x50,0xbd,0x0a,0xc2,0x60,
0x10,0x3b,0x5b,0xed,0xaf,0xb6,0x56,0x51,0xb7,0x52,0xe9,0x28,0x14,0x07,0x15,0x41,
0x14,0x9c,0xea,0xd0,0xcd,0x27,0x10,0x5c,0x1c,0x74,0xd1,0x87,0x77,0x11,0x4c,0xda,
0x14,0x72,0xf7,0x5d,0x2e,0xf7,0x57,0xd7,0x29,0x7d,0xb3,0x9e,0x45,0x16,0xd8,0xc4,
0xba,0x2f,0x33,0x07,0x8c,0x59,0x6c,0x5e,0xeb,0xeb,0xe6,0xda,0x54,0xef,0xcf,0xbd,
0xda,0x6c,0xd7,0xcc,0x27,0xe6,0xb6,0x3a,0xe6,0x52,0x68,0xfa,0xf0,0xc4,0xf3,0xf6,
0x78,0x91,0x0f,0x81,0x31,0x34,0xe4,0x7c,0xd6,0xe3,0x45,0x2e,0x07,0x06,0xc0,0x05,
0x36,0xd2,0xac,0x52,0xbe,0x86,0x9e,0x9c,0x03,0x4c,0x61,0xe9,0x97,0xe0,0x5c,0x71,
0x73,0xbc,0x3c,0xf8,0x02,0x58,0xa0,0x1f,0xfb,0x7a,0x9a,0x5b,0xc0,0x06,0xf0,0xae,
0xe6,0x1d,0x14,0x87,0xe2,0x72,0xf5,0xf6,0xa5,0x8d,0x95,0x8b,0xa4,0x65,0x3c,0x14,
0x37,0x43,0x3c,0xd2,0x1c,0xde,0xb7,0x52,0x9c,0x68,0x4f,0xd6,0xa7,0xd2,0xb2,0xdf,
0x0e,0xb7,0x38,0xda,0xc3,0x34,0xef,0x0b,0x86,0x77,0x9e,0x61,0xd3,0xf6,0x5f,0x74,
0xfd,0xd9,0xe3,0xa8,0xdd,0x33,0xf1,0x27,0x54,0x84,0x8a,0x7f,0x98,0xb8,0x07,0xfe,
0x33,0x5f,0x14,0x0a,0x94,0x01,0x00,0x00
};
// Generated from:
//
// #version 450 core
//
// layout(push_constant)uniform PushConstants {
// vec4 clearColor;
// } params;
//
// layout(location = 5)out vec4 colorOut;
//
// void main()
// {
// colorOut = params . clearColor;
// }