Source code
Revision control
Copy as Markdown
Other Tools
// GENERATED FILE - DO NOT EDIT.
// Generated by gen_vk_internal_shaders.py.
//
// Copyright 2018 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/BlitResolveStencilNoExport.comp.00000001.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kBlitResolveStencilNoExport_comp_00000001[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x6d,0x96,0x4d,0x6c,0x55,0x45,
0x14,0xc7,0xef,0x7b,0xaf,0xbc,0x27,0x0f,0xdb,0x5a,0x6c,0x45,0x93,0x16,0xa8,0x25,
0x45,0x29,0x01,0x4c,0x5e,0x45,0x83,0x85,0x1a,0x4d,0xc0,0x16,0x95,0x8f,0x36,0xae,
0x5a,0x23,0xd0,0x05,0x8b,0x7e,0x24,0x10,0x6d,0x93,0x8a,0xb4,0xc1,0x76,0x21,0x6a,
0x1b,0xc4,0xa8,0xc1,0x48,0x5c,0xd0,0x20,0x21,0x86,0x08,0x95,0x85,0x62,0x62,0x28,
0xe0,0x46,0xf7,0xac,0xd8,0xb0,0x31,0x71,0x87,0x16,0x5a,0xa4,0x9e,0xff,0xdc,0xdf,
0xe8,0x49,0xe3,0x4d,0x26,0x73,0xcf,0xff,0x7c,0xcc,0xf9,0x9f,0x39,0x33,0xf7,0xe6,
0xb2,0x0d,0x85,0x24,0xc9,0x24,0xcb,0x92,0x87,0x92,0x42,0x26,0x09,0x4f,0x55,0x92,
0x4d,0xf4,0xba,0x2c,0xc9,0x87,0x79,0xfb,0xce,0xbd,0x3b,0x37,0x1c,0x3a,0x7c,0x60,
0x43,0xa9,0x79,0x93,0xf4,0x15,0x49,0x2e,0xd8,0x49,0x57,0x69,0x36,0x4b,0x6c,0x2e,
0xb3,0xd1,0xfb,0xd6,0xc1,0x3e,0xe1,0xe5,0x36,0x1e,0x31,0xbc,0x2c,0x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0x6c,0x26,0x6c,0x4c,0xe2,
0x3f,0x41,0x7e,0xfa,0x1f,0xf8,0x94,0x7f,0x81,0x37,0x2d,0x9e,0xfe,0x03,0x3e,0x07,
0x5b,0xe0,0xcc,0x97,0xa8,0x55,0x31,0x7c,0x2b,0x52,0x7d,0x12,0xbe,0xdb,0x29,0xf6,
0x25,0xf8,0x29,0xbe,0x85,0xe2,0xfc,0x15,0x3d,0xa6,0xff,0x9c,0xab,0xd8,0x9d,0xc6,
0x56,0xba,0x19,0xb0,0xaf,0xe9,0xe3,0xd3,0xf0,0x8b,0xf9,0x4d,0xba,0x3e,0xbf,0x8d,
0xcd,0x28,0xf6,0x13,0xf0,0x9b,0x5a,0x74,0xb6,0xcf,0xd8,0x38,0x8f,0xff,0x19,0xb7,
0xbf,0xdf,0xb8,0xfd,0x3d,0x0a,0x76,0x0e,0xfc,0x96,0xbb,0x0f,0xef,0x80,0x2f,0xb8,
0xfb,0x70,0x8a,0x78,0xe7,0x9d,0xef,0x05,0x7a,0xf2,0xa6,0xf3,0x9d,0x05,0x5f,0x70,
0xf7,0x54,0xf4,0x9d,0x72,0xe7,0x59,0x67,0xf8,0x0e,0xb9,0xce,0x92,0xaf,0x6c,0x07,
0xb0,0x1d,0x70,0xeb,0x5c,0xa4,0x86,0xfb,0x17,0xdd,0x0f,0xfd,0xae,0xdf,0x7e,0xa0,
0xdf,0xee,0xbb,0x7e,0xfb,0x11,0x7c,0x98,0xfb,0xf8,0x0a,0x58,0xfc,0x4f,0xf9,0x89,
0xff,0x8b,0x2b,0xac,0x25,0xec,0x67,0xf0,0xaa,0x10,0x3b,0x1f,0xfe,0xdb,0x66,0xf8,
0x97,0x2b,0xa1,0xdf,0x6a,0x35,0x9f,0x61,0x2f,0xfc,0xf7,0xff,0x46,0xf8,0x3e,0x64,
0x92,0xe7,0x6c,0xfc,0x03,0x9b,0x42,0x39,0x90,0xf0,0x0d,0x00,0x00
};
// Generated from:
//
// #version 450 core
//
// #extension GL_EXT_samplerless_texture_functions : require
//
// layout(local_size_x = 8, local_size_y = 8, local_size_z = 1) in;
//
// layout(push_constant) uniform PushConstants {
//
// ivec2 offset;
// vec2 stretch;
// vec2 invSrcExtent;
// int srcLayer;
// int srcWidth;
// int srcHeight;
//
// bool flipX;
// bool flipY;
// bool rotateXY;
//
// ivec4 blitArea;
// int destPitch;
// } params;
//
// layout(set = 0, binding = 0) buffer dst
// {
//
// uint destData[];
// };
//
// layout(set = 0, binding = 1) uniform utexture2DMS stencil;
//
// void main()
// {
// ivec2 destSubImageCoords = ivec2(gl_GlobalInvocationID.x * 4, gl_GlobalInvocationID.y);
// if (any(lessThanEqual(params.blitArea.zw, destSubImageCoords)))
// {
// return;
// }
//
// destSubImageCoords += params.blitArea.xy;
// ivec2 srcImageCoords = ivec2(destSubImageCoords);
//
// srcImageCoords -= params.offset;
//
// if (params.flipX)
// srcImageCoords.x = - srcImageCoords.x;
// if (params.flipY)
// srcImageCoords.y = - srcImageCoords.y;
// if (params.rotateXY)
// srcImageCoords.xy = srcImageCoords.yx;
//
// int xDir = 0, yDir = 0;
// if (params.rotateXY)
// {
// yDir = params.flipY ? - 1 : 1;
// }
// else
// {
// xDir = params.flipX ? - 1 : 1;
// }
//
// uint outStencils = 0;
//
// for (int i = 0; i < 4; ++ i)
// {
//
// if ( (srcImageCoords.x >= 0 && srcImageCoords.x < params.srcWidth) &&
// (srcImageCoords.y >= 0 && srcImageCoords.y < params.srcHeight))
// {
//
// uint stencilValue = texelFetch(stencil, srcImageCoords, 0).x;
//
// outStencils |= (stencilValue & 0xFF) << (i * 8);
//
// }
//
// if (params.rotateXY)
// {
// srcImageCoords.y += yDir;
// }
// else
// {
// srcImageCoords.x += xDir;
// }
// }
//
// destData[gl_GlobalInvocationID.y * params.destPitch + gl_GlobalInvocationID.x] = outStencils;
// }