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.0000000A.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageClear_frag_0000000A[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x2d,0x50,0xc1,0x0a,0x82,0x40,
0x10,0x9d,0x76,0xd3,0x75,0xb5,0x4c,0x89,0xe8,0x26,0x86,0xc7,0x40,0x3a,0x54,0x08,
0x51,0xd0,0xc9,0x0e,0xde,0xfa,0x82,0xa0,0x4b,0x87,0xba,0xd4,0xc7,0x77,0x09,0x7a,
0xa3,0x6f,0x61,0xf6,0xed,0xbc,0x79,0xf3,0x66,0xd4,0x9a,0xca,0x89,0x8c,0x24,0x96,
0x48,0x72,0x19,0x4e,0x2e,0x06,0x8c,0x48,0x22,0x61,0x8f,0x6d,0x77,0xed,0xea,0xf7,
0xe7,0x5e,0x6f,0x77,0x1b,0xad,0xa7,0x62,0x7b,0x9d,0xd6,0x66,0xd0,0x8c,0x81,0x1a,
0xcf,0xdb,0xe3,0xa5,0xbc,0x47,0x64,0xd0,0x28,0xe7,0xb4,0x1f,0x2f,0xe5,0x0a,0x84,
0x41,0x5c,0x24,0xc0,0xbc,0xe1,0x54,0xc4,0x16,0xfa,0x98,0xf5,0x39,0x6e,0xc5,0x15,
0x38,0x4b,0x6e,0x01,0x8f,0x10,0x58,0x72,0xee,0x12,0xb9,0x7a,0x87,0x9c,0x5d,0xe2,
0x8e,0x80,0x96,0x33,0x0f,0xcc,0x3d,0xb9,0x82,0xfe,0x8e,0xda,0x84,0xb5,0x98,0x5a,
0xcd,0x27,0xe4,0xd6,0x9c,0x35,0xe5,0x6e,0xaa,0x4f,0x59,0xd3,0xfe,0x3d,0xf6,0x37,
0x9c,0x2b,0xf4,0xff,0x82,0x09,0x80,0x67,0xdc,0x69,0xff,0x5f,0x06,0x3f,0xf5,0x38,
0x72,0xd7,0x8c,0xfc,0x09,0x1d,0x9e,0xf9,0x0f,0x5f,0xd3,0x20,0xfe,0x80,0xb3,0xa0,
0x1a,0x88,0x01,0x00,0x00
};
// Generated from:
//
// #version 450 core
//
// layout(push_constant)uniform PushConstants {
// ivec4 clearColor;
// } params;
//
// layout(location = 2)out ivec4 colorOut;
//
// void main()
// {
// colorOut = params . clearColor;
// }