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.00000002.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageClear_frag_00000002[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x2d,0x50,0xbb,0x0a,0xc2,0x40,
0x10,0x5c,0xef,0xcc,0x5b,0x13,0xa3,0xa8,0x5d,0x88,0xa4,0x14,0x82,0x85,0x11,0x41,
0x14,0xac,0x62,0x91,0xce,0x2f,0x10,0x6c,0x2c,0xb4,0xd1,0x8f,0xb7,0x11,0x9c,0xbd,
0xcc,0xc1,0xee,0xdc,0xce,0xce,0x3e,0xee,0xac,0xa9,0x02,0x91,0x81,0xc4,0x12,0xca,
0x54,0xfa,0x93,0x8b,0x01,0x23,0x92,0x88,0xef,0xb0,0xed,0xae,0x5d,0xfd,0xfe,0xdc,
0xeb,0x6d,0xb3,0xd1,0x7c,0x2a,0xd6,0xe9,0x34,0x97,0x41,0x33,0x04,0xaa,0x3d,0x6f,
0x8f,0x97,0xf2,0x11,0x6c,0x02,0x8d,0x72,0x81,0xd6,0xe3,0xa6,0x5c,0x01,0x33,0xb0,
0x8b,0x78,0x98,0xd7,0x9f,0x8a,0xd8,0x42,0x1f,0x33,0x3f,0x83,0x57,0x5c,0x81,0xb3,
0xe4,0x16,0xb8,0xf9,0xc0,0x12,0xb6,0x44,0x3f,0xed,0xeb,0x73,0x6e,0x09,0x1f,0x02,
0x2d,0xe7,0x1d,0x18,0x47,0xe4,0x0a,0xf6,0x0e,0xa8,0x4d,0x98,0x8b,0xa9,0xd5,0x78,
0x44,0x6e,0x8e,0x78,0xcc,0x39,0xfa,0xbe,0x35,0xe3,0x94,0x7b,0x6a,0x7d,0x46,0xad,
0xf6,0xdb,0xe1,0x2d,0x86,0x7b,0x08,0xe7,0x7d,0xc1,0x78,0xc0,0x33,0x7c,0xe6,0xfe,
0xa2,0xef,0xaf,0x3d,0x8e,0xdc,0x3d,0x27,0x7f,0x42,0x45,0xc4,0xf8,0x87,0x89,0x7b,
0xd8,0x1f,0xf3,0x4a,0xaf,0x14,0x94,0x01,0x00,0x00
};
// Generated from:
//
// #version 450 core
//
// layout(push_constant)uniform PushConstants {
// vec4 clearColor;
// } params;
//
// layout(location = 2)out vec4 colorOut;
//
// void main()
// {
// colorOut = params . clearColor;
// }