// 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/CopyImageToBuffer.comp.00000000.inc: // Pre-generated shader for the ANGLE Vulkan back-end. #pragma once constexpr uint8_t kCopyImageToBuffer_comp_00000000[] = { 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x5d,0x95,0x4b,0x48,0x95,0x51, 0x10,0xc7,0xcf,0x77,0xef,0x4d,0xbd,0x79,0x7b,0x51,0x59,0x66,0xa9,0x25,0xe8,0x22, 0x91,0x16,0xd7,0x08,0xca,0x9e,0x8b,0x5a,0x08,0x3d,0xdc,0xd5,0x22,0x8a,0x36,0x05, 0x8a,0x50,0xb4,0x12,0x0a,0x69,0xa5,0x19,0xd1,0xbb,0xbb,0x4f,0x85,0xa0,0x4d,0x65, 0x61,0x51,0x51,0x59,0x9b,0x1e,0x14,0xb9,0xa8,0x84,0x88,0x8a,0x8a,0x0a,0x7a,0x59, 0x69,0x64,0xcd,0x9c,0xef,0x77,0x74,0xec,0xc2,0xf1,0x7c,0xf3,0x9f,0x99,0xff,0x3c, 0xce,0x9c,0x63,0x32,0x51,0x91,0xef,0x5c,0xe4,0x0a,0x5d,0x81,0x9b,0x1c,0x39,0xff, 0x9b,0xe6,0x12,0x4e,0x3f,0x0b,0x5d,0x9e,0xdf,0xd7,0xd6,0x37,0xd4,0xd7,0xec,0xde, 0xb3,0xa3,0x26,0x5b,0xbb,0x48,0xf5,0x93,0x5d,0xd2,0xdb,0xa9,0x6e,0x8a,0xd8,0x4c, 0x90,0x3d,0x25,0xab,0x71,0xdb,0xce,0x26,0xc5,0x4b,0x64,0x4d,0x15,0x3c,0xe5,0xb9, 0x9c,0x30,0xc7,0xcb,0x73,0x09,0x5a,0xe2,0xb9,0x9d,0x9b,0xeb,0xe5,0xa4,0x2b,0x93, 0x3d,0x21,0x6b,0x9d,0x30,0x95,0xc5,0x29,0xb8,0x0a,0xf6,0x80,0x45,0x60,0x19,0x83, 0x25,0xc0,0xa6,0x1a,0x2c,0x09,0x36,0xdb,0x60,0x29,0xb0,0xb9,0x06,0x9b,0x00,0x56, 0x4e,0x4e,0x75,0xb2,0xcf,0x27,0x66,0x90,0x17,0x18,0xb9,0x4d,0xf6,0x3c,0xb8,0x34, 0xe7,0x76,0x62,0x29,0x5f,0xfb,0x7f,0x39,0xab,0x7d,0x07,0x7c,0x91,0x91,0x2d,0x5f, 0x27,0x3d,0x28,0x96,0x35,0x5d,0x2a,0x49,0x78,0xfb,0xa4,0xe7,0xd4,0xef,0x22,0xf9, 0xca,0x23,0xbf,0x59,0x62,0x9f,0x6f,0xe2,0xcf,0x94,0xbf,0x19,0x74,0x0e,0x7d,0x11, 0xbd,0x49,0x20,0x17,0x23,0x27,0xbd,0x5d,0xca,0xcd,0x21,0x17,0xc5,0x97,0x22,0x97, 0x80,0x29,0x5f,0x29,0x7c,0x2a,0x97,0xca,0x69,0x95,0xf9,0x1c,0x62,0x8e,0xb0,0x87, 0xa5,0x7c,0x6a,0x9b,0x96,0x55,0x06,0x5f,0x39,0xf5,0xa6,0xd1,0x57,0xf0,0xad,0xf6, 0x33,0x24,0xab,0x4a,0xd9,0x17,0x92,0x77,0x15,0x79,0x07,0xb9,0x9a,0xb8,0x0b,0xc9, 0x23,0x8b,0x5e,0x79,0x6a,0xe1,0x29,0xf2,0xb9,0xa7,0x25,0x56,0xdc,0x07,0x46,0x75, 0xf4,0x17,0x19,0x9f,0x65,0x7c,0x2f,0x25,0x37,0x95,0xeb,0x4c,0xaf,0x56,0xfa,0x1a, 0xc7,0x7a,0x55,0x8f,0x9c,0x22,0x07,0xe5,0xdf,0xe0,0xad,0x47,0x56,0xab,0xbe,0x81, 0x3a,0xac,0x7e,0xb3,0xa9,0x41,0xe5,0x2d,0x5e,0xda,0xbf,0x22,0xc8,0x5b,0xbd,0xbc, 0x6f,0x4d,0xa8,0x71,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f,0x36,0xbe,0x6f, 0xf1,0x4d,0x18,0xdf,0x77,0xe0,0xcd,0xc6,0xf7,0x3d,0xfe,0xef,0x8c,0xef,0x07,0x7c, 0x93,0xc6,0xf7,0x23,0xf8,0x5e,0xe3,0xfb,0x09,0xff,0x8f,0xe6,0xac,0x3f,0x73,0xd6, 0x13,0xcd,0x59,0x7f,0x01,0x0f,0x36,0x5f,0xb1,0x29,0x34,0x36,0xdf,0xc0,0xd5,0x46, 0xdf,0xec,0xef,0xbc,0x29,0xf6,0x2e,0x0d,0x82,0x1f,0x20,0xfe,0x0f,0xfc,0x06,0x99, 0xdd,0x8c,0x9f,0x9d,0x38,0xde,0x0f,0xc3,0xf5,0x0b,0xae,0x2a,0xc3,0x35,0x04,0x1e, 0xfc,0x86,0xf1,0x1d,0xe2,0x4e,0xeb,0x7b,0xff,0x87,0xff,0x01,0x59,0xf4,0xcb,0xa5, 0x23,0x7f,0xa8,0xdb,0xbe,0x31,0x5d,0xde,0x36,0x72,0x4b,0x64,0xfd,0x03,0x98,0x18, 0xb8,0x5a,0x14,0x0a,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(set = 0, binding = 0) uniform texture2D src; // // layout(set = 0, binding = 1) buffer dst // { // uint destData[]; // }; // // layout(push_constant) uniform PushConstants // { // // uvec2 srcOffset; // int srcDepth; // // bool reverseRowOrder; // // uvec2 size; // // uint outputOffset; // // uint outputPitch; // // bool isDstSnorm; // } params; // // vec4 getSourceValue() // { // uvec2 coord = gl_GlobalInvocationID.xy; // if (params.reverseRowOrder) // { // coord.y = params.size.y - coord.y - 1; // } // coord += params.srcOffset; // // vec4 srcValue = texelFetch(src, ivec2(coord), 0); // // return srcValue; // } // // uint convertToDestValue(vec4 srcValue) // { // // uvec4 normalized; // if (params.isDstSnorm) // { // ivec4 scaled = ivec4(srcValue * 127.0); // normalized = uvec4(scaled); // } // else // { // normalized = uvec4(clamp(srcValue, 0.0, 1.0) * 255.0); // } // // normalized &= 0xFF; // // return normalized.r | normalized.g << 8 | normalized.b << 16 | normalized.a << 24; // // } // // void outputDestValue(uint destValue) // { // uint offset = params.outputOffset + params.outputPitch * gl_GlobalInvocationID.y + gl_GlobalInvocationID.x; // destData[offset] = destValue; // } // // void main() // { // if (any(greaterThanEqual(gl_GlobalInvocationID.xy, params.size))) // return; // // vec4 srcValue = getSourceValue(); // uint destValue = convertToDestValue(srcValue); // outputDestValue(destValue); // }