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.00000004.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageClear_frag_00000004[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x2d,0x50,0xbb,0x0a,0xc2,0x40,
0x10,0x5c,0x13,0xf3,0x56,0x63,0x14,0xb5,0x0b,0x91,0x94,0x42,0xb0,0x50,0x11,0x44,
0xc1,0x2a,0x16,0xe9,0xfc,0x02,0xc1,0xc6,0x42,0x1b,0xfd,0x78,0x1b,0xc1,0x99,0x64,
0x0e,0x76,0xe7,0x76,0x6e,0x6e,0x76,0xef,0x5c,0xa7,0x0c,0xcc,0x7a,0x16,0x5b,0x68,
0x13,0xeb,0x56,0x66,0x0e,0x18,0xb3,0xc4,0xfc,0x16,0xeb,0xe6,0xda,0x54,0xef,0xcf,
0xbd,0xda,0x6c,0xd7,0x3c,0x1f,0x99,0xdb,0xea,0x78,0x96,0x42,0xd3,0x07,0x32,0x9e,
0xb7,0xc7,0x8b,0x7c,0x84,0x18,0x43,0x43,0x2e,0xe0,0x7d,0xec,0xc8,0xe5,0xd2,0x5d,
0xcc,0x43,0xbf,0x6e,0x95,0xc2,0x1a,0x7a,0x72,0x0e,0x62,0x8a,0x4c,0x5c,0x82,0x73,
0xc5,0xcd,0xb1,0xf3,0x81,0x05,0x62,0x01,0x17,0xfa,0xfa,0xf2,0x2b,0x90,0x43,0xa0,
0xab,0x7e,0x07,0xd5,0x91,0xb8,0x5c,0xde,0x81,0xb4,0x89,0xce,0x62,0x69,0x59,0x0f,
0xc4,0xcd,0x50,0x0f,0xd5,0x87,0xef,0x5b,0xa9,0x1e,0x69,0x4e,0xde,0x4f,0xa5,0xa5,
0xdf,0x0e,0x6f,0x71,0x34,0x87,0xa9,0xdf,0x17,0x8c,0x07,0x3c,0x23,0xa7,0xed,0x5f,
0x74,0xfe,0xf4,0x38,0x6a,0xf6,0x4c,0xfc,0x09,0x37,0x22,0xd5,0x3f,0x74,0xdc,0x23,
0xfe,0x5e,0xed,0xc1,0xc1,0x94,0x01,0x00,0x00
};
// Generated from:
//
// #version 450 core
//
// layout(push_constant)uniform PushConstants {
// vec4 clearColor;
// } params;
//
// layout(location = 4)out vec4 colorOut;
//
// void main()
// {
// colorOut = params . clearColor;
// }